MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CICS timeout of a screen

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Dip
Beginner


Joined: 24 Mar 2006
Posts: 27
Topics: 14

PostPosted: Thu Feb 24, 2011 12:31 am    Post subject: CICS timeout of a screen Reply with quote

Hi,

Is there any way we can control the timeout of a CICS screen?

Let say I want a application screen to be set to timeout after XX sec? Can we control this?

Thanks!
Dip.
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Feb 24, 2011 1:15 am    Post subject: Reply with quote

Dip,


Read Timeout section in here

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dfht5a09/1.2.5.2
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu Feb 24, 2011 2:12 am    Post subject: Reply with quote

Why would you want to do that?
Back to top
View user's profile Send private message Visit poster's website
Dip
Beginner


Joined: 24 Mar 2006
Posts: 27
Topics: 14

PostPosted: Sat Feb 26, 2011 2:15 am    Post subject: Reply with quote

Hi Kolsu,

Thanks for your reply. Seems like this TIMEOUT option is set for the terminal timeout. Any idea if we can set something like this at a Tran ID level?


Hello Warp5,

I am working on a CICS update screen where only one user can update some data at one point of time after browsing the screen. But I dont want the users to stay in the screen for more than X mins.

I think there is a default time-out set up by CICS, so that if one user browse the screen but does not do anything it will be automatically timed out after certain time. But if that default time-out setting is too much (let say 10-15 mins) then i want to reduce it to X mins so that other users can update the data after X mins.

I was looking for an option to handle this situation programtically or some other way using the tran ID.

Tahnks!
Dip.
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Sat Feb 26, 2011 9:46 pm    Post subject: Reply with quote

Dip wrote:
Hi Kolsu,

Thanks for your reply. Seems like this TIMEOUT option is set for the terminal timeout. Any idea if we can set something like this at a Tran ID level?


Dip,

Here is a thought which you can implement. When you send the update screen for the user set the time and also trigger another transaction(special transaction to get back to the main screen) with a wait time of your timeout. So if the user doesn't respond in time , the special transaction kicks in

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Feb 28, 2011 2:12 am    Post subject: Reply with quote

save the 'file/database' before image in your dfhcom.

When you receive 'change to' data from the user,
insure the file/database contains the same data as the before image
(i.e. read or select the data and compare.)
if not, return error to user telling him/her that the data was updated prior to his/her attempt.

you don't want to waste resources nagging a user about how slow he/she is.
what you want to do is prevent updates to files/databases based on faulty data -
i.e. before image displayed to user is not the same as the actual file.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Mon Feb 28, 2011 3:42 am    Post subject: Reply with quote

It sounds like you want to have a conversational transaction, which can not be recommended, a CICS transaction should send out data and end. The transaction starts again after the user has pressed enter. There are usually no controls at all between those two actions. So, with the information you have given so far it sounds like you have a bad solution.
Back to top
View user's profile Send private message Visit poster's website
Dip
Beginner


Joined: 24 Mar 2006
Posts: 27
Topics: 14

PostPosted: Wed Mar 09, 2011 3:13 pm    Post subject: Reply with quote

In our system the TYPETERM SIGNOFF is set to YES and the TIMEOUT value is 1 Hr. So if a terminal has an hour of inactivity, the user will automatically be logged out of CICS.

dbzTHEdinosauer,

My design assumption is 'Only One user can update the data at one point of time'. Our requirement is NOT to 'block' a particualr screen/ system access for standard cutoff 1 Hr time. As TYEPTERM is a system parameters and applies to all the users / screens I really dont want to change that in our system. Even I dont think the CICS admin will agree to change the TYPETERM SIGNOFF defination.

Kolsu,

I like your idea. Can you please give me some technical details on 'setting the wait time' for a screen and 'trigger another transaction like going back to the main screen' so that I can discuss this option with the tech team here?

Thanks!
-DIp
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Mar 09, 2011 3:48 pm    Post subject: Reply with quote

Dip wrote:
Kolsu,

I like your idea. Can you please give me some technical details on 'setting the wait time' for a screen and 'trigger another transaction like going back to the main screen' so that I can discuss this option with the tech team here?

Thanks!
-DIp


Dip,

I would really appreciate if you can at least spend some time to spell my name right. Minor issue but just shows how much effort you can put into paying attention to details/investigating/learning something new.

Here is a basic outline ( Don't hold me accountable as my CICS programming is very rusty as I last worked on it in 2001).

1. Send the screen for user input.

2. At the same time START the transaction with delay as explained here (store the timestamp in a TSQ/TDQ )

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP4A08/1.230

3. Now if the user returned the screen well before the timeout, you need to issue a CANCEL on the transaction which you invoked in step 2.

Read about cancel here

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHP4A08/1.22

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dip
Beginner


Joined: 24 Mar 2006
Posts: 27
Topics: 14

PostPosted: Wed Mar 09, 2011 6:22 pm    Post subject: Reply with quote

Kolusu,

First of all, extremely sorry for misspelling your name but just believe me from the very first post in mvsforum where you replied against my query I am addressing you wrongly as 'Kolsu' instead of 'Kolusu'. I was looking at all my posts in 'mvsforums' help board and saw that 99% times I spelled your name wrongly as 'Kolsu'. A BIG Sorry for that too...

Also I am not a experienced person in CICS and before posting this query to mvsforums my thought was, someone already faced similar problem and can help me with a
Back to top
View user's profile Send private message Yahoo Messenger
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu Mar 10, 2011 2:18 am    Post subject: Reply with quote

I still say that you have a bad design and solution. This is not transaction oriented programming. Either you have a low CICS volume or few users. We have some 600,000 transactions a day which means there is a high probability that more than one person will try to use the same transaction near the same time. Like I have already said, it sounds like you are using conversational transactions, which is a very bad idea for CICS.
Back to top
View user's profile Send private message Visit poster's website
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Thu Mar 10, 2011 2:25 pm    Post subject: Reply with quote

Quote:
Like I have already said, it sounds like you are using conversational transactions, which is a very bad idea for CICS.


But it is so much easier to implement when no planning is needed before the code is written/implemented. . . raised eyebrow

di
Back to top
View user's profile Send private message
Dip
Beginner


Joined: 24 Mar 2006
Posts: 27
Topics: 14

PostPosted: Thu Mar 10, 2011 6:40 pm    Post subject: Reply with quote

warp5,

Transaction volume is very very low ..

No of users: 20-30
Transaction rate: 400-500 Updates / day

Thanks!
-Dip.
Back to top
View user's profile Send private message Yahoo Messenger
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Fri Mar 11, 2011 2:59 am    Post subject: Reply with quote

Ok, it may work, but you are learning and implementing a solution that can not be transferred to a real working environment. In other words, you are learning and implementing a bad habit.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group