Previous Topic

Next Topic

Book Contents

Book Index

Examples

Example 1

Within the ON block, unless specified otherwise, one copy are printed of each page. Unidentified pages go to user MGT (Level 20). No user can receive more than 10 copies of any report page.

Figure 313 ON Statement Default Decollation and Printing Values – Example 1

------- CONTROL-D/V CATEGORY DAILY                JOB PLRPT010 ----------(R.S)

COMMAND ===>                                                    SCROLL===> CRSR

+-----------------------------------------------------------------------------+

   ===========================================================================

   DEF COPIES 00 LVL 90 USER UNIDENT              DEST          MAX COPIES 05  

   ===========================================================================

   ON CLASS      = D         EXTWTR               DEST          FORM           

   PRT COPIES 01 LVL 20 USER MGT                  DEST          MAX COPIES 10  

       PRINT/CDAM PARMS =                                                      

   WHEN LINE 00001 - 00001 COL 00014 - 00046 PRINT Y REF NXT N CT N   AND/OR

        STRING = E M P L O Y E E S     R E P O R T                             

   DO NAME     = *                               LINE        COL       -   

   DO USER     = MANAGEMENT               LVL    LINE        COL       -       

                           S A T         SYNONYM =       CONCAT =

   DO USER     = *                        LVL    LINE        COL 00064 - 00074   

                           S A T         SYNONYM =       CONCAT =

   DO PRINT    = STD                                   MUST   =              

   DO BACKUP   = BKP0031D                                                    

   DO                                                                        

   WHEN LINE       -       COL       -       PRINT   REF NXT   CT     AND/OR

        STRING =                                                               

   DO                                                                        

   ===========================================================================

FILL IN REPORT DEFINITION. CMDS: EDIT, SCHED, SHPF, PATH               14.00.06

The site computer operations manager suspects that a hard copy of certain reports is not needed by many users. The computer operations manager follows the steps below:

Send a letter to all of the report recipients stating that from a specified date, the report is no longer printed but it is available for online viewing. If a specific user wants to receive printed report pages, the user must specify this in the Active or Permanent User Report list.

On the specified date, change the PRT COPIES count of the report to 0. Users who did not update the User Report list do not receive printed copies. However, they can still access the User Reports list online and change their requested copy count. Many do not; therefore, a considerable amount of paper can be saved.

If the same sysout class contains two reports, one for which a printed copy is needed and another for which a printed copy is not needed, they must be defined in separate ON statements for the same class. Each ON statement specifies a different default PRT COPIES count.

Example 2

Specify different default PRT COPIES and MAX copies for two reports, both of class A. Two ON CLASS statements must be used.

Figure 314 ON Statement Default Decollation and Printing Values – Example 2

------- CONTROL-D/V CATEGORY DAILY                JOB  PLRPT011 ----------(R.S)

COMMAND ===>                                                    SCROLL===> CRSR

+-----------------------------------------------------------------------------+

   ===========================================================================

   DEF COPIES 00 LVL 90 USER UNIDENT              DEST          MAX COPIES 05  

   ===========================================================================

   ON CLASS      = A         EXTWTR               DEST          FORM           

   PRT COPIES 00 LVL 20 USER MGT                  DEST          MAX COPIES 10  

       PRINT/CDAM PARMS =                                                      

   WHEN LINE 00001 - 00001 COL 00014 - 00046 PRINT Y REF NXT N CT N   AND/OR

        STRING = E M P L O Y E E S     R E P O R T                             

   DO NAME     = *                               LINE        COL       -             

   DO USER     = MANAGEMENT               LVL    LINE        COL       -        

                           S A T         SYNONYM =       CONCAT =

   DO PRINT    = STD                                   MUST   =              

   DO BACKUP   = BKP0031D                                                    

   DO                                                                        

   WHEN LINE       -       COL       -       PRINT   REF NXT   CT     AND/OR

        STRING =                                                               

   DO                                                                        

   ===========================================================================

   ON CLASS      = A         EXTWTR               DEST          FORM           

   PRT COPIES 01 LVL 20 USER MGT                  DEST          MAX COPIES 02  

       PRINT/CDAM PARMS =                                                      

   WHEN LINE 00001 - 00001 COL 00014 - 00046 PRINT Y REF NXT N CT N   AND/OR

        STRING =E MPLOYEES     S UMMARY     R EPORT

  FILL IN REPORT DEFINITION. CMDS: EDIT, SCHED, SHPF, PATH              14.00.06

Parent Topic

ON Statement Defaults: Decollating Parameter (decollating mission)