IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to logoff from CICS region by using a program?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sandeep_yadav_in

New User


Joined: 26 May 2007
Posts: 13
Location: Noida, India

PostPosted: Fri Aug 24, 2007 3:43 pm
Reply with quote

Hi Guys,
I'm facing a problem i.e.
My CICS screen looks like this
1- ADD
2- SEARCH
3- UPDATE
4- DELETE
5- EXIT

PLEASE ENTER YOUR CHOICE -

If 5 is entered, i want the the CICS region to be logged off.

I'm using EXEC CICS SIGNOFF END-EXEC, but it is not working.....

can anybody please tell how to do it?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Aug 25, 2007 2:18 am
Reply with quote

Hello Sandy and welcome to the forums,

Quote:
I'm using EXEC CICS SIGNOFF END-EXEC, but it is not working.....
Please clarify "not working".

Is there an abend or is some error being thrown - if yes, what is presented to you?

Is the transaction still active?
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Sat Aug 25, 2007 2:30 am
Reply with quote

My guess is the OP wants to do something equivelent to CESF LOGOFF
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Aug 25, 2007 4:07 am
Reply with quote

Hello,

Would not an xctl allow this?

That's why i asked what was happening. . .
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Aug 25, 2007 5:01 am
Reply with quote

Quote:
My guess is the OP wants to do something equivelent to CESF LOGOFF


I don't believe you can do that from a MACRO CICS module . Otherwise, upon completion of a transaction, the user would be required to logon to CICS again to do another transaction. Talk about attracting unfriendly visits from users. icon_mad.gif
Back to top
View user's profile Send private message
sandeep_yadav_in

New User


Joined: 26 May 2007
Posts: 13
Location: Noida, India

PostPosted: Mon Aug 27, 2007 11:08 am
Reply with quote

Hi Dick,

Is there an abend or is some error being thrown - if yes, what is presented to you?

There no ABEND or Error. When I'm entering 5 and pressing Enter,
nothing is happening?????


Is the transaction still active?[/quote]

Yes the Transaction is still Active

The Code that I'm writing is

EXEC CICS SIGNOFF END-EXEC
EXEC CICS RETURN END-EXEC
Back to top
View user's profile Send private message
Earl

Active User


Joined: 17 Jun 2007
Posts: 148
Location: oklahoma

PostPosted: Thu Aug 30, 2007 5:09 am
Reply with quote

try using SP " EXEC CICS DISCONNECT , however you may not be authroized to use SP commands, check with you tech support people.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 30, 2007 6:19 am
Reply with quote

Hello,

From DBZ
Quote:
Otherwise, upon completion of a transaction, the user would be required to logon to CICS again to do another transaction

What if this "transaction" was the only way in and or out for a particular set of users? Might it be a front-end menu and when "done", all the usere can do is log back in or close the terminal session?

I supported several sites where "end-users" never saw the CICS blank screen. When the logged in, the menu was presented and they could not navigate out of it. The menu was dynamically build to only show options that user was permitted to use.

But it would surely not do for a "regular" transaction. Again as DBZ said,
Quote:
Talk about attracting unfriendly visits . . .
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Thu Sep 27, 2007 7:12 pm
Reply with quote

Hi ALL,


Press F3 Until it gives "CESF LOGOFF XXXXXXXXXXXXXXXXXXXXXXXXXX"( X --> some other information). Then Press ENTER

OR

Use CESF LOGOFF To come out from CICS region,

But if U r looking for doing another transaction then check ur program whether it has given a facility to perform another transaction. Then also make sure whether it is Psuedo-conversationa Program.

Or

If your intension is to run other program with different TRN ID, Press F3 Until it gives "CESF LOGOFF XXXXXXXXXXXXXXXXXXXXXXXXXX"( X --> some other information). Then Press Pause/Break (to clear the screen), Then type TRN ID, Press ENTER.

These are the things we performing here.

Try out this And correct if i am wrong.

Thanks
Back to top
View user's profile Send private message
Earl

Active User


Joined: 17 Jun 2007
Posts: 148
Location: oklahoma

PostPosted: Thu Sep 27, 2007 8:15 pm
Reply with quote

Hermantha,

what you describe regarding press PF3 until it gives CESF LOGOFF
is obviously unique to your enivronment ONLY.

Other CICS shops do things differently.



If you really want to signoff and quit terminal session, then I've
seen many places use 'EXEC CICS ISSUE DISCONNECT'
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Fri Sep 28, 2007 3:56 pm
Reply with quote

Hi Earl,

Thanks for correcting me.

But in Pseudo-convesational Program, This is common in every application as I worked for more than 20 different module.

Thats why, I had mentioned all possibilities of chances. Any good online CICS will contains this technique. Check out this.

Above is for kind suggestions only, donot think bad. Since for new enhncement, it could helpful to others also.

Thanks and Regards
Back to top
View user's profile Send private message
TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 148
Location: Ottawa Canada

PostPosted: Fri Sep 28, 2007 8:07 pm
Reply with quote

We use this method.

05 WS-INPUTMSG PIC X(11) VALUE "CESF LOGOFF".

EXEC CICS
RETURN TRANSID("CESF")
INPUTMSG(WS-INPUTMSG)
INPUTMSGLEN(LENGTH OF WS-INPUTMSG)
IMMEDIATE
END-EXEC
Back to top
View user's profile Send private message
Earl

Active User


Joined: 17 Jun 2007
Posts: 148
Location: oklahoma

PostPosted: Fri Sep 28, 2007 8:18 pm
Reply with quote

TG,
thats pretty slick, haven't seen that one before. icon_idea.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top