Page 1 of 1

how we can generate date,time on cics screen

PostPosted: Tue Jun 15, 2010 10:33 am
by bhagavanreddy
i have given date field on screen but i cant generate date on to screen. current date need to generate and also time

Re: how we can generate date,time on cics screen

PostPosted: Tue Jun 15, 2010 4:01 pm
by Robert Sample
Find the CICS Language Reference manual (IBM's web site is a good place to start) and research the EXEC CICS ASKTIME and FORMATTIME commands -- despite the name, they handle dates as well as times.

Re: how we can generate date,time on cics screen

PostPosted: Tue Jun 15, 2010 4:42 pm
by enrico-sorichetti
time displays have always been a murky issue!
the best thing would be to review the issue at application specifications level

lots of discussions on how to tag appropriately the events related to
the same transaction in order to provide a consistent audit/reconciliation trail

just something to meditate on

EXEC CICS ASKTIME/FORMATTIME is technically correct,
but might not satisfy the above concern ( if used repeatedly in the same transaction )

Re: how we can generate date,time on cics screen

PostPosted: Thu Dec 02, 2010 5:24 pm
by muthyamseenu
what is the structure for ASKTIME in working-storage section declaration.
and procedure division declarations.

Re: how we can generate date,time on cics screen

PostPosted: Thu Dec 02, 2010 5:29 pm
by muthyamseenu
give a example for asktime in working-storage section.

Re: how we can generate date,time on cics screen

PostPosted: Thu Dec 02, 2010 7:55 pm
by Robert Sample
The variable definition needed by ASKTIME is defined in the CICS Application Programming Reference manual, which is easily found at the IBM web site.

Re: how we can generate date,time on cics screen

PostPosted: Fri Dec 03, 2010 2:50 am
by dick scherrer
Hello and welcome to the forum,

Have you found the documentation yet?

Are there any questions?

Re: how we can generate date,time on cics screen

PostPosted: Mon Jan 17, 2011 6:15 pm
by stevexff
Enrico is right - it is often best to ASKTIME into working storage at the start, and then use FORMATTIME on that value as many times as you need depending on your various display requirements. At least then you always use a consistent value, so it doesn't appear that the time is changing during the transaction.