Information Systems:Batch Jobs not Running

From uniWIKI
Revision as of 13:01, 16 October 2015 by Sheilav (talk | contribs) (Created page with "=Batch Jobs not Running= Users may report that ‘invoices not printing’, ‘PO’s not printing’, or something else not printing. This could be a problem with a printer...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Batch Jobs not Running

Users may report that ‘invoices not printing’, ‘PO’s not printing’, or something else not printing. This could be a problem with a printer, or it could be that the jobs that produce the printouts aren’t running.

Key in WRKACTJOB SBS(QBATCH) and press enter to see which batch jobs are running.

                            Work with Active Jobs                     BART     
                                                            10/14/14  09:28:07 
CPU %:      .0     Elapsed time:   00:00:00     Active jobs:   546             
                                                                               
Type options, press Enter.                                                     
  2=Change   3=Hold   4=End   5=Work with   6=Release   7=Display message      
  8=Work with spooled files   13=Disconnect ...                                
                    Current                                                    
Opt  Subsystem/Job  User        Type  CPU %  Function        Status            
     QBATCH         QSYS        SBS      .0                   DEQW             
       RUNQRY       SHEILAV     BCH      .0  PGM-ASGC900      RUN        
       PUR_ORDER    SCOTTZ      BCH      .0  PGM-ASGC900      RUN              
       UPD_UD_SST   SHEILAV     BCH    25.1  PGM-ASGC900      RUN              
                                                                               
Parameters or command                                                          
===>   _______________________________________                                                                         
F3=Exit   F5=Refresh       F7=Find      F10=Restart statistics                 
F11=Display elapsed data   F12=Cancel   F23=More options   F24=More keys       

If one (or two) of these jobs have a status of ‘MSGW’ they are waiting for a response, and will sit there, holding up other jobs until they are answered. If they are running, check to see if they are long running jobs – which may or may not indicate a problem. Use option 5 ‘Work with’, then 1 ‘Display job status attributes’.

                        Display Job Status Attributes                          
                                                            System:   BART     
Job:   EXODUS         User:   CATPULTADM     Number:   903849                  
                                                                               
Status of job . . . . . . . . . . . . . . . :   ACTIVE                         
Current user profile  . . . . . . . . . . . :   CATPULTADM                     
Job user identity . . . . . . . . . . . . . :   CATPULTADM                     
  Set by  . . . . . . . . . . . . . . . . . :     *DEFAULT                     
Entered system:                                                                
  Date  . . . . . . . . . . . . . . . . . . :   10/12/14                       
  Time  . . . . . . . . . . . . . . . . . . :   08:59:22                       
Started:                                                                       
  Date  . . . . . . . . . . . . . . . . . . :   10/12/14                       
  Time  . . . . . . . . . . . . . . . . . . :   08:59:22                       
Subsystem . . . . . . . . . . . . . . . . . :   QCMN                           
  Subsystem pool ID . . . . . . . . . . . . :     1                            
Type of job . . . . . . . . . . . . . . . . :   CMNEVK                         
Special environment . . . . . . . . . . . . :   *NONE                          
Program return code . . . . . . . . . . . . :   0                              
                                                                       More... 
Press Enter to continue.                                                       
                                                                               
F3=Exit   F5=Refresh   F12=Cancel   F16=Job menu                               
  

Look at the ‘started’ date and time; not ‘entered system’ (if they are different, this job sat in the job queue waiting its turn to run).

Then look to see what jobs are waiting to run; WRKJOBQ QBATCH* and press enter.

                           Work with All Job Queues                            
                                                                               
Type options, press Enter.                                                     
  2=Change   3=Hold   4=Delete       5=Work with     6=Release                 
  8=Work with job schedule entries   9=Description   14=Clear                  
                                                                               
Opt     Queue          Library            Jobs     Subsystem      Status       
__      QBATCH         QGPL                  0     QBATCH          RLS         
__      QBATCH1        QGPL                  0     QBATCH          RLS         
__      QBATCH2        QGPL                  0     QBATCH          RLS         
__      QBATCH3        QGPL                  0     QBATCH          RLS         
                                                                               
Command                                                                        
===>                                                                           
F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F24=More keys                  

QBATCH – User jobs run from here. Two jobs can run at a time.

QBATCH1 – InfoManager jobs run from here.

QBATCH2 – Overnight jobs run from here.

QBATCH3 – Some long running user jobs have been moved to here.

QBATCH1, 2, and 3 have been created so that long running jobs will not hold up user production. If you discover another long running user job that should be moved to QBATCH3, see the section ‘Change the Job Queue for an ASW Program’.

If there are two long programs running, and jobs are piling up in job queue QBATCH, they can be manually moved to a different queue to run immediately. On the ‘Work with All Job Queues’ screen, key in option 5 ‘Work with’ for QBATCH, and press enter. (The following shot is just an illustration – it’s not QBATCH, as there are no jobs currently waiting.)

                             Work with Job Queue                               
                                                                               
Queue:   EMAIMPPRD      Library:   UNIPHARMIT     Status:   RLS/SBS            
                                                                               
Type options, press Enter.                                                     
  2=Change   3=Hold   4=End   5=Work with   6=Release                          
                                                                               
Opt     Job            User           Number     Priority     Status           
 _      EMAIOPPRD      EODJOB         897910        5          RLS             
 _      EMAIOPPRD      QPGMR          903179        5          RLS             
 _      EMAIOPPRD      QPGMR          903223        5          RLS             
 _      EMAIOPPRD      EODJOB         903464        5          RLS             
 _      EMAIOPPRD      EODJOB         903472        5          RLS             
 _      EMAIOPPRD      EODJOB         906865        5          RLS             
 _      EMAIOPPRD      EODJOB         906882        5          RLS             
 _      EMAIOPPRD      EODJOB         912257        5          RLS             
 _      EMAIOPPRD      EODJOB         912274        5          RLS             
                                                                               
Parameters for options 2, 3 or command                                         
===> _______________________________________________                                                                          
F3=Exit   F4=Prompt   F6=Submit job   F12=Cancel   F21=Subsystem               
F22=Work with job schedule entries    F24=More keys                            
                                                                               

The job name will give you an idea of what the job does. Run purchase orders and invoices first, as there are users waiting for them (they probably reported this problem). Try not to start any more long running programs. To change the job queue (and start the program running) key option 2 ‘Change’ in front of the job, then press enter and F10.

                              Change Job (CHGJOB)                              
                                                                               
Type choices, press Enter.                                                     
                                                                               
Job name . . . . . . . . . . . . > EMAIOPPRD     Name, *                       
  User . . . . . . . . . . . . . >   EODJOB      Name                          
  Number . . . . . . . . . . . . >   897910      000000-999999                 
Job priority (on JOBQ) . . . . .   5             0-9, *SAME                    
Output priority (on OUTQ)  . . .   5             1-9, *SAME                    
Print device . . . . . . . . . .   PRT01         Name, *SAME, *USRPRF...       
Output queue . . . . . . . . . .   QPRINT        Name, *SAME, *USRPRF, *DEV... 
  Library  . . . . . . . . . . .     QGPL        Name, *LIBL, *CURLIB          
Run priority . . . . . . . . . .   *SAME         1-99, *SAME                   
                                                                               
                           Additional Parameters                               
                                                                               
Job queue  . . . . . . . . . . .   EMAIMPPRD     Name, *SAME                   
  Library  . . . . . . . . . . .     UNIPHARMIT  Name, *LIBL, *CURLIB          
Print text . . . . . . . . . . .   *BLANK__________________________                                     
                                                                               
                                                                       More... 
F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display    
F24=More keys                                                                  
                                                                               

Change the ‘Job queue’ to QS36EVOKE, clear the ‘Library’, then press enter. QS36EVOKE is a job queue that will release an unlimited number of jobs to run, so keep a watch on the QBATCH subsystem (in work with active jobs) to make sure that one job finishes before you release another.