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

date format YY/MM/DD


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
techslam

New User


Joined: 03 Dec 2010
Posts: 87
Location: India

PostPosted: Mon Oct 22, 2012 5:39 pm
Reply with quote

Hi,

I have an input file of 80 bytes
Code:

RECORD1 YY/MM/DD
RECORD2 YY/MM/DD


I want my output file with record1 having yesterdays date and record2 with current-date

Code:

RECORD1 12/10/22
RECORD2 12/10/21


i was able to replace YY/MM/DD from input file with 2012/10/22 and 2012/10/21 using the usage of DATE1(/) and DATE1(/)-1


how to get the date in 12/10/22 format. Please help
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Oct 22, 2012 5:50 pm
Reply with quote

If you can't find a format in the manual which gives you that answer by default... you can always chop off the century with OVERLAY (if you are OK with the record-length) or BUILD (also to cut the record-length).
Back to top
View user's profile Send private message
techslam

New User


Joined: 03 Dec 2010
Posts: 87
Location: India

PostPosted: Mon Oct 22, 2012 5:56 pm
Reply with quote

@Bill,

Could you please help me with that ? I was unable to find the solution from manuals. Thanks
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Oct 22, 2012 6:16 pm
Reply with quote

Have you got the manual? Have a look at TO=Y2x.
Back to top
View user's profile Send private message
techslam

New User


Joined: 03 Dec 2010
Posts: 87
Location: India

PostPosted: Mon Oct 22, 2012 6:34 pm
Reply with quote

hello, got the solution here :-

ibmmainframes.com/about52881.html
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 Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
Search our Forums:

Back to Top