HELPLIB.HLB  —  Lexicals  F$GETSYI  Examples
    1.$ SYSID = F$GETSYI("SID")
      $ SHOW SYMBOL SYSID
        SYSID = 19923201  Hex = 01300101 Octal = 000401

      This example shows how to use the F$GETSYI function to return
      the information in the system identification register. Use
      quotation marks (" ")  around the argument SID because it is a
      string literal. The value returned by F$GETSYI is assigned to
      the symbol SYSID. Because a node is not specified, information
      about your current node is returned.

    2.$ MEM = F$GETSYI("CLUSTER_MEMBER", "LONDON")
      $ SHOW SYMBOL MEM
        MEM = "TRUE"

      This example uses the F$GETSYI function to determine whether
      the node LONDON is a member of the local cluster. The return
      value TRUE indicates that the remote node LONDON is a member of
      the cluster.

    3.$ LIM = F$GETSYI("IJOBLIM")
      $ SHOW SYMBOL LIM
        LIM = 16   Hex = 00000010  Octal = 00000000020

      This example uses the system parameter IJOBLIM as an argument
      for the F$GETSYI function. This argument returns the batch job
      limit for the current system.

    4.$  DECNETVERS = F$GETSYI("DECNET_VERSION")
      $ SHOW SYMBOL DECNETVERS
        DECNETVERS = "00050D01"
      $ DECNETPHASE = F$INTEGER(F$EXTRACT(2,2,DECNETVERS))
      $ SHOW SYMBOL DECNETPHASE
        DECNETPHASE = 5   Hex = 00000005  Octal = 00000000005

      This example shows how to use F$GETSYI to return the DECnet
      version, using the DECNET_VERSION item.

    5.$ RADCPU = F$GETSYI("RAD_CPUS")
      $ SHOW SYMBOL RADCPU
        0,0,0,1,1,4,1,5

      This example uses the system parameter RAD_CPUS as an argument
      for the F$GETSYI function. This argument returns a list of
      RAD,CPU pairs, separated by commas. In this example, the first
      RAD,CPU pair is 0,0, the second pair is 0,1, and so forth.

      RAD is supported on AlphaServer GS series systems and starting
      from OpenVMS Version 8.4, support is extended to NUMA capable
      Integrity servers.

    6.$ HP_ID = F$GETSYI("HP_ID")
      $ SHOW SYMBOL HP_ID
        HP_ID = 1   Hex = 00000001  Octal = 00000000001

      This example uses the system parameter HP_ID as an argument
      for the F$GETSYI function. This argument returns the hard
      partition ID. It is supported only on Integrity servers that
      support hard partitioning.

    7.$ HP_NAME = F$GETSYI("HP_NAME")
      $ SHOW SYMBOL HP_NAME
        HP_NAME = "part1"

      This example uses the system parameter HP_NAME as an argument
      for the F$GETSYI function. This argument returns the hard
      partition name as a string. It is supported only on Integrity
      servers that support hard partitioning.
Close Help