I want to replace low value with space at 587th position and replace X'2C' with space at 588th position !!
By going through some examples on web search , I think of two methods:
1)
//H081107 EXEC PGM=ICEMAN
//SORTLIB DD DSN=SYS1.SORTLIB,DISP=SHR
//SYSOUT DD SYSOUT=*
//*
//SORTIN DD DSN=DMET.A0RD7102.FTP.D0120.KEEP12,DISP=SHR
//SORTOUT DD DSN=DMET.A0RD7102.FTP.D0120.KEEP12.CLEAN,
// DISP=(,CATLG,DELETE),
// UNIT=3390,SPACE=(CYL,(200,100),RLSE)
//*
//SYSIN DD *
OPTION COPY
INREC FIELDS=(1:1,586,CHANGE=(587,X'00',X'40',588,X'2C',X'00'))
//*
I am getting the following Error in Spool :
2) While trying for another option using FINDREP :
//SYSIN DD *
OPTION COPY
INREC FINDREP=(STARTPOS=587,ENDPOS=588,IN=(X'00',X'2C'),OUT=X'40'))
//*
I am getting the following error in SYSOUT Spool :
Please let me know, what might be the problem in any Or both the examples.
Thanks a lot!