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.

EXIT CommandDescriptionThe EXIT command causes <strong>NetEx</strong>/eFT to exit to the previous input level. Only when EXIT is issued fromwithin an input script, the current input script is exited and control is returned to the previous input level (eitheran input script or interactive command line). EXIT differs from QUIT in that it returns control only tothe previous input level. QUIT always returns control to the interactive input level (command line).When issued from the interactive input level, EXIT causes <strong>NetEx</strong>/eFT to terminate. If issued from an inputscript as part of a noninteractive <strong>NetEx</strong>/eFT session (e.g., a batch job), the session terminates.FormatCommand Qualifier ParameterEXitWhere:EXit(required) the verb for this command. The minimum spelling is EX.[status]status (optional) the value to be returned by an input script, or <strong>NetEx</strong>/eFT if used at the interactive level.The valid values for status are: Success, Warning, Error, and Fatal. The ON ERROR command canbe used to capture an error resulting from an input script exiting with a status of Warning or Error.An exit status of Fatal causes <strong>NetEx</strong>/eFT to immediately abort. If status is not specified, an exit statusof Success is assumed.ExamplesNote: A FATAL exit from nested scripts while running under TSO may cause some files to be leftopen preventing them from being free’d until logoff.If you desire to leave the <strong>NetEx</strong>/eFT session and return to your local system’s command line interpreter, youwould type:eFT> exitREADYAt this point you should receive the prompt you normally receive from your system’s command line interpreter(e.g., READY).The following script exits with an Error status if any error occurs within the script, otherwise the script exitswith a status of Success:* Sample <strong>NetEx</strong>/eFT script*on error exit errorsend -crc sample.fileexit successIf the SEND command above results in an error, the script exits with a status of Error, otherwise it exits witha status of Success.REF-eFT213-R<strong>5.4</strong>-08 Command Descriptions Page 125

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

Saved successfully!

Ooh no, something went wrong!