Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to logoff from CICS region by using a program?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
sandeep_yadav_in
Currently Banned

New User


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

PostPosted: Fri Aug 24, 2007 3:43 pm    Post subject: How to logoff from CICS region by using a program?
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

Site Director


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

PostPosted: Sat Aug 25, 2007 2:18 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Sat Aug 25, 2007 4:07 am    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Sat Aug 25, 2007 5:01 am    Post subject:
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
Currently Banned

New User


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

PostPosted: Mon Aug 27, 2007 11:08 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Aug 30, 2007 6:19 am    Post subject:
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: Chennai

PostPosted: Thu Sep 27, 2007 7:12 pm    Post subject:
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    Post subject:
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: Chennai

PostPosted: Fri Sep 28, 2007 3:56 pm    Post subject:
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: 149
Location: Ottawa Canada

PostPosted: Fri Sep 28, 2007 8:07 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us