When writing scripts, you can take advantage of
programming techniques to simplify debugging a new or a modified script. These techniques are outlined in this section.
- For
TCP/IP connections, the ECHO statement causes remote host messages to be displayed while a WAITFOR statement executes. This enables you to monitor activity on the remote host during the WAITFOR
pause.
- For EHLLAPI connections, the SNAPSHOT statement sends all messages on the current 3270 display to the local LOG window or file so you can see if any
error messages or conditions occurred in the remote session.
- The TRACE statement enables you to specify that some or all script statements be displayed as the
script executes. This capability can help you isolate the source of a script problem. The TRACE statement can be used with any type of
connection.
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.