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
 

 

JCL to cancel any TSO Session

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
partha11

New User


Joined: 06 Jun 2005
Posts: 4

PostPosted: Mon May 21, 2007 12:55 pm    Post subject: JCL to cancel any TSO Session
Reply with quote

Hi, Anybody can provide me a JCL that can cancel any TSO Session?
suppose my TSo ID is abc12345 and I want to cancel any ID like abc99999 or abc00001 etc.

i want the jcl to work in any mainframe.

partha
Back to top
View user's profile Send private message

acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Mon May 21, 2007 2:09 pm    Post subject:
Reply with quote

Code:

//CANCELSE  JOB 'CANCEL SESION',MSGCLASS=V,TYPRUN=SCAN     
// COMMAND 'RO YOURSISTEM,C U=YOURUSERID'                 
//IEFBR14  EXEC PGM=IEFBR14                               
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: Tue May 22, 2007 5:15 am    Post subject:
Reply with quote

Hello,

That jcl will not work in any mainframe - miny mainfrfames do not allow programers to submit any console commands via jcl.

Mainframes that are properly administered would flush the job and/or alert the security administrators..

If you believe it is proper for you to cancel various users, you need to talk with your system support and security administration people and they will provide you with a solution for your site.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Wed May 23, 2007 11:33 am    Post subject: Re: Provide me a JCL that can cancel any TSO Session
Reply with quote

That jcl will not work in any mainframe - miny mainfrfames do not allow programers to submit any console commands via jcl.

I carry that code to every shop... and, until now, have run in every of them.



Mainframes that are properly administered would flush the job and/or alert the security administrators..

just found this situtation in one shop... so I got the job running from CICS (spool)



If you believe it is proper for you to cancel various users, you need to talk with your system support and security administration people and they will provide you with a solution for your site.

totally agree with that, above all if you're not a systemer.

;)
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
This topic is locked: you cannot edit posts or make replies. session stuck in TPX with status ACL amitc23 CA Products 1 Tue Dec 13, 2016 12:53 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts EDIT END(SAVE) or CANCEL? Steve Coalbran TSO/ISPF 9 Sat Feb 06, 2016 7:11 pm
No new posts Read data from Session table rexx77 DB2 4 Wed Feb 04, 2015 2:31 pm


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