Use of warning messages

One use for the output limit is during program testing. The warning message tells the operator that the program is producing more output than expected. Perhaps the program is in an endless loop that contains instructions sending records to a printer or punch. The operator can halt the program's execution.

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,WARNING)

//JOB2  JOB  1542,RWALLIN,CARDS=(120,WARNING)

//JOB3  JOB  ,ZOBES,LINES=(200,WARNING)

//JOB4  JOB  ACCT27,'S M SHAY',PAGES=(,WARNING)  
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,WARNING)
//*MAIN  CARDS=(120,WARNING)
//*MAIN  LINES=(200,WARNING)
//*MAIN  PAGES=(,WARNING)