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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SET VARIABLE CommandDescriptionThe SET VARIABLE command assigns a value to a local variable name. The scope of the variable is limitedto the current input level (local in scope). If the variable needs to be visible outside the current input levelrefer to the SET GLOBAL command. If the value parameter does not exist the variable becomes undefined.A variable may also be set using the ASK command.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.Variables are referenced by placing the variable name between braces. Assume a variable by the name ofnum exists. The variable num can be referenced by “{num}”.If a variable is referenced and does not exist the variable is replaced by a NULL string. If the variable num isnot defined, and the global variable {num:global} is not defined, the string “{num}” is equivalent to “”.FormatCommand Qualifier ParameterSET VARiablename [value]Where:SETVARiablenamevalue(required) the verb for this command.(required) the keyword for this command. The minimum spelling is VAR.(required) variable name. <strong>NetEx</strong>/eFT variable names must be alphanumeric and no longerthan 20 characters.(optional) variable value. The value assigned to the variable name is the remainder of the linestarting with the first nonblank character.ExamplesThe following sample script assigns a numeric value to the variable “num”:eFT> set variable num 1eFT> text The variable num = {num}eFT: The variable num = 1eFT> show variable numeFT:eFT: NUM .......... 1eFT:<strong>Rel</strong>ated TopicsASK CommandSHOW VARIABLE CommandSET GLOBAL CommandPage 158 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!