Was this helpful?
Built-in Variables
Built-in variables are settings that are frequently needed in CXL scripts. Each built-in variable must be typed in upper case exactly as shown so that they are recognized as special variables. Built-in variables that have a default setting only need to be set if you need a different setting for the purposes of a particular script. If not set by the user, they will have the default value. Built-in variables that have no default will be automatically set, and should not be set by the user.
Built-in Variable Values
Variable
Default Value
Purpose
EBCDIC
0
Interprets the various EBCDIC code pages as normal ANSI when set to the number of that code page. For values, see Language Syntax and Examples “EBCDIC”.
ENCODING
0
Specifies the character code set used in the source file. For values, see Language Syntax and Examples “ENCODING”.
IFS
null
Internal Field Separator – Uses the value it is given to break lines up into fields.
ILS
CR/LF
Internal Line Separator – Uses the value it is given to break the file into lines.
NR
No Default
Number of current input line. Should not be set by user.
NF
No Default
Number of current input line as determined by the IFS variable. Should not be set by user.
REGPOS
No Default
Number of characters from the beginning of the line that marks the position where a regular expression match is made. Should not be set by user.
REGLEN
No Default
The length of regular expression match when one is made. Should not be set by user.
TABS
8
The number of spaces that are used to replace tab characters. 0 to 32. 0 will cause tab characters to not be replaced.
A detailed description of each built-in variable can be found in Language Syntax and Examples.
Last modified date: 07/26/2024