View previous topic :: View next topic
|
Author |
Message |
sivachandran M
New User
Joined: 17 Sep 2007 Posts: 9 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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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: 9 Location: chennai
|
|
|
|
my job name is XXXXXXET & job id is J010342 |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why not use SDSF?? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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: 9 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: 1512 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
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
|