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 COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm

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