Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Need TIME STAMP IN YYYYMMDD-HHMMSSmmm IN Cobol and Db2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Need TIME STAMP IN YYYYMMDD-HHMMSSmmm IN Cobol and Db2
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

Site Director


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

PostPosted: Tue Mar 10, 2009 1:22 am    Post subject:
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    Post subject:
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Tue Mar 10, 2009 3:33 am    Post subject: Reply to: Need TIME STAMP IN YYYYMMDD-HHMMSSmmm IN Cobol and
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us