Page 1 of 1

Cancel TSO Session using JCL?

Posted: Mon Jan 04, 2016 4:40 pm
by FatimaP12
Hi,

Can we cancel a TSO Session using JCL? I got my ID hanged today and the support desk said ask to cancel the TSO session in the team. Some can have a JCL to cancel the sessions. But as most of us are new here, no one knows of such a JCL. Does any one of you have such JCL available? Please share.

Re: Cancel TSO Session using JCL?

Posted: Mon Jan 04, 2016 5:03 pm
by William Collins
Ask your technical support team. They will know the procedure they want you to use to do this (even if it means you telephone someone and get them to do it). Attempting to run random bits of JCL picked up from the Internet is unlikely to be the suggested course of action.

Re: Cancel TSO Session using JCL?

Posted: Mon Jan 04, 2016 5:08 pm
by zprogrammer
what do you mean by hanged?
Are you executing any foreground programs that is in loop?

Also if you just wanted to reconnect

Try

Code: Select all

TSO <USERID> RECONNECT

Re: Cancel TSO Session using JCL?

Posted: Tue Jan 05, 2016 1:23 am
by nicc
Hanged! Executing! Gosh - IT is becoming deadly this year! :)

Re: Cancel TSO Session using JCL?

Posted: Tue Jan 12, 2016 10:46 am
by FatimaP12
nicc wrote:Hanged! Executing! Gosh - IT is becoming deadly this year! :)
I might not be correct in using the terms but then what do you call it? Please guide me.

Re: Cancel TSO Session using JCL?

Posted: Tue Jan 12, 2016 11:10 am
by FatimaP12
Pandora-Box wrote:what do you mean by hanged?
Are you executing any foreground programs that is in loop?

Also if you just wanted to reconnect

Try

Code: Select all

TSO <USERID> RECONNECT
No, no program was executing but at left bottom of the screen a clock kept on showing up and showing up.

Re: Cancel TSO Session using JCL?

Posted: Tue Jan 12, 2016 11:12 am
by FatimaP12
William Collins wrote:Ask your technical support team. They will know the procedure they want you to use to do this (even if it means you telephone someone and get them to do it). Attempting to run random bits of JCL picked up from the Internet is unlikely to be the suggested course of action.
Yes this is what I did. But they suggested that there are some JCL in our team which can be used to purge the session rather than waiting them to come and purge, in case we are in middle of something important.

Re: Cancel TSO Session using JCL?

Posted: Tue Jan 12, 2016 6:17 pm
by Robert Sample
But they suggested that there are some JCL in our team
In that case, why are you posting here instead of talking to your team to find that JCL?

Re: Cancel TSO Session using JCL?

Posted: Tue Feb 09, 2016 11:52 am
by FatimaP12
Hi all,

This has worked for me.

Code: Select all

//STEP01 EXEC PGM=IEFBR14 
//   COMMAND 'C U=myracfid'

Re: Cancel TSO Session using JCL?

Posted: Sat Feb 20, 2016 5:35 pm
by Anuj Dhawan
Thanks for posting what has worked for you. Appreciate that.

Re: Cancel TSO Session using JCL?

Posted: Mon Feb 22, 2016 2:58 pm
by FatimaP12
I have no problem in sharing what has worked for me.

Re: Cancel TSO Session using JCL?

Posted: Mon Feb 22, 2016 3:46 pm
by enrico-sorichetti
too bad that what worked for You is not considered a good practice. :twisted:

but it has become an habit on most of the forum, just make the idtents happy even if the answer is contrary to good COMMON practices