Page 1 of 1

CICS RETURN issue

PostPosted: Fri Jun 01, 2018 5:02 am
by kingo
Hi,

I have created a Transaction say AB01 which executes program A and after the execution to exit from the Map I have the following commands

EXEC CICS SEND CONTROL ERASE END-EXEC.
EXEC CICS RETURN END-EXEC.


My expectation is I wanted to return to CICS but instead the session freezes and I get session ended in CICS. ( I say it doesn't loop as the usage count doesn't increase)

I am not very sure how to exit out of the freeze and return back to CICS.

What should I do?

Re: CICS RETURN issue

PostPosted: Fri Jun 01, 2018 5:59 am
by Robert Sample
What should I do?
Fix the problems in your code would be the obvious response!

Are you using pseudo-conversational code or conversational code or something else? When you say "the session freezes" what do you mean? And make up your mind -- is the session frozen or did CICS end the session (it can't be both because if CICS ended the session there is no way the session is frozen). Is the keyboard locked? What happens when you used CEDF to step through the CICS commands?
I get session ended in CICS
Since you issued EXEC CICS RETURN END-EXEC (which ends a terminal session) what, exactly, did you expect to happen? CICS appears to have done precisely what you told it to do. What are you wanting to happen as opposed to what happens?

Re: CICS RETURN issue

PostPosted: Fri Jun 01, 2018 2:40 pm
by kingo
Hi Robert,

The transaction is conversational .

Ok I am sorry for not explaining it better earlier, Below are the set of actions expected

Expected Result:
Logged in to cics (1) -> Present in CICS region (2) -> Invoked the transaction (3) -> perform certain actions (4) ( 3 and 4 can be done any number of times) -> Last step exit from transaction -> Present in CICS region

Actual Result:
Logged in to cics (1) -> Present in CICS region (2) -> Invoked the transaction (3) -> perform certain actions (4) ( 3 and 4 can be done any number of times) -> Last step exit from transaction -> screen freezes in sense I could not type anything in cics and the emulator I need to press scroll lock to type anything back again ( Does it mean keyboard locked)

CEDF -> I tried CEDF and Transaction is return back to CICS without any froze screen , I am able to normally enter other commands without using scroll lock.

Re: CICS RETURN issue

PostPosted: Fri Jun 01, 2018 4:58 pm
by Robert Sample
I recommend you add FREEKB to your EXEC CICS SEND CONTROL. Without FREEKB, the keyboard will remain locked and you will not be able to type anything into it while the terminal is connected to the CICS region.

Re: CICS RETURN issue

PostPosted: Fri Jun 01, 2018 5:04 pm
by kingo
Hi Robert,

Great, Thanks, I tried your solution and It worked as expected. Thanks a bunch :) :)