Thanks for the quick reply. I thought of SPLICE because I need to have final single record with account , policy , sum and all other fields( Which is different in both the unload)
I was thinking of using ON operation of SPLICE on account and policy and WITH to get other stuff. But if the SORT is quick and consume less I/O overhead, I am good.
Whatever I posted in my last post is the final layout for each file. Also please find the layout of Files :
File 1 :
Account Pic X(10).
Policy Pic X(20).
Sum Pic S9(16) COMP-3.
Name Pic X(20).
Filler Pic X (21)
File 2 :
Account Pic X(10).
Policy Pic X(20).
Sum Pic S9(16) COMP-3.
Address Pic X(20).
Filler Pic X (21)
File 3 :
Account Pic X(10).
Policy Pic X(20).
Sum Pic S9(16) COMP-3.
Name Pic X(20)
Address Pic X(20).
Filler Pic X (1)
Since everything I am talking about is unload from table, I didn't mentioned the cobol layout earlier. My input to my program would be File3.
One additional requirement I got just now is that in File 3 dont include the records when the Sum is greater then or equal to Zero. Can we include this condition in a single sort step.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum