Hello!
I would like to use DFSORT to copy a VB file and change just one field in the record.
I have successfully used the FIND and REPLACE parameter as follows:
//SYSIN DD *
OPTION COPY
INREC FINDREP=(INOUT=(C'AA20100218',C'BB20100218'))
/*
But, I would like to be more precise in case the string C'AA20100218' occurred more than once
within the record.
I used the following statements:
//SYSIN DD *
OPTION COPY
INREC FIELDS=(1:1,4,11,2,CHANGE=(2,C'AA',C'BB'))
I received a RC=0 but each record in the file only contained the field BB - all of the other fields are
missing.
Since the files are VB, I specified 1:1,4 to account for the 4-byte RDW field.
The only field I want to change is the 2-byte field starting at offset 11.
Could somebody point out what else I am missing?
Thanks.
Tom