Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

S variables and job variables

&pagelevel(4)&pagelevel

The @GETVAR, @GETLIST and @GETJV statements can be used to transfer the contents of S variables or job variables to string variables or work files.

In Unicode mode, each string requires a character set specification. Since S variables and job variables record no information about their character sets, the character set must be defined at transfer time. This is possible using the new operand CODE=name. If the operand is not specified, the character set EDF041 is used. If the statement is applied to a line in a work file then the content of the variable may be converted from this character set into the character set of the work file if necessary. If it is applied to a string variable then the value is taken over and the character set is assigned to the string variable.

Note

@GETVAR SYSEDT,CODE=name can be used to transfer the value of the SYSEDT variable to the string variable again while taking account of the character set.

The statements @SETVAR, @SETLIST and @SETJV can be used to generate S variables or job variables and assign a value to them.

In these statements, the CODE=name operand can be used to specify a character set into which the values are to be converted before assignment. If the operand is not specified, EDF041 is used.