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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to use TSO CANCEL JOB in z/ os mainframe ?
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

Senior Member


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

PostPosted: Mon Jul 21, 2008 5:21 pm    Post subject:
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    Post subject: Reply to: How to use TSO CANCEL JOB in z/ os mainframe ?
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Jul 21, 2008 5:34 pm    Post subject: Reply to: How to use TSO CANCEL JOB in z/ os mainframe ?
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: 6968
Location: porcelain throne

PostPosted: Mon Jul 21, 2008 5:37 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Jul 21, 2008 5:51 pm    Post subject:
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    Post subject: Reply to: How to use TSO CANCEL JOB in z/ os mainframe ?
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Jul 21, 2008 8:09 pm    Post subject: Reply to: How to use TSO CANCEL JOB in z/ os mainframe ?
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

Senior Member


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

PostPosted: Mon Jul 21, 2008 9:22 pm    Post subject: Reply to: How to use TSO CANCEL JOB in z/ os mainframe ?
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am


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