Cancel TSO Session using JCL?

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
FatimaP12
Registered Member
Posts: 12
Joined: Wed Dec 23, 2015 11:09 am

Cancel TSO Session using JCL?

Post 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.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Cancel TSO Session using JCL?

Post 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.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Cancel TSO Session using JCL?

Post 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
zprogrammer
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Cancel TSO Session using JCL?

Post by nicc »

Hanged! Executing! Gosh - IT is becoming deadly this year! :)
Regards
Nic
FatimaP12
Registered Member
Posts: 12
Joined: Wed Dec 23, 2015 11:09 am

Re: Cancel TSO Session using JCL?

Post 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.
FatimaP12
Registered Member
Posts: 12
Joined: Wed Dec 23, 2015 11:09 am

Re: Cancel TSO Session using JCL?

Post 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.
FatimaP12
Registered Member
Posts: 12
Joined: Wed Dec 23, 2015 11:09 am

Re: Cancel TSO Session using JCL?

Post 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.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Cancel TSO Session using JCL?

Post 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?
FatimaP12
Registered Member
Posts: 12
Joined: Wed Dec 23, 2015 11:09 am

Re: Cancel TSO Session using JCL?

Post by FatimaP12 »

Hi all,

This has worked for me.

Code: Select all

//STEP01 EXEC PGM=IEFBR14 
//   COMMAND 'C U=myracfid'
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Cancel TSO Session using JCL?

Post by Anuj Dhawan »

Thanks for posting what has worked for you. Appreciate that.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
FatimaP12
Registered Member
Posts: 12
Joined: Wed Dec 23, 2015 11:09 am

Re: Cancel TSO Session using JCL?

Post by FatimaP12 »

I have no problem in sharing what has worked for me.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Cancel TSO Session using JCL?

Post 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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”