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


NGLOBAL statement

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

Use the NGLOBAL statement to share values between subprocedures in a CLIST.

The NGLOBAL (named global) statement defines variables by name. When you define an NGLOBAL variable, other subprocedures in the same CLIST can refer to it by name and modify its value. Other CLISTs cannot access or modify an NGLOBAL variable.

There is no limit to the number of variables that can be defined on an NGLOBAL statement. The NGLOBAL statement must precede any statement that uses its variables.

Read syntax diagramSkip visual syntax diagram
                                    .--------------.   
                                    V              |   
>>-+--------+--NGLOBAL--variable_1----+----------+-+-----------><
   '-label:-'                         '-variable-'     

label
A name the CLIST can reference in a GOTO statement to branch to this NGLOBAL statement. label is one-to-31 alphanumeric characters, beginning with an alphabetic character.
variable_1 / variable
A symbolic variable name for this CLIST. The name refers to a variable that is being defined by this NGLOBAL statement.
Note: Variables named on an NGLOBAL statement cannot appear on a PROC statement.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014