sysVar system variable

The sysVar system variable holds a variety of values.

The qualifier sysVar can precede the name of each EGL system variable listed in the next table.

Table 1. sysVar system variables
System variable Description
arrayIndex

Contains a number:

  • The number of the first element in an array that matches the search condition of a simple logical expression with an in operator.
  • The number of the last element modified in the target array after a move...for count statement.
  • Zero, if no array element matches the search condition.
callConversionTable Contains the name of the conversion table that is used to convert data when your program does the following at run time:
  • Passes arguments in a call to a program on a remote system
  • Passes arguments when invoking a remote program by way of the vgLib.startTransaction() system function
  • Accesses a file at a remote location
errorCode Receives a status code in the following circumstances:
  • At the completion of a call statement.
  • After a call to a service.
  • After a file I/O statement such as get or open.
overflowIndicator Indicates whether there is arithmetic overflow.
remoteSystemID Contains the system name for the location of a remote entity: a program, VSAM file, CICS® transaction, or transient data queue.
returnCode Contains an external return code, as set by your program and made available to the operating system.
sessionID Contains an ID that is specific to the web application server session.
sqlData Contains a number of system variables used with a relational database.
systemType Identifies the target system in which the program is running.
terminalID Contains the CICS terminal identifier for COBOL environments, or the user.name from the Java™ Virtual Machine system property.
transactionID Contains the name of the transaction code for the next program segment in COBOL or the name of the transferring program in Java.
transferName Specifies the name of the program or transaction to which you want to transfer.
userID Contains a user identifier in environments where one is available.
currentAliasName Contains text that represents this EGL program’s alias name, if specified or the program’s name if the alias is not given.
currentContainerName Contains text that represents this EGL program’s package name concatenated with the program’s name.
currentFunctionName Contains text that represents the EGL function name that is referencing this variable.
currentLineNumber Contains a numeric value that represents the EGL line number that is referencing this variable.

Compatibility

Table 2. Compatibility considerations for sysVar
Platform Issue
Rich UI The only supported sysVar variable is systemType.