Hi everyone ...
I'm not sure if I'm posting my question in the correct forum, apologies if I'm not. My question is in regard to running a batch query via JCL on z/OS. Here are my job cards:
What I want to do here is each time the user runs this job, I don't want them to go in and change the date in the JCL. I want the JCL to go look for the date value (a parm) in another data set. I want the user to go edit the date value in that parm data set to prevent the user from accidentally making any changes to the JCL and preventing it from running.
QMF is running the query from I=XXXX.XXXXXXXX and pulling the date from my condition EFFECTIVE_DT='2007-04-06'. I want to substitute this condition to pull from the external data set.
Does anyone have any experience with this?
Thanks in advance ...
I'm not sure if I'm posting my question in the correct forum, apologies if I'm not. My question is in regard to running a batch query via JCL on z/OS. Here are my job cards:
Code:
//XXXXXXXX JOB (0415,88500),'PROGRAMMER NAME',
// CLASS=A,
// MSGCLASS=J,
// NOTIFY=&SYSUID,
// REGION=0M
//OUT1 OUTPUT CLASS=J
//OUT2 OUTPUT CLASS=S
//*
/*JOBPARM SYSAFF=(MVSX)
//*
//*******************************************************************
//* DELETE REPORT DATA SET FROM PREVIOUS RUN *
//*******************************************************************
//JOBLIB DD DISP=SHR,DSN=DBP1.SDSNEXIT
// DD DISP=SHR,DSN=DBP1.SDSNLOAD
//PROCS JCLLIB ORDER=(XXX.JCL.LIB)
//STEP00 EXEC PGM=IEFBR14
//DEL1 DD DSN=&SYSUID..XXXXXXX.REPORT,
// DISP=(MOD,DELETE,DELETE),
// SPACE=(CYL,(0))
//*
//*******************************************************************
//* RUN XXXXXXXX REPORT AND SEND TO USER'S DATA SET *
//*******************************************************************
//STEP01 EXEC QMFBATCH
//DSQPRINT DD DSN=&SYSUID..XXXXXXX.REPORT,
// DISP=(NEW,CATLG,DELETE),
// UNIT=RESDA,
// SPACE=(TRK,(05,01),RLSE),
// DCB=(RECFM=FBA,LRECL=133,BLKSIZE=0)
//DSQDEBUG DD SYSOUT=*,
// DCB=(RECFM=FBA,LRECL=121,BLKSIZE=1210)
//SYSTSIN DD *
EXECUTIL SEARCHDD(YES)
ISPSTART PGM(DSQQMFE) NEWAPPL(DSQE) PARM(M=B,S=DBP1,P=QMF720, +
I=XXXX.XXXXXXXX(&&EFFECTIVE_DT='2007-04-06')
//*
//*******************************************************************
//* SEND REPORT TO CA-VIEW FOR ARCHIVING *
//*******************************************************************
//STEP02 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT1 DD DSN=&SYSUID..XXXXXXX.REPORT,
// DISP=SHR
//SYSUT2 DD SYSOUT=(,),OUTPUT=(*.OUT1,*.OUT2)
//SYSPRINT DD SYSOUT=*
/*
What I want to do here is each time the user runs this job, I don't want them to go in and change the date in the JCL. I want the JCL to go look for the date value (a parm) in another data set. I want the user to go edit the date value in that parm data set to prevent the user from accidentally making any changes to the JCL and preventing it from running.
QMF is running the query from I=XXXX.XXXXXXXX and pulling the date from my condition EFFECTIVE_DT='2007-04-06'. I want to substitute this condition to pull from the external data set.
Does anyone have any experience with this?
Thanks in advance ...