Use in testing
One use for the output limit is during program testing. You can cancel a program that is in an endless loop containing instructions that send records to a sysout data set.
Examples: The following examples illustrate the
use of the JCL JOB statement, in either an APPC or non-APPC scheduling
environment, to warn the operator when the output for a job has exceeded
a limit in any JES system:
//JOB1 JOB ACCT01,'D. PIKE',BYTES=(50,CANCEL)
//JOB2 JOB 1542,RWALLIN,CARDS=(120,CANCEL)
//JOB3 JOB ,ZOBES,LINES=(200,CANCEL)
//JOB4 JOB ACCT27,'S M SHAY',PAGES=(,CANCEL) The following examples illustrate the use of the JES3 //*MAIN statement
in a non-APPC scheduling environment to warn the operator when output
for a job has exceeded a limit.
//*MAIN BYTES=(50,CANCEL)
//*MAIN CARDS=(120,CANCEL)
//*MAIN LINES=(200,CANCEL)
//*MAIN PAGES=(,CANCEL)