Topic
  • 2 replies
  • Latest Post - ‏2013-10-01T13:58:11Z by jcdelmo
Tony@First Data
Tony@First Data
7 Posts

Pinned topic How to scan batch jobs that have DDs pointing to different datasets based on Scheduling ID?

‏2013-09-30T21:22:17Z |

 

In batch processing, our JCL passes parameters that determine the name of a dataset to be used.  The dataset name will be different based on a scheduling ID that is set by the system.  The scanner for JCL took the first occurrence of the parameter so RAA only shows the 1 file.  Is there a way to get both datasets into RAA?

 

Example of JCL

 //A       EXEC PROCXYZ,

#JI,ID=DAILY

//            DSNODE03='DLYMSTR',

#JI,ID=MONEND

//            DSNODE03='MONMSTR',

 

RAA showed DD XYZ using dataset DSNODE1.DSNODE2.DLYMSTR.FILE

Would like to have RAA point XYZ to both datasets:

DSNODE1.DSNODE2.DLYMSTR.FILE

DSNODE1.DSNODE2.MONMSTR.FILE

 

  • TonyLlopis
    TonyLlopis
    59 Posts

    Re: How to scan batch jobs that have DDs pointing to different datasets based on Scheduling ID?

    ‏2013-10-01T12:03:21Z  

    The only way I know how to handle this is by adding an external intelligent layer that generates one different job for each parameter value and make that the set of jobs that RAA sees. 

  • jcdelmo
    jcdelmo
    343 Posts

    Re: How to scan batch jobs that have DDs pointing to different datasets based on Scheduling ID?

    ‏2013-10-01T13:58:11Z  

    The only way I know how to handle this is by adding an external intelligent layer that generates one different job for each parameter value and make that the set of jobs that RAA sees. 

    The answer supplied by T.Llopis is correct.  The RAA JCL analyzer tolerates, but does not support the CA-7 control statements.   Each instance of JOB will use the first parameter value when multiple settings of a parameter are encountered.