Skip to content

INF

System and Task Information

This string function returns various system and task information.

INF (numeric-value1, numeric-value2 [,ERR=line-ref|,ERC=error-code])
numeric-value1,2
are integers specifying the information to return from the system and/or task.
line-ref
is the program line number or label to branch to if an error is produced by this function.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

This function is generally available starting with release level 8.1B2.

The following values of numeric-value1,2 return the indicated information:

numeric-value1,2
Information Returned
0,0
Operating system name
0,1
Operating system level
1,0
CPU ID
2,0
Current user count limit.
2,1
Installation Code.
3,0
UNIX: 2-byte unique process ID of this Thoroughbred Basic task; unsigned binary
3,1
UNIX: same as 3,0 except returned as the first 2 bytes of an 8-byte string; last 6 bytes are null ($00$)
3,2
User's login ID
3,3
User's name
3,4
Returns Thoroughbred Basic's process number in a 4-byte binary string.
4,n
User's environment; n is an integer in the range of 0 to the maximum number of environment strings minus 1.

If numeric-value1,2 contain invalid values, an ERR=41 results.

PRINT INF(0,0)

for an ARIX System 90 with UNIX System V.3 might print “S90_V.3”.

PRINT INF(0,1)

on the same system might print “POS3.0_02 0417”.

PRINT INF(1,0)

on the same system might print “MOTOROLA 68020”.

LET TEMPFILE$ = "TMP." + STR(DEC(INF(3,0)))

might produce “TMP.11249”.

SYS system variable

From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF