View previous topic :: View next topic
|
Author |
Message |
subratarec
Active User
Joined: 22 Dec 2007 Posts: 126 Location: Bangalore
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Have a look at ICETOOl's DATASORT operator. Exactly what it was designed for. |
|
Back to top |
|
|
subratarec
Active User
Joined: 22 Dec 2007 Posts: 126 Location: Bangalore
|
|
|
|
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 |
|
|
|