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: 994
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am


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