Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Sorting only Detailed Records.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Sorting only Detailed Records.
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 Moderator


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

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

You can use the technique discussed in the "Sort records between a header and trailer" Smart DFSORT Trick at:

http://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    Post subject: Reply to: Sorting only Detailed Records.
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 Moderator


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

PostPosted: Tue Aug 21, 2007 9:16 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us