Previous Topic: 3.1.6.2.1 Specify Global Data Selection ExitNext Topic: 3.1.6.2.3 Specify Job Selection Exit


3.1.6.2.2 Specify Job Input Exit

If you enter Y (Yes) in the Specify job input exit field on
the Extended Options Menu, the SAS Statements panel for
specifying a job input exit, shown in Figure 3-15, is
displayed.


/------------------------------  SAS Statements  ------------------------------\
|Command ===>                                                  Scroll ===> PAGE|
|                                                                              |
|Inquiry Step:  BAT - Batch Initiator Simulation                               |
|                                                                              |
|Line Cmds: I Insert  D Delete  R Repeat  M Move  C Copy                       |
|                                                                              |
|Cmd  SAS Statements for:  Specifying Job Input exit                           |
| -   ------------------------------------------------------------------------ |
| _ - %MACRO PERJIN;                                                           |
| _   ________________________________________________________________________ |
| _   ________________________________________________________________________ |
| _   ________________________________________________________________________ |
| _   ________________________________________________________________________ |
| _   ________________________________________________________________________ |
| _   ________________________________________________________________________ |
| _   ________________________________________________________________________ |
| _   ________________________________________________________________________ |
| _   ________________________________________________________________________ |
| _   ________________________________________________________________________ |
| _ - %MEND PERJIN;                                                            |
|****************************** BOTTOM OF DATA  *******************************|
|                                                                              |
\---------------------------------------------------------------------------------/


  Figure 3-15.  Specify Job Input Exit Panel

The job input exit allows you to code the PERJIN MACRO, which
is invoked after the simulation is started (as opposed to the
SELECT MACRO, which is invoked when data is being input to
the simulation).  You can use the PERJIN MACRO to change the
attributes of the job before it is modeled, or to skip jobs
that do not meet some selection criteria.

For example, assume that your installation currently allows
class D jobs to use any number of tape drives, but would like
to separate certain jobs that use more than six drives.  The
new class D would allow jobs requiring 0 to 6 drives, and a
new class E would be used for jobs requiring more than six
drives.  You can test this new class definition by defining
the PERJIN MACRO as shown in Figure 3-16.


/-------------------------------  SAS Statements  ------------------------------\
|Command ===>                                                  Scroll ===> PAGE |
|                                                                               |
|Inquiry Step:  BAT - Batch Initiator Simulation                                |
|                                                                               |
|Line Cmds: I Insert  D Delete  R Repeat  M Move  C Copy                        |
|                                                                               |
|Cmd  SAS Statements for:  Specifying Job Input exit                            |
| -   ------------------------------------------------------------------------  |
| _ - %MACRO PERJIN;                                                            |
| _ -   IF JOBNTAPE > 6 THEN JOBCLASS = 'E';                                    |
| _ - %MEND PERJIN;                                                             |
|****************************** BOTTOM OF DATA  ********************************|
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
\---------------------------------------------------------------------------------/


  Figure 3-16.  SAS Statements for Specifying a Job Input Exit

This PERJIN MACRO selects jobs that use more than six tape
drives and sets their job class to class E.  Running a
simulation with the new class E information allows your
installation to determine the effect of adding this class on
job throughput.

NOTES:

 o  You should not code subsetting IFs in this MACRO to
    perform data selection; these should be coded in the
    global data selection exit described in Section
    3.1.6.2.1.

 o  You cannot change the reader timestamp (RDRTS) via this
    exit.  To change the reader timestamp, use the global
    data selection exit.  This consideration is important if
    you are processing NJE data for jobs that were read into
    a system in one time zone, but were executed on a system
    in a different time zone.  Section 3.1.6.2.1. provides an
    example of using the global data selection exit for this
    purpose.