Joined: 22 Mar 2009 Posts: 157 Location: South Africa
I am using the same file i.e. VB,LRECL=2052,
Here what is happening the 1111 and 2222 (i.e. at col 94)are the correct combination.You can say one record is authorisation and the second record is completion. So, they come in pair.
some time 1111 is combined with 3333 and I need to find out these wrong pair in my output.
As I mentioned in the other topic you need to understand the control cards that bill provided. For the first requirement you pushed the value at position 37 on to the set of records.
Now you need to push the value at 113 and then compare if that pushed value is equal to 2222 and then eliminate them. You will just be coming back here looking for help if you don't understand the control cards you are given.
I keep repeating "understand the control cards' given to you rather than just copying and pasting them. You don't even pay attention to that.
With the control cards you have shown you simply ruined your file by overlaying the from position 109 on to byte 20. You need to understand the importance of 10X on IFTHEN=(WHEN=INIT statement and see how the values are pushed.
Why are you still pushing the date value? You have no reason to push it when your requirement is to pick the pairs based on a different criteria?
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from: