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

Need TIME STAMP IN YYYYMMDD-HHMMSSmmm IN Cobol and Db2


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srinut123

New User


Joined: 11 Oct 2005
Posts: 62
Location: India

PostPosted: Tue Mar 10, 2009 1:17 am
Reply with quote

Hi
I need to get the timestamp in YYYYMMDD-HHMMSSmmm (where mmm: millisecond) in Cobol as well as in DB2.
Pls advice.

Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 10, 2009 1:22 am
Reply with quote

Hello,

Do not post the same question in multiple parts of the forum.

The duplicate in the db2 part of the forum has been deleted.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Mar 10, 2009 1:27 am
Reply with quote

That is not the usual format for a DB2 timestamp but you could user char and substr to get it in that format, or you could use a few moves in your cobol program to rearrange the normal DB2 format into the format you want.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Mar 10, 2009 3:33 am
Reply with quote

Take a look at LE Callable Service routine 'CEELOCT', which will return a timstamp-format of HHMMSSmmm.

Regards,
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top