INCORRECTLY GENERATING ACTION JCL

Document ID : KB000044458
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue: 

While generating the Action JCL, the job is incorrectly generated and using EXEC PGM=DSNUTILB instead of EXEC PGM=PTIDRVML as seen below:

//DB2DBEXT JOB (9650OMS45S45,T107),'CSS BATCH SQL',

// CLASS=N,MSGCLASS=U,TIME=1440,

// NOTIFY=&SYSUID

//* ----- AUTOMATIC SYMBOLIC ----- ----- AUTOMATIC SYMBOLIC ----- JLRICE

//----- AUTOMATIC SYMBOLIC ----- EXEC PGM=DSNUTILB,REGION=4096K, +  <=======Incorrect

// PARM='DCP2',COND=(4,LT)

//STEPLIB DD DSN=DB2CP2.DSNLOAD,DISP=SHR

//SYSPRINT DD SYSOUT=*

//UTPRINT DD SYSOUT=*

//PTIIPT DD *

00JIMTEST1JLRICE DCP2 Ç Øq

00 DCP2-~N

00 DIROSPB.CSSP.JCL JLRICE CSSCPWRJ

00'SYSP.PTRP.MODEL'

 

Resolution:

 

The problem is caused by pointing to the  wrong member for the model library member. That member should be MJSTATS. Changing that to MJSTATS will resolve the problem. 

MODEL JCL SPECIFICATIONS: 

MODEL LIBRARY ===> 'PTIPROD.RD180.PRD.CDBAMDL' 

MODEL MEMBER ===> MJUTLAL ( Blank or pattern for member selection list ) <===THIS IS INCORRECT  Should be MJSTATS.

VOLUME SERIAL ===> ( If not cataloged ) 

EDIT MODEL JCL ===> N ( Y - Yes, N - No ) 

UPDATE VALUES ===> N ( Y - Yes, N - No )