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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm

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