View previous topic :: View next topic
|
Author |
Message |
mvenkatesha
New User
Joined: 18 Oct 2006 Posts: 23 Location: bangalore
|
|
|
|
Hi I need to sort only the detailed records and Header and Trailer records must be kept as it is. We have only SORT utility in our mainframes and do not have Icetool. Please let me know how to proceed with problem. Currently I am extracting Header, Detail and Trailer into seperate files and After sorting the detailed records I am merging them back. Please let me know can it be done on single JCL step using SORT.
I/p
H header record
D Detail record 3
D Detail record 4
D Detail record 7
D Detail record 6
D Detail record 1
T Trailer record
O/p
H header record
D Detail record 1
D Detail record 3
D Detail record 4
D Detail record 6
D Detail record 7
T Trailer record |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can use the technique discussed in the "Sort records between a header and trailer" Smart DFSORT Trick at:
www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
Quote: |
We have only SORT utility in our mainframes and do not have Icetool. |
If you have DFSORT, then you have ICETOOL. ICETOOL has been shipped with DFSORT since 1991! I don't know why you think you don't have it. |
|
Back to top |
|
|
mvenkatesha
New User
Joined: 18 Oct 2006 Posts: 23 Location: bangalore
|
|
|
|
Thanks Frank.
But We have mandated to use SORT in our project. I have done that using merging but thinking of a way using single JCL step.
Thanks for the PDF. It's has a lot of usefull JCL SORT techniques. It will add lot of Colour to my life. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
But We have mandated to use SORT in our project. I have done that using merging but thinking of a way using single JCL step. |
Huh? That particular trick does use DFSORT (not ICETOOL) in a single JCL step. Do you think that because it has PGM=ICEMAN, it isn't using SORT? PGM=ICEMAN and PGM=SORT are equivalent. They are just different ways of invoking DFSORT. You can use PGM=SORT with that trick instead of PGM=ICEMAN if you like - it won't make any difference. |
|
Back to top |
|
|
|