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

Need urget help on DFSORT


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

Active User


Joined: 22 Dec 2007
Posts: 126
Location: Bangalore

PostPosted: Sat Jan 17, 2015 11:40 pm
Reply with quote

Hi,

Need urgent help/suggestion on below issue..

Issue description:
----------------------------------
I have a file with 2 header rec and one footer rec.In between these 2 header and 1 footer rec I have the main data. Format is something like this.. Header rec starts with 'H' and Footer 'F'

Code:
H;COMPANYNAME:SE0001;DATE:2015-01-17.                           
H;WarehouseID;Model;Colour;Size;ProductID;ArticleID;Size Code
D;SE0001     ;92959;A       ;675 ;0110065  ;002      ;130   
D;SE0001     ;71684;A       ;000 ;0112676  ;001      ;253   
D;SE0001     ;97131;D       ;000 ;0112676  ;001      ;253   
D;SE0001     ;66807;R       ;000 ;0157961  ;001      ;000   
F;RowCounts: XXX      ;QuantityXXXXXXXXXXXX:    24337


I have to use JCL to copy from input file to output file. It should copy first 2 header rec and 1 footer rec as it is but the data should below copied in sorted order on model,Colour and Size.. that means in between data rec will be sorted in output file...

Can this be possible with DFSORT? if anyone knows could you please guide me on how to do that?

Thanks in advance
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat Jan 17, 2015 11:52 pm
Reply with quote

Have a look at ICETOOl's DATASORT operator. Exactly what it was designed for.
Back to top
View user's profile Send private message
subratarec

Active User


Joined: 22 Dec 2007
Posts: 126
Location: Bangalore

PostPosted: Sun Jan 18, 2015 12:35 am
Reply with quote

Hi Bill,

First of all.. A million Thanks!!! to you. Your suggestion was a life saver to me. I really appreciate your help. It worked!!!!

Thanks
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 Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
No new posts DFSORT - VB file RDW getting overridden DFSORT/ICETOOL 3
Search our Forums:

Back to Top