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 to sort the file with following records

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

New User


Joined: 17 Jul 2006
Posts: 2
Location: Hyderabad

PostPosted: Thu Jan 18, 2007 10:14 pm    Post subject: Need to sort the file with following records
Reply with quote

Hi,

I need to sort the file with following records. Effdate is spaces for XLC and Termdate is spaces for NBS which i have shown as ' '

policy(1-9) Trans(10to13)Effdate(14 to 21)Termdate(22 to 29)

111111111 XLC' '01012000
111111111 XLC' '09012000
111111111 NBS 01012000
111111111 NBS 09012000


output should be
111111111 XLC' '01012000
111111111 NBS 01012000
111111111 XLC' '09012000
111111111 NBS 09012000

Kindly help
Back to top
View user's profile Send private message

ramkguru

New User


Joined: 02 Nov 2005
Posts: 5

PostPosted: Thu Jan 18, 2007 11:30 pm    Post subject:
Reply with quote

TRY THIS:

SORT FIELDS=(22,8,A,14,8,A,10,3,A),FORMAT=CH
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Jan 19, 2007 12:42 am    Post subject:
Reply with quote

ramkguru,

It's really not clear what you're trying to do. Which fields are you sorting on and in what order? Are you trying to sort on termdate for XLC records and effdate for NBS records or what? Is the form of the date mmddyyyy?Do you have 19yy and 20yy dates or just 20yy dates? What is the RECFM and LRECL of the input file?
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am

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