11.07.2015 Views

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SET GLOBAL CommandDescriptionThe SET GLOBAL command assigns a value to a global variable name. The scope of a global variable within<strong>NetEx</strong>/eFT scripts is not limited to the input level on which it was defined (global in scope). Refer to theSET VARIABLE command if the scope of the variable needs to be limited to the current input level. If thevalue parameter does not exist the variable becomes undefined.The value parameter is taken literally unless it is enclosed in double quotes (“value”). If the value is enclosedin double quotes, <strong>NetEx</strong>/eFT expects any embedded quotes (that is, within the value) to be “escaped” usingtwo double quotes together. This special processing allows value to include leading and/or trailing spaces.Global variables may be referenced by placing the variable name between braces, in one of two ways. Assumea global variable by the name of num exists. The global variable num can be referenced by either“{num}” if a local variable by the same name does not exist, or by “{num:global}” to explicitly request theglobal definition.If a global variable is referenced and does not exist the variable is replaced by a NULL string. If the globalvariable num is not defined the string “{num:global}” is equivalent to “ ”. Also the number of globals thatcan be defined at one time is limited.FormatCommand Qualifier ParameterSET GLOBalname [value]Where:SETGLOBalnamevalue(required) the verb for this command.(required) the keyword for this command. The minimum spelling is GLOB.(required) global variable name. <strong>NetEx</strong>/eFT variable names must be alphanumeric and nolonger than 20 characters.(optional) variable value. The value assigned to the variable name is the remainder of the linestarting with the first nonblank character.ExampleThe following sample script assigns a numeric value to the global “num”:eFT> set global num 1eFT> text The global num = {num:global}eFT: The global num = 1eFT> show global numeFT:eFT: NUM ........... 1eFT:Page 154 Command Descriptions REF-eFT213-R<strong>5.4</strong>-08

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!