how we can generate date,time on cics screen



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

how we can generate date,time on cics screen

Postby bhagavanreddy » Tue Jun 15, 2010 10:33 am

i have given date field on screen but i cant generate date on to screen. current date need to generate and also time
bhagavanreddy
 
Posts: 2
Joined: Mon Feb 15, 2010 10:43 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby Robert Sample » Tue Jun 15, 2010 4:01 pm

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

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

Postby enrico-sorichetti » Tue Jun 15, 2010 4:42 pm

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 )
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

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

Postby muthyamseenu » Thu Dec 02, 2010 5:24 pm

what is the structure for ASKTIME in working-storage section declaration.
and procedure division declarations.
muthyamseenu
 
Posts: 2
Joined: Sat Oct 30, 2010 5:10 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby muthyamseenu » Thu Dec 02, 2010 5:29 pm

give a example for asktime in working-storage section.
muthyamseenu
 
Posts: 2
Joined: Sat Oct 30, 2010 5:10 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby Robert Sample » Thu Dec 02, 2010 7:55 pm

The variable definition needed by ASKTIME is defined in the CICS Application Programming Reference manual, which is easily found at the IBM web site.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

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

Postby dick scherrer » Fri Dec 03, 2010 2:50 am

Hello and welcome to the forum,

Have you found the documentation yet?

Are there any questions?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby stevexff » Mon Jan 17, 2011 6:15 pm

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.
Steve
stevexff
 
Posts: 56
Joined: Wed Nov 10, 2010 7:48 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post