Joined: 14 Mar 2009 Posts: 3 Location: Boston, MA, USA
Hi,
This is my first post in this forum. So bear with me in case I missed anything. I checked the forum for a solution and couldn't come up with any hits.
I am trying to sort a VSAM file in to a CSV file using OUTREC feature. Some of the records have a field defined as characters and some have it as packed. So, how do I sort the file and reformat packed field properly.
Here is my basic sort control statement to create a CSV from VSAM:
I am adding 08 as a starting field for the record.
If GROUP-NUM = 12 then the CODE field is coming as packed '9(5) Comp-3' otherwise it is coming as Char.
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
Aruna Gutti,
I dont have access to mainframe and cant test this now. I'll show you a possible way of achieving the same. Try and post back in case of issues; somebody will be here to help. Good luck