ProvideX V8.20 > Language Reference > 4. System Variables
560
GID System Variable
   Operating System Process Identifier
String System Variable
Contents
String, two-character OS process identifier.
Description
This system variable can be used to obtain a two-character 16-bit binary operating
system group or Process ID (PID).
Examples
Obtain the 16-bit UNIX Process ID by using:
->pid=dec($00$+gid)
->?pid
30633
For larger values (e.g., 32-bit), refer to TCB(89)under the TCB( ) Function, p.532.
TCB(89) returns the numeric value of the current PID. Use this as a replacement for
DEC($00$+GID) to retrieve the current PID value.
See Also
SYS( ) Function, p.527
HFN System Variable
Highest Available Local Channel
Numeric System Variable
Contents
Integer, highest local channel/file number not open.
Description
The HFN variable contains a numeric value (integer) representing the highest
available local channel/file number. This value will be in the range: 0 to 63 (0 to
32767, if the 'XF' system parameter is set).
Examples
->?HFN
63
->SET_PARAM -'XF'
->?HFN
32767