Interview Questions   Tutorials   Discussions   Programs   

CICS - How to get 'time stamp' in cics program ,what is the syntax?




854
views
asked mar September 7, 2014 04:00 AM  

How to get 'time stamp' in cics program ,what is the syntax?


           

1 Answers



 
answered By Mswami   0  

ASKTIME:

Request current date and time of day.

Syntax:

ASKTIME

>>-ASKTIME--+----------------+----------------------><
            '-ABSTIME(data-area)-'   

Description:

ASKTIME updates the date (EIBDATE) and CICS time-of-day clock (EIBTIME) fields in the EIB. These two fields initially contain the date and time when the task started.

In response to an ASKTIME command, CICS issues an MVS™ STCK macro and modifies this by a local time difference. Thus, if your MVS TOD (hardware) clock is set to, say, GMT, and the local time is defined as British Summer Time (BST), it is BST that is stored in the EIBTIME field.

Refer to EXEC interface block for details of the EIB. Options

ABSTIME(data-area)

Specifies the data area for the number of milliseconds since 00:00 on 1 January 1900, which is known as absolute time. The time is taken from the system time-of-day clock, adjusted for leap seconds and to apply the local timezone offset (including daylight saving time), truncated to the millisecond, and returned as a packed decimal of length 8 bytes.

You can use FORMATTIME to change the data into other familiar formats.

For example, after execution of:

EXEC CICS ASKTIME ABSTIME(utime)

“utime” contains a value similar in format to 002837962864820.

The format of data-area is:

COBOL: PIC S9(15) COMP-3; PL/I: FIXED DEC(15)

flag   
   add comment

Your answer

Join with account you already have

FF

Preview

 Write A Tutorials
Online-Classroom Classes
www.writeabc.com


  1 person following this question

  Question tags

cics × 1

Asked 2 years and 3 months ago ago
Number of Views -854
Number of Answers -1
Last updated
3 years and 3 months ago ago

  Similar questions


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert