IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to use TSO CANCEL JOB in z/ os mainframe ?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivachandran M

New User


Joined: 17 Sep 2007
Posts: 9
Location: chennai

PostPosted: Mon Jul 21, 2008 5:15 pm
Reply with quote

Hi all,

I need to cancel a job. I have tried with TSO CANCEL JOBNAME (JOBID) but the system displaying error message like "JOB jobname REJECTED - JOBNAME MUST BE YOUR USERID PLUS AT LEAST ONE CHARACTER" . even i have used TSO CANCEL JOBNAME (JOBID) PURGE command also. No use. Please help me in this issue. 787.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jul 21, 2008 5:21 pm
Reply with quote

Hello,
Quote:
JOB jobname REJECTED - JOBNAME MUST BE YOUR USERID PLUS AT LEAST ONE CHARACTER
Does it convey some message to you ?

Your ID is also "running" as JOB under MVS console, if you try to purge a JOB which has JOB name starting with Your ID , you must have it of 8-characters. (7-charactes from your ID & any alphanumeric literal). BTW, What is the the JOB name you used ?
Back to top
View user's profile Send private message
sivachandran M

New User


Joined: 17 Sep 2007
Posts: 9
Location: chennai

PostPosted: Mon Jul 21, 2008 5:34 pm
Reply with quote

my job name is XXXXXXET & job id is J010342
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jul 21, 2008 5:34 pm
Reply with quote

why not use SDSF??
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jul 21, 2008 5:37 pm
Reply with quote

TSO CANCEL will work if you supply it with a non-ambiguous jobname and use the correct syntax.

If you are a systems programmer, ignore this question:

why would you want to use the Foreground cancel command instead of going to your job display and perform the cancel there? though not necessary, will help you to find the correct job to cancel.


most people that I know only use the CANCEL command in scripts, where they have already interrogated the jeslist and know what is where.


if you are only trying to save time, you should check out the TSO DELETE command, saves you from using 3.1 screens for pds's and 3.4 screens for ds's.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jul 21, 2008 5:51 pm
Reply with quote

Hi,

Just noticed, this thread in CLIST & REXX part of the forum, I doubt it's again something to do with in-house tool..
Back to top
View user's profile Send private message
sivachandran M

New User


Joined: 17 Sep 2007
Posts: 9
Location: chennai

PostPosted: Mon Jul 21, 2008 5:56 pm
Reply with quote

ya .. u r rite anuj. its for in-house tool only. I need that command to use it in rexx code for automation tool for purging ids & jobs without using SDSF & other stuffs.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Jul 21, 2008 6:08 pm
Reply with quote

You should check first and see what jobs you are allowed to purge before you try doing it!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jul 21, 2008 8:09 pm
Reply with quote

I wonder why people writing tools
are only capable of writing, but not reading icon_biggrin.gif

what about the console host environment

or Implementing REXX Support in SDSF
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Jul 21, 2008 9:22 pm
Reply with quote

The default for CANCEL to only allow jobnames that consist of your userid plus a letter.

If you want to change the behavior, see "Writing an Exit for the OUTPUT, STATUS, and CANCEL Commands" in the TSO/E Customization" manual.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts NDM getting stuck - mainframe/JCL All Other Mainframe Topics 13
Search our Forums:

Back to Top