MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to cancel a job!
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
jacky_ying
Beginner


Joined: 25 Jul 2004
Posts: 46
Topics: 20

PostPosted: Wed Oct 18, 2006 9:51 pm    Post subject: how to cancel a job! Reply with quote

Hi,everyone

I submited a job (about IMS DBT unload) and got a strange situation.
At first it runs good ,but then I saw a 'E37' error in job message,but the job still running.So I check in the options SD.DA,I found that SIO column and CPU% column are all zero,unlike the other normal jobs,it is not highlighted,and the Pos column is not 'IN' ,it's 'LP' !
What's more,the job seems like can't be stoped by ordinary commands ,I try 'cancel' or 'purge',but it doesn't work,Could you explain this,plz
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Thu Oct 19, 2006 7:13 am    Post subject: Reply with quote

jacky_ying,

Since it is an IMS Job , it will take time to cancel , but eventually it will cancel out.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jacky_ying
Beginner


Joined: 25 Jul 2004
Posts: 46
Topics: 20

PostPosted: Fri Oct 20, 2006 8:52 am    Post subject: Reply with quote

thank kolusu

Below is what I saw in the SD.DA

Code:
NP   JOBNAME  StepName ProcStep JobID    Owner    C Pos DP Paging    SIO   CPU%
     TSOU001  IKJACCAP TCPSD283 TSU53339 TSOU001    IN  E3   0.00   0.00   3.02
     MYDBTULD STEP020  U        JOB53348 TSOU001  B LO  FF   0.00   0.00   0.00

NP   JOBNAME  Real ASID ASIDX  EXCP-Cnt   CPU-Time SR Status SysName  SPag
     TSOU001  3422  159  009F     2,815      17.61           SYS1        0     
     MYDBTULD 4489  212  00D4   640,974     130.93 DW        SYS1        0
   
NP   JOBNAME  SCPU% Workload SrvClass SP ResGroup Server   Quiesce  ECPU-Time
     TSOU001      7 TSO      TSO       1          NO                    17.61
     MYDBTULD     7 BATCH    BATWMED   1          NO                   130.93

NP   JOBNAME  ECPU% CPUCrit StorCrit RptClass MemLimit   Tran-Act   Tran-Res Spin
     TSOU001   3.02 NO      NO                 16383PB    0:00:00    0:00:00 NO
     MYDBTULD  0.00 NO      NO       RBATCH               0:00:00    0:00:00 NO

RESPONSE=SYS1
HASP890 JOB(MYDBTULD)
HASP890 JOB(MYDBTULD) STATUS=(EXECUTING/SYS1),CLASS=B,
HASP890 PRIORITY=9,SYSAFF=(ANY),HOLD=(NONE),
HASP890 PURGE=YES,CANCEL=YES


From above message,The job MYDBTULD's address spaces positon is 'logically swap out'(POS=LO) and swap reason code is 'detected wait' (SR=DW),but I don't exactly know what it means

I try 'purge' and 'cancel' and wait for several hours,the job still in EXECUTING status. So the dataset allocate by this job is keeping in using status,that's awful,I think there might be a way to stop the job immediately.=^_^=
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Fri Oct 20, 2006 10:27 am    Post subject: Reply with quote

Is your job running as a BMP?
Back to top
View user's profile Send private message
jacky_ying
Beginner


Joined: 25 Jul 2004
Posts: 46
Topics: 20

PostPosted: Fri Oct 20, 2006 10:49 am    Post subject: Reply with quote

it's a IMS DBT unload job(PGM=FABCUR1),not BMP.it doesn't need to connect to IMS control region.
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Fri Oct 20, 2006 10:57 am    Post subject: Reply with quote

OK. then you wouldn't need to cancel it through the IMS control region. Could you canel it by ASID?
Back to top
View user's profile Send private message
jacky_ying
Beginner


Joined: 25 Jul 2004
Posts: 46
Topics: 20

PostPosted: Sat Oct 21, 2006 3:30 am    Post subject: Reply with quote

How to cancel it by ASID?Do you mean /$C JOBnnnnn,A=XXX ???,if so,it doesn't work!
Back to top
View user's profile Send private message
jacky_ying
Beginner


Joined: 25 Jul 2004
Posts: 46
Topics: 20

PostPosted: Sat Oct 21, 2006 6:58 am    Post subject: Reply with quote

Whoa,mea culpa,there is no such things like '/$C JOBnnnnn,A=XXX ???', correct my post :

How to cancel it by ASID?Do you mean /C JOBnnnnn,DUMP,A=asid ???,if so,it doesn't work!
Back to top
View user's profile Send private message
jacky_ying
Beginner


Joined: 25 Jul 2004
Posts: 46
Topics: 20

PostPosted: Sat Oct 21, 2006 9:00 am    Post subject: Reply with quote

I tried SDSF command:C, CD, CDA, P
I tried MVS command:/C JOBnnnn,/C JOBnnnn,DUMP
I tried JES2 command:/$C JOBnnnn,/$C JOBnnnn,DUMP
but the job stuck stubbornly,and some dataset still be hold by the job
Back to top
View user's profile Send private message
vjkumk
Beginner


Joined: 28 Sep 2005
Posts: 98
Topics: 33

PostPosted: Sun Oct 22, 2006 4:55 am    Post subject: Reply with quote

Is it a DJC job?If it is a network dependent job use NC command .



cheers,
VJ
Back to top
View user's profile Send private message
jacky_ying
Beginner


Joined: 25 Jul 2004
Posts: 46
Topics: 20

PostPosted: Mon Oct 23, 2006 7:01 am    Post subject: Reply with quote

no,it's not a network dependent job
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Mon Oct 23, 2006 1:29 pm    Post subject: Reply with quote

I believe that you need to use the hex. value of the ASID.
Back to top
View user's profile Send private message
jacky_ying
Beginner


Joined: 25 Jul 2004
Posts: 46
Topics: 20

PostPosted: Tue Oct 24, 2006 5:02 am    Post subject: Reply with quote

I knew that,In this case ASID=0D4.

oops,the job has been stuck for three days,and there's nothing I can do about it
Back to top
View user's profile Send private message
nevilh
Beginner


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Tue Oct 24, 2006 6:57 am    Post subject: Reply with quote

Have you tried the following command.

Force jobname,ARM
Back to top
View user's profile Send private message
vjkumk
Beginner


Joined: 28 Sep 2005
Posts: 98
Topics: 33

PostPosted: Wed Oct 25, 2006 4:27 am    Post subject: Reply with quote

FYI...
here are list of the commands that can be given in EJES.
[code:1:650a38fccf]
+---------------------------------------------------+
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group