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

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

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 TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm


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