IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sorting only Detailed Records.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mvenkatesha

New User


Joined: 18 Oct 2006
Posts: 23
Location: bangalore

PostPosted: Mon Aug 20, 2007 4:11 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Aug 20, 2007 8:25 pm
Reply with quote

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
View user's profile Send private message
mvenkatesha

New User


Joined: 18 Oct 2006
Posts: 23
Location: bangalore

PostPosted: Tue Aug 21, 2007 11:14 am
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Aug 21, 2007 9:16 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts To fetch records that has Ttamp value... DFSORT/ICETOOL 4
No new posts ICETOOL returns no records JCL & VSAM 1
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top