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
 
How to sort that Date field

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

New User


Joined: 12 Feb 2009
Posts: 33
Location: Chennai, India

PostPosted: Fri Jul 17, 2009 6:03 pm    Post subject: How to sort that Date field
Reply with quote

I have an input file which has date of form YYYY-MM-DD in 216 th position.
LRECL is 274 and format is FB

i used the below Sort step to sort the date field.
Code:
SORT FIELDS=(238,2,FI,A,240,2,FI,A,207,9,PD,A,216,10,DATE1(-),A)


It is throwing an below error.


Code:
ICE018A 0 INVALID OR MISSING FORMAT                                             
ICE012A 0 MISSING FIELDS OPERAND DEFINER                                       
ICE751I 0 C5-K90013 C6-K90013 C7-K90000 C8-K42135 E7-K24705                     
ICE800I 0 BLOCKSET TECHNIQUE COULD NOT BE USED - REASON CODE IS 01             
ICE802I J PEER/VALE    TECHNIQUE IN CONTROL                                     
ICE000I J - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 07:19 ON FRI JUL
             SORT FIELDS=(238,2,FI,A,240,2,FI,A,207,9,PD,A,216,10,DATE1(-),A)     
                                                                       $       
ICE007A P SYNTAX ERROR                                                         
ICE052I J END OF DFSORT                                                         


Can anyone help me how to sort that Date field? Thanks.
Back to top
View user's profile Send private message

Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1004
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Jul 17, 2009 6:23 pm    Post subject:
Reply with quote

Anything wrong with 216,10,CH,A ?

Garry.
Back to top
View user's profile Send private message
Sathish Gurumoorthy

New User


Joined: 12 Feb 2009
Posts: 33
Location: Chennai, India

PostPosted: Fri Jul 17, 2009 6:38 pm    Post subject:
Reply with quote

Thanks garry. it works icon_smile.gif
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 BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am

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