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
 
date format YY/MM/DD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: date format YY/MM/DD
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon Oct 22, 2012 5:50 pm    Post subject: Reply to: date format YY/MM/DD
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon Oct 22, 2012 6:16 pm    Post subject: Reply to: date format YY/MM/DD
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    Post subject:
Reply with quote

hello, got the solution here :-

http://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    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 Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm

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