Debugging a procedure

You can use both the trace codes and the tool to diagnose problems with a batch mode procedure. L2 tracing is the default for procedures run in batch mode. A SET command in your procedure will change the trace level. For example, to specify L1 instead of L2, add the following statement at the start of the procedure:

SET PROFILE(TRACE=L1

With either L1 or L2 tracing, a log is produced in DSQDEBUG. If the procedure terminates prematurely, an error messages logged to the DSDQDEBUG data set. Use the HELP command to reconstruct the corresponding message HELP panel.

[ Previous Page | Next Page | Contents | Index ]