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

Interview Question


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ragin

New User


Joined: 20 Feb 2005
Posts: 16

PostPosted: Mon May 02, 2005 11:41 pm
Reply with quote

HI all,
How can u cancel a job in JCL while execution?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 03, 2005 5:31 am
Reply with quote

To cancel a job, if you have MVS console authority, you can enter the JES2 cancel command "$C 'jobname'. The entire list of JES2 commands arew documented here:

publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/has2a240/CCONTENTS

If the problem was sever enough that the cancel command does not work, then an MVS FORCE command might be necessary:

CANCEL jobname, documented here:

publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/iea2g141/CCONTENTS

If you don't have console authority, you can usually still cancel your own jobs from within your JES Spool access facility (SDSF, IOF, Sysview, etc.). A cancel command would typically be a "C" (cancel), "K" (kill), or "I" (interrupt). Consult the appropriate documentation for your product.
Back to top
View user's profile Send private message
ankyhunk

Moderator


Joined: 05 May 2005
Posts: 98
Location: Navi Mumbai, India

PostPosted: Mon May 09, 2005 10:26 am
Reply with quote

Sometimes, its better to purge a job instead of cancelling it. You can go to s.st & type 'P' before yr job name and press enter.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts panel creation question TSO/ISPF 12
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
Search our Forums:

Back to Top