Hi,
I have created a JCL which uses the FINDREP to find and replace a string in a control card. And its working fine.
But need to use a symbolic inside the FINDREP to replace with the value in the symbolc.
//SETLVL SET FNAME=QC41223
//STEP01 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=XXXX828.TEST.INFILE(EMLCARD),DISP=SHR
//SORTOUT DD DSN=XXXX828.TEST.OUTFILE(EMLOUT),DISP=SHR
//SYSIN DD *
OPTION COPY
OUTREC FINDREP=(IN=C'ERC.CSV',OUT=C'&FNAME'.CSV') /********** // OUTREC FINDREP=(IN=C'ERC.CSV',OUT=C'QC41223'.CSV') WORKED FINE"
/*
When I tried to executed the above JCL I'm getting Syntax error. is it possible to use Symbolic inside the control cards.. Please advice