The GLOBALV command can be used to set and retrieve the value of an NCL global variable. These variables are also visible to NCL procedures in the same region.
This command has the following format:
GLOBALV GET vname|vnmlist GLOBALV PUT vname|vnmlist
Specifies the variable name. The name must be prefixed with GLBL.
Characters: A-Z,a-z,0-9, $, #, @
Range: The global variable name vname must not be longer than 12 characters. The variable name is not case sensitive. Do not include the ampersand (&) character.
Specifies a list of variable names, for example, vname[, …vname].
Retrieves the value of the given NCL global variable and assigns it to the identically named REXX variable.
Takes the value of the REXX variable and uses it to set the value of the identical NCL global variable.
If the input variable is not specified, a null value is assigned to the output global variable. Conversely, the variable name is assigned to the REXX output variable, per the REXX standard.
Example: GLOBALV
globalv get 'GLBL$RMOSVER' GLBL$kb3a = GLBL$RMOSVER globalv put 'GLBL$kb3a' globalv get 'GLBL$kb3a' say 'rexxvx=<'||GLBL$kb3a||'>'
| Copyright © 2009 CA. All rights reserved. |
|