Work with Job (WRKJOB) in AS400

Work with Job (WRKJOB) in AS400
Work with Job (WRKJOB) in AS400, work with job, as400 job, job, wrkjob, job related command , as400, ibmi
Work with Job (WRKJOB) in AS400

Work with Job (WRKJOB)

WRKJOB command allows us to work with or change various job-related information for the user jobs such as Job-status attributes, Job definition attributes, Job run attributes, Spooled file information, Job log information, Call stack information, Job lock information, library list information, Open file information, File overrides information, Commitment control status, communication status, Activation group information, Mutex information, Thread information, Media library attribute information as follows

                            Work with Job (WRKJOB)          
                                                            
Type choices, press Enter.                                  
                                                            
Job name . . . . . . . . . . . . JOB          > QPAD082403  
  User . . . . . . . . . . . . .              >   EASYCLASS 
  Number . . . . . . . . . . . .              >   299619    
Output . . . . . . . . . . . . . OUTPUT         *           
Option . . . . . . . . . . . . . OPTION         *SELECT     

Work with Job screen

                                Work with Job               
                                                            
Job:   QPAD082403     User:   EASYCLASS      Number:   29961
                                                            
Select one of the following:                                
                                                            
     1. Display job status attributes                       
     2. Display job definition attributes                   
     3. Display job run attributes, if active               
     4. Work with spooled files                             
                                                            
    10. Display job log, if active, on job queue, or pending
    11. Display call stack, if active                       
    12. Work with locks, if active                          
    13. Display library list, if active                     
    14. Display open files, if active                       
    15. Display file overrides, if active                   
    16. Display commitment control status, if active        
    17. Display communications status, if active        
    18. Display activation groups, if active            
    19. Work with mutexes, if active                    
    20. Work with threads, if active                    
    21. Work with media library attributes, if active   
    22. Display environment variables, if active        
                                                        
    30. All of the above                                
                                                        
    40. Change job                                      
    41. End job                                         
    42. Hold job                                        
    43. Release job                                            
                                                               
    45. Work with Java Virtual Machine, if active              
                                                               
                                                               
                                                               
Selection or command                                           
===> ________________________________________________________
_____________________________________________________________

Print Job Information

This command will print the Job information for the Job to the Job's output queue.

WRKJOB JOB(299619/EASYCLASS/QPAD082403) OUTPUT(*PRINT)

Either do WRKJOB and option 4 for session spool file/WRKJOB JOB(299619/EASYCLASS/QPAD082403) and option 4 or WRKSPLF and SHIFT+F6 to see the printed information using Work with Job Spooled Files information or Work with All Spooled Files screen.

                         Work with Job Spooled Files                        
                                                                            
Job:   QPAD082403     User:   EASYCLASS      Number:   299619               
                                                                            
Type options, press Enter.                                                  
  1=Send   2=Change   3=Hold   4=Delete   5=Display   6=Release   7=Messages
  8=Attributes        9=Work with printing status                           
                                                                            
                 Device or                       Total   Current            
Opt  File        Queue       User Data   Status  Pages     Page   Copies    
 _   QPDSPJOB    EASYCLASS                RDY        7                1     

Take option 5 to see the printed spool file information.

Work with current job spooled output or all output

Use the following command

WRKJOB   OPTION(*SPLF)
or
WRKJOB   OPTION(*ALL)

You can specify specific option values to work with the specific attributes of a job.

Possible values of OPTION parameter are

                  Specify Value for Parameter OPTION     
                                                         
Type choice, press Enter.                                
                                                         
                                                         
Option . . . . . . . . . . . . . > *LIBL                 
                                                         
  *SELECT                              *ACTGRP           
  *STSA                                *MUTEX            
  *DFNA                                *THREAD           
  *RUNA                                *MLBA             
  *SPLF                                *ENVVAR           
  *JOBLOG                              *ALL              
  *PGMSTK                                                
  *JOBLCK                                                
  *LIBL                                                  
  *OPNF                                                  
  *FILOVR                                                
  *CMTCTL                                                
  *CMNSTS                                                

Related Post

Post a Comment

© AS400 and SQL Tricks. All rights reserved. Developed by Jago Desain