IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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: 116
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: 7312
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: 116
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 All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Join lines with dfsort DFSORT/ICETOOL 5
No new posts Covert k to 1000 / m to 1000000 using... DFSORT/ICETOOL 5
No new posts DFSORT Output file order query DFSORT/ICETOOL 2
This topic is locked: you cannot edit posts or make replies. DFSORT-How to convert ZD to ZS in DFSORT DFSORT/ICETOOL 2
No new posts DFSORT to handle in between specific ... DFSORT/ICETOOL 6

Back to Top