ragin New User Joined: 20 Feb 2005 Posts: 16
How can u cancel a job in JCL while execution?
superk Moderator Team Head Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
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:
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:
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.
ankyhunk Moderator Joined: 05 May 2005 Posts: 98 Location: Navi Mumbai, India
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.
All times are GMT + 6 Hours