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: 10210
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: 6966
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: 10210
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: 2025
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 Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm
No new posts Interface from Mainframe to Confluenc... hblun CLIST & REXX 4 Tue Sep 20, 2016 5:47 pm


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