Professional Documents
Culture Documents
Built-In Global Variables V7R4
Built-In Global Variables V7R4
The authorization ID of any statement that retrieves the value of the global variable is
required
to have the READ privilege on the global variable and the USAGE privilege on the
schema containing
the global variable.
Example
To access the global variable CLIENT_HOST,
run the following query:
SELECT SYSIBM.CLIENT_HOST
FROM SYSIBM.SYSDUMMY1
hotellnx93
– CLIENT_HOST
This global variable contains the host name of the current client, as returned by the system.
– CLIENT_IPADDR
This global variable contains the IP address of the current client, as returned by the system.
– CLIENT_PORT
This global variable contains the port number used by the current client to communicate with
the server.
– JOB_NAME
This global variable contains the schema name of the package currently being used for a
DRDA connection.
– PACKAGE_VERSION
This global variable contains the version identifier of the package currently being used for a
DRDA connection.
– PROCESS_ID
This global variable contains the name of the currently executing routine.
– ROUTINE_TYPE
This global variable contains the type of the currently executing routine.
– SERVER_MODE_JOB_NAME
This global variable contains the name of the job that established the SQL server mode
connection.
– THREAD_ID
Parent topic:
Db2 for i SQL reference
Yes No
Contact IBM
Privacy
Terms of use
Accessibility
Cookie Preferences