CICS RETURN issue



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

CICS RETURN issue

Postby kingo » Fri Jun 01, 2018 5:02 am

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?
kingo
 
Posts: 5
Joined: Wed Aug 15, 2007 8:06 am
Has thanked: 2 times
Been thanked: 0 time

Re: CICS RETURN issue

Postby Robert Sample » Fri Jun 01, 2018 5:59 am

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?

These users thanked the author Robert Sample for the post:
kingo (Fri Jun 01, 2018 5:05 pm)
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: CICS RETURN issue

Postby kingo » Fri Jun 01, 2018 2:40 pm

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.
kingo
 
Posts: 5
Joined: Wed Aug 15, 2007 8:06 am
Has thanked: 2 times
Been thanked: 0 time

Re: CICS RETURN issue

Postby Robert Sample » Fri Jun 01, 2018 4:58 pm

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.

These users thanked the author Robert Sample for the post:
kingo (Fri Jun 01, 2018 5:05 pm)
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: CICS RETURN issue

Postby kingo » Fri Jun 01, 2018 5:04 pm

Hi Robert,

Great, Thanks, I tried your solution and It worked as expected. Thanks a bunch :) :)
kingo
 
Posts: 5
Joined: Wed Aug 15, 2007 8:06 am
Has thanked: 2 times
Been thanked: 0 time


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post