View previous topic :: View next topic
|
Author |
Message |
kalpana
New User
Joined: 19 Nov 2004 Posts: 24 Location: Banglore
|
|
|
|
Hi all,
I want to retrieve todays date in to one field. Again i have to change this date into julian date(YYYDDD) format
Please respond to this query.
Thanks
Kalpana |
|
Back to top |
|
|
Bharanidharan
New User
Joined: 20 Jun 2005 Posts: 86 Location: Chennai, India
|
|
|
|
You may wish to use TIME macro in your routines to get the current date/time stamp. It will return the date in the format you request. Here is an example:
Code: |
TIME DEC,TIMEDATE,LINKAGE=SYSTEM,DATETYPE=YYYYDDD
TIMEDATE DS CL16 TIME AND DATE RETURNED
|
Here TIMEDATE is the variable where system would store the result. The first two full words in TIMEDATE would have time of the day in the format requested (DEC means format would be HHMMSS,milli,micro seconds); third full word would have the date in the format you requested (YYYYDDD); fourth full word must be initialized to zero before issuing TIME macro.
Please let me know if this is not what you want. |
|
Back to top |
|
|
yesyemviswa
New User
Joined: 13 Jul 2006 Posts: 2
|
|
|
|
Thanks a lot Bharanidhar........ |
|
Back to top |
|
|
|