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.

Debugging a <strong>NetEx</strong>/eFT Alias or Input ScriptIt may be necessary from time to time to step through an alias or input script as it is executing, to see exactlywhat parameters it is using once string substitution has been performed. In the normal case, each command ofan alias or input script is silently issued by <strong>NetEx</strong>/eFT when the alias is invoked. To tell <strong>NetEx</strong>/eFT to displayeach command in its “string substituted” form, set the VERIFY qualifier of the INPUT command:eFT> set input verify onNow every command issued from the command line gets redisplayed before it is executed, with all positionalparameters and string variables replaced by their actual values. This enables a user to debug an alias or inputscript, making sure what was expected to be substituted actually gets substituted. Assume the followingFETCH alias is defined:eFT: FETCH .............. connect hosta {1} {2}eFT: receive {3}eFT:disconnectTo debug or verify each command as it gets executed, the INPUT VERIFY qualifier is turned on and FETCHis invoked with parameters:eFT> set input verify oneFT> fetch guest "fast netex" sourcefileeFT: connect hosta guest fast netexeFT: ----- connect results -----eFT: receive sourcefileeFT: ----- receive results -----eFT: disconnecteFT: ----- disconnect results -----eFT>Another debugging tool is the CONTINUE qualifier of the INPUT command. By default, <strong>NetEx</strong>/eFT stopsprocessing an alias or input script as soon as one of its commands fails. For instance, in the example above, ifthe CONNECT failed, the RECEIVE and DISCONNECT commands would not be processed in the normalcase. To tell <strong>NetEx</strong>/eFT to keep processing an alias or input script even if an error condition occurs, set theCONTINUE qualifier of the INPUT command:eFT> set input continue onNow when the FETCH alias (or any alias) is invoked <strong>NetEx</strong>/eFT will continue to process the remainingcommands even if an error is encountered. The CONTINUE qualifier may even be set within an alias definitionif the need arises.The INPUT qualifiers ECHO, VERIFY, and CONTINUE are initialized to off by <strong>NetEx</strong>/eFT. Once turnedon, they remain on until the user turns them off by typing SET INPUT VERIFY OFF or SET INPUTCONTINUE OFF respectively. The values of these qualifiers also is determined by the INPUT level at anygiven time. Changing the setting of ECHO, VERIFY, or CONTINUE in an alias or input file changes thesetting for the current level and lower levels. Settings for higher input levels are restored when the currentinput level terminates.REF-eFT213-R<strong>5.4</strong>-08 Advanced Local User’s Guide Page 101

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

Saved successfully!

Ooh no, something went wrong!