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

NDM Process - Obtaining the current date and timestamp


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ganeshn987

New User


Joined: 17 Feb 2010
Posts: 5
Location: United States

PostPosted: Fri Jun 03, 2011 11:17 pm
Reply with quote

Hi,

I need your help in getting the current date and timestamp in a NDM card in a particular format.

Date – MMDDYY (MM - month, DD – day, YY – year)
Timestamp – HHMISSNNN (HH – hour, MI – minutes, SS – seconds, NNN – milliseconds)

I have been trying a few parameters which I knew, but am not able to get the date and timestamp in the format which I need.

Some parameters which I tried in my NDM cards for getting the date and time are –

%SUBDATE - cyymmdd format, where c is century indicator
%SUBDATE1 - yyyymmdd
%SUBDATE2 - yyyyddmm
%SUBDATE3 - mmddyyyy
%SUBDATE4 – ddmmyyyy
%NUM1 – MISSNN (timestamp)

I am looking for a final output like this Filename_MMDDYYHHMISSNNN.TXT.

I would really appreciate, if you could let me know about some parameters which may help me get my desired output in the NDM process.

Thank you!

Regards,
Ganesh
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Jun 04, 2011 2:36 am
Reply with quote

There are no built-in variables for what you need. You'll have to do that externally, from a program.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top