Joined: 02 Jan 2009 Posts: 115 Location: Hyderabad
Hi,
I have a file
File :
Code:
Address1 is h.no225....................251 chars
pincode 10235......73 chars
Address2 is h.no226....................251 chars
pincode 222222......73 chars
Address3 is h.no227....................251 chars
pincode 333333......73 chars
The output file should contain one record for first two record of from the input file with record length 324 like :
Code:
Address1 is h.no225....................pincode 10235......total 324chars
Address2 is h.no226....................pincode 22222......total 324chars
Address2 is h.no227....................pincode 33333......total 324chars
Actually, this is a report that we got from external system. No keys will be present in it.
In order to do that I have split the file into two files with all odd number records into one file and even number records into another file. I have inserted sequence numbers in a step to use it as key for splicing.
Still i am not able to get the desired output. Is there any simpler way to achieve this?
Joined: 02 Jan 2009 Posts: 115 Location: Hyderabad
1.Input file record length is 251. Expected Output file record length is 324
It is fixed block
2. Yes i need to club every two records. It has some 70000 records. Output should have only 35000 records.
All the odd number records in the input file have a data till 251 positions. But the even number records have data till 73 position and rest all spaces.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
It is throwing me the following error when using WHEN=GROUP
You are using DFSORT R14. That release is no longer supported. The PTF for WHEN=GROUP, etc is only available for the two current DFSORT releases: z/OS DFSORT V1R5 and z/OS DFSORT V1R10.
You really should be on a later release of z/OS and DFSORT by now.