Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
It might help if you post the input records and the expected output. But if SUPERCE already does what you're trying to achieve why to reinvent the wheel?
Neither am trying to reinvent the wheel nor am that great but thought why it was not possible with SORT which has all the capabilities. I tried JOINKEYS but not with much success
The first two records have changes while the third one does not have any. I would like to know how to get the before and after records into an output file using SORT also.
1). Values changed at 11th and 23rd positions in 1st record.
2). Values changed at 3rd and 14th positions in 2nd record.
3). No changes for 3rd record.
If at all your shop does not support the JNF1CNTL and JNF2CNTL(so was my case here), try having seperate steps to introduce the sequence numbers at 31'st position on both the files and use only the SYSIN card..
I picked up your example to build the solution considering the LRECL to be 30. You would probably have to extend it for your actual record length which is 948.