Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm
No new posts Sorting on text - but in non-alphabet... Roy Ware SYNCSORT 5 Wed Aug 23, 2017 9:15 pm
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us