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
 
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

New User


Joined: 22 Dec 2007
Posts: 78
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: 7314

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

New User


Joined: 22 Dec 2007
Posts: 78
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 Formatting using DFsort Guru Nandu DFSORT/ICETOOL 5 Thu Nov 30, 2017 7:33 am
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm

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