The Input file has 4 record types.
type 1 --starts with 0 in column 1 and non space in column 4
type 2 --Starts with Non space in column 8
type 3 --starts with Non space in column 10
type 4 --starts with Non space in column 11
Record type 4 can repeat N times in the input file. I need all type 4 records in the output file with the corresponding other 3 type data to its right as mentioned above.
Please advise.
Thanks,
Jaya. _________________ "Great spirits have always encountered violent opposition from mediocre minds."
-Albert Einstein
Alain,
Thanks for your time
In the given input file:
First record = type 1
second record = type 2
Third record = type 3
fouth record = type 4
fifth record = type 1
sixth record = type 2
seventh record = type 3
records 8-11 = type 4
The number of type 4 records can vary but the input file will be in the same sequence
i.e 1-2-3-4 or 1-2-3-4-4 or 1-2-3-4-4-4-4 ..
I need to group them in blocks and summarise each block to a single output record.
An occurence of type 1 record in the input file signifies the end of previous block that needs
to be summarised.
For Every type 4 input record, there should be an output record.
Hope i am clear on my requirement.
We have a cobol solution but just wandering for a JCL workaround.
Thanks in advance,
Jaya. _________________ "Great spirits have always encountered violent opposition from mediocre minds."
-Albert Einstein
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Sorry! for the late reply as i had a long weekend ( Enjoying IND VS PAk cricket match - Good one)
Frank,
This is an amazing stuff....U are too great!!
Thank you very much..
Frank/Kolusu,
I am very much impressed with your replies in this site, that too in no time. You are doing a real great job in building confidence on the mainframe professionals. U guys will be remembered for ever.
Thanks,
Jaya. _________________ "Great spirits have always encountered violent opposition from mediocre minds."
-Albert Einstein
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