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: 1005
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 include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am

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