Returns information on the current process.
1 – Input
An integer value specifying the item of information that the FN$PROCESS_INFO function is to return; the integer value is one of the values used by the $GETJPI system service. DEC DATATRIEVE supplies a table associating symbolic strings to values of the $GETJPI system service. The table is called JPI_ CODES, located in CDD$TOP.DTR$LIB. If you use the JPI_CODES table with this function, the syntax is: FN$PROCESS_INFO ("symbolic-string" VIA CDD$TOP.DTR$LIB.JPI_CODES) Where symbolic-string is a text string defined in JPI_CODES. The text string must be placed inside quotation marks. For a complete description of the item codes, see the $GETJPI service documented in the OpenVMS System Services Reference Manual.
2 – Output
A text string containing the information requested by the item- code.
3 – Examples
The following examples shows how the FN$PROCESS_INFO function returns information about the username; the first example uses an integer value, the second example uses the JPI_CODES table. DTR> PRINT FN$PROCESS_INFO (514) FN$PROCESS INFO DALFY DTR> DTR> PRINT - CON> FN$PROCESS_INFO ("USERNAME" VIA CDD$TOP.DTR$LIB.JPI_CODES) FN$PROCESS INFO DALFY DTR>