Example: Allocating z/OS Debugger files

The following example illustrate how you can use the command line to allocate the preferences and log files, then start the COBOL program tstscrpt with the TEST run-time option:

ALLOCATE FILE(insppref) data set(setup.pref) REUSE
ALLOCATE FILE(insplog) data set(session.log) REUSE
CALL 'USERID1.MYLIB(TSTSCRPT)' '⁄TEST'

The example illustrates that the default z/OS® Debugger run-time suboptions and the default Language Environment® run-time options were assumed.

The following example illustrates how you can use a CLIST to define the preferences file (debug.preferen) and the log file (debug.log), then start the C program prog1 with the TEST run-time option:

ALLOC FI(insplog)  DA(debug.log)              REUSE
ALLOC FI(insppref) DA(debug.preferen)         REUSE

CALL 'MYID.MYQUAL.LOAD(PROG1)' +
    ' TRAP(ON) TEST(,*,;,insppref)⁄'

All the data sets must exist before starting this CLIST.