Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Need urget help on DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
subratarec

Active User


Joined: 22 Dec 2007
Posts: 113
Location: Bangalore

PostPosted: Sat Jan 17, 2015 11:40 pm    Post subject: Need urget help on DFSORT
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7312

PostPosted: Sat Jan 17, 2015 11:52 pm    Post subject: Reply to: Need urget help on DFSORT
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: 113
Location: Bangalore

PostPosted: Sun Jan 18, 2015 12:35 am    Post subject: Reply to: Need urget help on DFSORT
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    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 DFSORT to handle in between specific ... subratarec DFSORT/ICETOOL 6 Thu Feb 06, 2020 1:22 am
No new posts Need help with this dfsort problem kushkush DFSORT/ICETOOL 7 Sun Feb 02, 2020 6:34 pm
No new posts RegEx Support in DFSORT (z/OS 2.4) Joerg.Findeisen DFSORT/ICETOOL 3 Thu Nov 14, 2019 7:44 am
No new posts Need advise in calling DFSORT from REXX ajithajt CLIST & REXX 9 Thu Nov 29, 2018 10:50 am
No new posts How to handle different file length b... javen777 DFSORT/ICETOOL 15 Mon Nov 26, 2018 12:13 pm

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