IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to sort that Date field


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 1193
Location: Dublin, Ireland

PostPosted: Fri Jul 17, 2009 6:23 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top