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
 

 

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

Active Member


Joined: 08 May 2006
Posts: 995
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 to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm


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