View previous topic :: View next topic
|
Author |
Message |
techslam
New User
Joined: 03 Dec 2010 Posts: 87 Location: India
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
techslam
New User
Joined: 03 Dec 2010 Posts: 87 Location: India
|
|
|
|
@Bill,
Could you please help me with that ? I was unable to find the solution from manuals. Thanks |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Have you got the manual? Have a look at TO=Y2x. |
|
Back to top |
|
|
techslam
New User
Joined: 03 Dec 2010 Posts: 87 Location: India
|
|
Back to top |
|
|
|