Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Interview Question

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
ragin

New User


Joined: 20 Feb 2005
Posts: 16

PostPosted: Mon May 02, 2005 11:41 pm    Post subject: Interview Question
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
References
PostPosted: Mon May 02, 2005 11:41 pm    Post subject: Re: Interview Question Reply with quote

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3173
Location: Charlotte,NC USA

PostPosted: Tue May 03, 2005 5:31 am    Post subject: Re: Interview Question
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:

http://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:

http://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: 102
Location: Navi Mumbai, India

PostPosted: Mon May 09, 2005 10:26 am    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1