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

Get current timestamp without using SQL query


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bill O'Boyle

CICS Moderator


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

PostPosted: Mon Dec 20, 2010 12:24 am
Reply with quote

FWIW, in CICS/TS 4.1, the ASKTIME ABSTIME returned value will contain (most of the time) a non-X'0' millisecond digit, in the high-order nibble of the last (sign) byte. In other words, not rounded as in previous version/releases.

Bill
Back to top
View user's profile Send private message
mlp

New User


Joined: 23 Sep 2005
Posts: 91

PostPosted: Mon Dec 20, 2010 9:01 am
Reply with quote

Got lot of information regarding the time, date and timestamp.

Thanks Everybody !!

And as far as my issue is concerned I still require the microseconds and moreover in CICS env. But I think after all of this discussion it is now safe to conlude that I can get it (time in mircosencods) from DB2 only (with the current timestamp). Please correct me if I am wrong.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Dec 20, 2010 9:57 pm
Reply with quote

If you had told us why you need such a thing, we could have given many more good ideas.

For example, maybe 100th of second is enough for your need.
Once I used the time (up to 100th of second) and added a counter instead of the millisec (can't remember exactly the precision used, but that's the general idea).

And again, if you had said "CICS" from the beginning, some suggestions would never have been made.
Bottom line, some people just lost their time with you icon_mad.gif
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 Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Changeman - how can we know the curr... Compuware & Other Tools 2
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top