IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Change todays date into julian date(YYYDDD) format


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kalpana

New User


Joined: 19 Nov 2004
Posts: 24
Location: Banglore

PostPosted: Wed Jul 19, 2006 11:46 am
Reply with quote

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
View user's profile Send private message
Bharanidharan

New User


Joined: 20 Jun 2005
Posts: 86
Location: Chennai, India

PostPosted: Wed Jul 19, 2006 12:06 pm
Reply with quote

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
View user's profile Send private message
yesyemviswa

New User


Joined: 13 Jul 2006
Posts: 2

PostPosted: Thu Jul 20, 2006 1:52 pm
Reply with quote

Thanks a lot Bharanidhar........
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
Search our Forums:

Back to Top