Hi,
This is my first post here, I have the following scenario. Could someone provide your suggession,
I need to copy a VSAM file with LRECL of 442 to LRECL of 642 and reformat the records like this -
VSAM1: The minimum record length is 221 and maximum of 442.
VSAM2: The minimum record length is 321 and maximum of 642.
The condition here is - if position 85,3,CH = 88,3,CH, then,
Build - (1:1,221,222:100X)
if condition doesnt match i.e, 85,3,CH Not = 88,3,CH, then,
Build (1:1,221,222:100X,322:222,221,543:100X).
Please note my vsam is defined with noreuse. Could you please provide a solution to this ?
The second BUILD you can leave as BUILD for clarity. To use OVERLAY you'd have to use columns, and be careful with the order of them. So stick to BUILD.
However, if you want variable-length VSAM records, you need to tell DFSORT that. Look at the RECORD Control Statement in the Application Programming Guide and note what is needed for VSAM.
If your output is NOREUSE, you should be able to deal with that in the normal way.