I usually change files using FileManager through ISPF interface. Now I need to do this in a JCL. Via ISPF interface, I enter in FM option, 2 (Edit), open the file (VSAM) and execute command "change 'string1' 'string2' all". The strings have the same length. Do you know how to do this in a JCL? This is my job what I am trying to execute
//JOBSIT1 JOB (999),'PROGRAMMER',
// CLASS=A,
// MSGCLASS=X,
// NOTIFY=&SYSUID,
// COND=(0,NE)
//STEP1 EXEC PGM=FILEMGR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
$$FILEM DSP DSNIN='PPG.TEST.LEKS.VS.CONTR',
$$FILEM CHANGE 'XXX' 'YYY' ALL
/*
//
// CLASS=A,
// MSGCLASS=X,
// NOTIFY=&SYSUID,
// COND=(0,NE)
//STEP1 EXEC PGM=FILEMGR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
$$FILEM DSP DSNIN='PPG.TEST.LEKS.VS.CONTR',
$$FILEM CHANGE 'XXX' 'YYY' ALL
/*
//
But I am getting this error:
1...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80
0FMNBA091 Missing or invalid control card
0FMNBA099 Invalid continuation, syntax error near card column 9
0FMNBA091 Missing or invalid control card
0FMNBA099 Invalid continuation, syntax error near card column 9
Regards!