z/OS TSO/E CLISTs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using keyword names as variables or labels within a CLIST

z/OS TSO/E CLISTs
SA32-0978-00

You can sometimes use KEYWORD names such as IF, THEN, ELSE, SELECT, WHEN, OTHERWISE, GT, LE, etc. as variables or labels within a CLIST without a problem as long as its usage context is not ambiguous and does not infer its reserved usage. However, it is strongly recommended that you not use CLIST statement names, built-in function names, or CLIST control variable names for anything other than their intended use. Doing so might be allowable in a given context, but it could be confusing to anyone else trying to maintain such a CLIST over time. For clarity, usage of CLIST instruction or statement names, CLIST built-in function names, or CLIST built-in variable names should be avoided for any usage other than its predefined, intended use for those named entities.

CLIST instructions or statements are documented in Reference and include:
  • ATTN
  • CLOSFILE
  • CONTROL
  • DATA-ENDDATA
  • DATA PROMPT-ENDDATA
  • DO
  • END
  • ERROR
  • EXIT
  • GETFILE
  • GLOBAL
  • GOTO
  • IF-THEN-ELSE
  • LISTDSI
  • NGLOBAL
  • OPENFILE
  • PROC
  • PUTFILE
  • READ
  • READDVAL
  • RETURN
  • SELECT
  • SET
  • SYSCALL
  • SYSREF
  • TERMIN AND TERMING
  • WRITE AND WRITENR
CLIST built-in function names like those documented in Using built-in functions include:
  • &DATATYPE
  • &EVAL
  • &LENGTH
  • &NSTR
  • &STR
  • &SUBSTR
  • &SYSCAPS
  • &SYSCLENGTH
  • &SYSCSUBSTR
  • &SYSDSN
  • &SYSINDEX
  • &SYSLC
  • &SYSNSUB
  • &SYSONEBYTE
  • &SYSTWOBYTE

SPECIAL variables and CLIST control variables are discussed in Using control variables, and listed in Table 1, Table 2, and Table 3. These include variables beginning with &SYS... and the special variables &LASTCC and &MAXCC.

Note: Generally, a user should not use local defined CLIST variable or label names that begin with "SYS..." in order to avoid any possible conflict with current or future CLIST control variables or statements of the same name.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014