View previous topic :: View next topic
|
Author |
Message |
srinut123
New User
Joined: 11 Oct 2005 Posts: 62 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Take a look at LE Callable Service routine 'CEELOCT', which will return a timstamp-format of HHMMSSmmm.
Regards, |
|
Back to top |
|
|
|