Hi in my input file the first byte will be the record type.it can be '2' 0r '5'
or '8'. In the record type '2' we will get the values from pos 10 of length 8.
that value will be used in the following record type '5' and '8'. So if i
encounter the record type '2' again in my file the value from pos '10'
will be changed and that should be used in the following records. Can this
be done using SORT other than REXX and COBOL?
It's not clear what you want to do. Please show an example of the records in your input file and what you want for output. Give the RECFM and LRECL of your input file. Give the starting position, length and format of all relevant fields.
The first 8 bytes will be the value obtained from the pos 10 of length 8 for the record type '2' and the next 4 bytes will be incremented in the record
type '2' and the next 6 bytes will be incremented for each detail records
and is restarted when a batch is encountered.
Is this information enough?
Can we perform this using SORT?