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
 

 

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: 7306

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: 7306

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 How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm


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