If  a  hard  error  is  detected  at  the  reader,  DMSBTP   sends  an  
"intervention required" message to the system console and branches to
its abnormal terminal routine and waits for an interruption for the
reader by issuing theWA1TD   macro.  When   a  /*  card  is  read  (with  the  BATMOVE   flag  off)  or  when  the  
end-of-file condition occurs at the reader,D"SBTP   branches  to  the  
cleanup routine which sends the source userid a message stating that the
job endednoraally   or  abnormally  (if  cleaning  up  after  an  abnormal  
termination) and turns off theBATUSEX   flag  (for  DMSCPF)   to  signal  the  
end of the user job.CONWAIT   (DMSCWT)   is  called  via  SVC   to  allow  any  
consoleI/O   to  finish,  the  spooling  devices  are  closed  (including  the   console),  and  all  disks  that  were  made  available  by  issuing  the  CP   LINK   command  are  returned  by  issuing  the  CP   DETACH  command.  DMSBTP   then  relinquishes  central  by  issuing  the  CP   1PL   command  with  
thePARM   BATCH  option  which  loads  a  new  CMS   nucleus  and  the  next  job  is  
started whenCMS   attempts  its  first  read  to  the  console.  
A branch ismade   to  the  CMSBTP   routine  when  DMSBTP   itself  detects  an  I/O   error   at   the  the   0[   Luutille   is  
to receive central not onlyfrom   DMSABN   when  there  is  an  abnoraal   termination  during  the  user  job,  but  also  frem   DMSITE,   DMSPIO,   and  DMSCIO   when  a  user  job  exceeds  one  of  the  batch  job  limits  (BATXL1M   flag  
is on). This routine, entry pointDMSBTPAB,   calls  the  CP   DUMP   routine  
viaSVC   and  then  branches  to  the  cleanup  routine  which  reloads  CMS   Batch  
and treat theremainder   of  the  current  job  as  a  new  job  with  no  /JOB   card.  This  has  the  effect  of  flushing  the  remainder  of  the  job.  This  
technique is used because batch must its  reader  spooled  
"continuous." Entry pointDMSBTPAB   is  also  used  by  the  CMS   commands  
that are disabled inCMS   batch.  In  this  case  (EATDCMS   flag  set  on),  an  
error message is displayed and control returned toCMS.   When   a  CP   coamand   is  called  via  an  SVC   in  DMSBTP,   the  CMS   CP   module   (DMSCPF)   is  actually  called  to  issue  the  DIAGNOSE   instruction  to  invoke  
theCP   coa.and.   DMSBTP   calls  DMSCPF   by  issuing  a  direct  SVC   202  or  by  
issuing the LINEDIT macro with theCPCOMM   option  that  generates  an  SiC   203.  Several   CMS   modules  check  whether  CMS   batch  is  running,  and,  if  so,  perform   functions  associated  with  batch  operation.  These  are  shown  in  
the following list:DMSINI   DMSINS   DMSLDR   DMSCRD   DMSITE   DMSPIO   DMSCIO   DMSABN   tMSERR   DMSMVE   Function  Performed  for  CMS   Batch  Passes-batch-parameters-to   DMS1NS.   Uses   batch  1PL   parameters  to  reload  CMS   Batch.  
LoadsDMSBTP   into  free  storage.  
Passes control toDMSBTP   to  read  from   the  reader  rather  than  
from the console.
Accounts for virtualtime   used  by  batch  job  --ABEND  if  over  
limit.
Accounts for number of lines printedby   batch  job  ABEND  if  
overlimit.   Accounts  for  number  of  cards  punched  by   batch  job  ABEND  if  
over li.it.
Passes control to batch ABEND routine inDMSBTP.   Passes   control  to  batch  ABEND  routine  instead  of  entering  
disabled wait state.
Turns the flag  on  and  off  --   allows  batch  to  treat  
moved blanks as data.
2-152IBM   VM/370   System   Logic  and  Program  Determination--Volume  2  
"intervention required" message to the system console and branches to
its abnormal terminal routine and waits for an interruption for the
reader by issuing the
end-of-file condition occurs at the reader,
cleanup routine which sends the source userid a message stating that the
job ended
termination) and turns off the
end of the user job.
console
the
started when
A branch is
to receive central not only
is on). This routine, entry point
via
and treat the
technique is used because batch must
"continuous." Entry point
that are disabled in
error message is displayed and control returned to
the
issuing the LINEDIT macro with the
the following list:
Loads
Passes control to
from the console.
Accounts for virtual
limit.
Accounts for number of lines printed
over
over li.it.
Passes control to batch ABEND routine in
disabled wait state.
Turns the
moved blanks as data.
2-152
            
            




















































































































































































































































































