i'm trying to create a model for my fellow colleagues where the job will take in the Input DD name, do a record count and it should put the Output in a file with the ddname and its record count. I dont want to Hard code the DDnamessince it will used by many users. i Have the following Sysin * statements -
//STEP001 EXEC HDCOUNT,
// INFILE='XX.XXXXXXX.XXXXXXX'
//*
//STEP01.SYSIN DD *
OPTION COPY
OUTFIL FNAMES=SORTOUT,NODETAIL,REMOVECC,CONVERT,
TRAILER1=(1/,1:'--------------------------------------------------',
51:'------------------------',
1/,1:'FILE NAME: ',
12:' &INFILE ' , <<== This is where i want the INFILE provided to print the file name
3:'RECORD COUNT:',
17:COUNT=(M12,LENGTH=9),/)
/*
// INFILE='XX.XXXXXXX.XXXXXXX'
//*
//STEP01.SYSIN DD *
OPTION COPY
OUTFIL FNAMES=SORTOUT,NODETAIL,REMOVECC,CONVERT,
TRAILER1=(1/,1:'--------------------------------------------------',
51:'------------------------',
1/,1:'FILE NAME: ',
12:' &INFILE ' , <<== This is where i want the INFILE provided to print the file name
3:'RECORD COUNT:',
17:COUNT=(M12,LENGTH=9),/)
/*