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.

eFT> text {" "}.eFT: .eFT> text {"Box"}.eFT: Box.eFT> text {" Big Box "}.eFT: Big Box .eFT> text {"This is a Big Box"}.eFT: This is a Big Box.A string variable, also referred to simply as a variable, is an arbitrary name that is associated with a predefinedcharacter string value. Assume the following string variables exist and are defined as indicated:VariableDefinitionHostnameBLUESKYASample stringDay 28String substitution involves the replacement of a string variable by its currently assigned value. Therefore,performing string substitution on these variables within the TEXT command, produces the following results:eFT> text {hostname}.eFT: BLUESKY.eFT> text {a}.eFT: Sample string.eFT> text {day}.eFT> 28.A string function refers to one of the <strong>NetEx</strong>/eFT defined functions that may accept strings as parameters andreturn a string as a result. A few simple string functions with sample arguments appear below:date()upper("this is a test")cmp("good", "bad", "Compared", "Didn't compare")Performing string substitution on these example string functions result in the following:eFT> text {date()}.eFT: Sun Apr 2, 2011.eFT> text {upper("this is a test")}.eFT: THIS IS A TEST.eFT> text {cmp("good", "bad", "Compared", "Didn't compare")}.eFT: Didn't compare.Although the TEXT command was used in all of the examples above, string substitution can be performedanywhere within a <strong>NetEx</strong>/eFT command line, whether it is part of another <strong>NetEx</strong>/eFT command, or on a lineby itself. It’s important to remember that the result of any string substitution is simply another string. Therefore,the resulting string could even be a <strong>NetEx</strong>/eFT command.String Variables<strong>NetEx</strong>/eFT variable names can be from one to twenty alphanumeric characters long, including underscoresand similar special characters. There are two types of variables, local and global. A local variable exists onlyREF-eFT213-R<strong>5.4</strong>-08 Advanced Local User’s Guide Page 63

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

Saved successfully!

Ooh no, something went wrong!