Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us