|
|
| Author |
Message |
sivachandran M
New User
Joined: 17 Sep 2007 Posts: 6 Location: chennai
|
|
|
|
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.  |
|
| Back to top |
|
 |
References
|
Posted: Mon Jul 21, 2008 5:15 pm Post subject: Re: How to use TSO CANCEL JOB in z/ os mainframe ? |
 |
|
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 1960 Location: Phoenix, AZ
|
|
|
|
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 |
|
 |
sivachandran M
New User
Joined: 17 Sep 2007 Posts: 6 Location: chennai
|
|
|
|
| my job name is XXXXXXET & job id is J010342 |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2665 Location: italy
|
|
|
|
| why not use SDSF?? |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1520 Location: germany
|
|
|
|
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 |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 1960 Location: Phoenix, AZ
|
|
|
|
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 |
|
 |
sivachandran M
New User
Joined: 17 Sep 2007 Posts: 6 Location: chennai
|
|
|
|
| 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 |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 985 Location: Virginia, USA
|
|
|
|
| You should check first and see what jobs you are allowed to purge before you try doing it! |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2665 Location: italy
|
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 401 Location: work
|
|
|
|
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 |
|
 |
|
|