View previous topic :: View next topic
|
Author |
Message |
sandeep_yadav_in
New User
Joined: 26 May 2007 Posts: 13 Location: Noida, India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
My guess is the OP wants to do something equivelent to CESF LOGOFF |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Would not an xctl allow this?
That's why i asked what was happening. . . |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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. |
|
Back to top |
|
|
sandeep_yadav_in
New User
Joined: 26 May 2007 Posts: 13 Location: Noida, India
|
|
|
|
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 |
|
|
Earl
Active User
Joined: 17 Jun 2007 Posts: 148 Location: oklahoma
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
hemanth.nandas
Active User
Joined: 18 Aug 2007 Posts: 120 Location: India
|
|
|
|
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 |
|
|
Earl
Active User
Joined: 17 Jun 2007 Posts: 148 Location: oklahoma
|
|
|
|
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 |
|
|
hemanth.nandas
Active User
Joined: 18 Aug 2007 Posts: 120 Location: India
|
|
|
|
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 |
|
|
TG Murphy
Active User
Joined: 23 Mar 2007 Posts: 148 Location: Ottawa Canada
|
|
|
|
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 |
|
|
Earl
Active User
Joined: 17 Jun 2007 Posts: 148 Location: oklahoma
|
|
|
|
TG,
thats pretty slick, haven't seen that one before. |
|
Back to top |
|
|
|