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 Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm

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