Ü   Jobs

·         A job is a piece of work that is done on AS400.

 

Ü  Types of job:

The job can be divided into two parts:

System Jobs

ü  Spooling job è System provided print programs and it runs similar to batch job and generates spool file for a job

User Jobs

ü  Interactive job è It requires user to be always interactive/signed in till the time job runs. It doesn’t wait in line for system resources.

ü  Batch job è Even the user who submitted the job signs-off, the job runs. It doesn’t require the user to be signed in into the system.

ü  Communication job è If one system is making communication with another system then the communication job starts. e.g. FTP, SNDNETF command is used for communication.

ü  Auto-start job è The jobs can be scheduled to get itself started at a specified time.

Ü   Job related Information


Ü  Job Name

Job name is composed of Job Number/User/Job Name.

WRKJOB JOB(677342/AJAISWAL/SA)

                             Work with Job (WRKJOB)                             
                                                                                
 Type choices, press Enter.                                                     
                                                                                
 Job name . . . . . . . . . . . . > SA            Name, *                       
   User . . . . . . . . . . . . . >   AJAISWAL    Name                          
   Number . . . . . . . . . . . . >   677342      000000-999999                 
 Output . . . . . . . . . . . . .   *             *, *PRINT                     
 Option . . . . . . . . . . . . .   *SELECT       *SELECT, *STSA, *DFNA...      
                                                                                
                                                                                

                                                                                
                                                                         Bottom 
 F3=Exit   F4=Prompt   F5=Refresh   F10=Additional parameters   F12=Cancel      
 F13=How to use this display        F24=More keys                               



 

Ü  Job Description

 

         Contains a specific set of job related attributes. Attributes determine how each job is run on the system.

ü  Values in the Job Description can be overridden during the run of commands SMBJOB

         Can specify:

ü  Initial library list

ü  Job Queue

ü  Job Priority:  of jobs using this job description.

ü  Output Queue

 

                            Display Job Description                             
                                                             System:   SYSAI005 
 Job description:   QDFTJOBD       Library:   QGPL                              
                                                                                
 User profile . . . . . . . . . . . . . . . . . . :   *RQD                      
 CL syntax check  . . . . . . . . . . . . . . . . :   *NOCHK                    
 Hold on job queue  . . . . . . . . . . . . . . . :   *NO                       
 End severity . . . . . . . . . . . . . . . . . . :   30                        
 Job date . . . . . . . . . . . . . . . . . . . . :   *SYSVAL                   
 Job switches . . . . . . . . . . . . . . . . . . :   00000000                  
 Inquiry message reply  . . . . . . . . . . . . . :   *RQD                      
 Job priority (on job queue)  . . . . . . . . . . :   5                         
 Job queue  . . . . . . . . . . . . . . . . . . . :   QBATCH                    
   Library  . . . . . . . . . . . . . . . . . . . :     QGPL                    
 Output priority (on output queue)  . . . . . . . :   5                         
 Printer device . . . . . . . . . . . . . . . . . :   *USRPRF                   
 Output queue . . . . . . . . . . . . . . . . . . :   *USRPRF                   
   Library  . . . . . . . . . . . . . . . . . . . :             
   Level  . . . . . . . . . . . . . . . . . . . . :   4                         
   Severity . . . . . . . . . . . . . . . . . . . :   0                         
   Text . . . . . . . . . . . . . . . . . . . . . :   *NOLIST                   
 Log CL program commands  . . . . . . . . . . . . :   *NO                       
 Job log output . . . . . . . . . . . . . . . . . :   *SYSVAL                   
Job message queue maximum size . . . . . . . . . :   *SYSVAL                   
 Job message queue full action  . . . . . . . . . :   *SYSVAL                   
 Allow multiple threads . . . . . . . . . . . . . :   *NO                       
 Initial ASP group  . . . . . . . . . . . . . . . :   *NONE                     
 Spooled file action  . . . . . . . . . . . . . . :   *SYSVAL                   
 Text . . . . . . . . . . . . . . . . . . . . . . :   Default job description   
                                                                                

                                                                                
                                                                         Bottom 
 Press Enter to continue.                                                       
                                                                                
 F3=Exit   F12=Cancel                                                           

                                                                                

 

Ü  Job Queue

Whenever a batch job is submitted it goes to the place so called Job Queue where it waits for its turn

to get processed based on its priority.

 

Ü  Output Queue

Output queue contains spool files waiting for its turn to get printed.

WRKSPLF

                          Work with All Spooled Files                           
                                                                                
 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     Cur       
 Opt  File        User        Queue       User Data   Sts   Pages    Page  Copy 
      MAP299O     IROBO        IROBO        MAP299R     RDY       1             1 
      QPRDRPT     IROBO        IROBO                    RDY       3             1 
      ACC_RPGLE   IROBO        IROBO                    RDY      14             1 

                                                                        More... 


 Parameters for options 1, 2, 3 or command 
  ===>                                                                           
 F3=Exit   F10=View 4   F11=View 2   F12=Cancel   F22=Printers   F24=More keys


Take Option-5

 

                                                        Display Spooled File                                                        
 File  . . . . . :   ACC_RPGLE                                                                            Page/Line   3/26          
 Control . . . . .                                                                                        Columns     1 - 130       
 Find  . . . . . .                                                                                                                  
 *...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....0....+....1....+....2....+....3 
     30=IHEADER                                                                                                             1000001 
         *--------------------------------------------------------------------------------------------*                     1       
         * RPG record format  . . . . :  HEADER                                                       *                     1       
         * External format  . . . . . :  HEADER : AMIT/ACC_DSPF                                       *                     1       
         *--------------------------------------------------------------------------------------------*                     1       
     31=I                             N    1    1  *IN03                           EXIT                                     1000002 
     32=I                             N    2    2  *IN12                           PREVIOUS                                 1000003 
     33=I                             S    3    5 0S_ORG                                                                    1000004 
     34=I                             A    6   17  S_ACC                                                                    1000005 
     35=I                             A   18   20  S_CCY                                                                    1000006 
     36=I                             A   21   32  S_PARTY                                                                  1000007 
     37=IFOOTER                                                                                                             2000001 
         *--------------------------------------------------------------------------------------------*                     2       
         * RPG record format  . . . . :  FOOTER                                                       *                     2       
         * External format  . . . . . :  FOOTER : AMIT/ACC_DSPF                                       *                     2       
         *--------------------------------------------------------------------------------------------*                     2       
     38=I                             N    1    1  *IN03                           EXIT                                     2000002 
     39=I                             N    2    2  *IN12                           PREVIOUS                                 2000003 
     40=IREC1                                                                                                               3000001 
                                                                                                                            More... 
 F3=Exit   F12=Cancel   F19=Left   F20=Right   F24=More keys                                                                        

 


                               Submit Job (SBMJOB)                              
                                                                                
 Type choices, press Enter.                                                     
                                                                                
 Command to run . . . . . . . . .                                               
                                                                                
                                                                                
Job name . . . . . . . . . . . .   *JOBD         Name, *JOBD                   
 Job description  . . . . . . . .   *USRPRF       Name, *USRPRF                 
   Library  . . . . . . . . . . .                 Name, *LIBL, *CURLIB          
 Job queue  . . . . . . . . . . .   *JOBD         Name, *JOBD                   
   Library  . . . . . . . . . . .                 Name, *LIBL, *CURLIB          
 Job priority (on JOBQ) . . . . .   *JOBD         1-9, *JOBD                    
 Output priority (on OUTQ)  . . .   *JOBD         1-9, *JOBD                    
 Print device . . . . . . . . . .   *CURRENT      Name, *CURRENT, *USRPRF...    
Output queue . . . . . . . . . .   *CURRENT      Name, *CURRENT, *USRPRF...    
   Library  . . . . . . . . . . .                 Name, *LIBL, *CURLIB          

                                                                                
                                                                         Bottom 
 F3=Exit   F4=Prompt   F5=Refresh   F10=Additional parameters   F12=Cancel      
 F13=How to use this display        F24=More keys                               


 



Ü   Flow of a Batch Job

ü  SBMJOB command is run to start the batch job.

ü  Goes to Job Queue and waits for its turn with status JOBQ

ü  Become ACTIVE when its turns come.

ü  Goes to Output Queue (OUTQ) after getting finished.

ü  Moves to Print Writer

ü  Prints out on Printer

 

Ü   Job Log

ü  Contains information related to jobs.

ü  Commands in the job

ü  Commands in a CL program

ü  Messages

 

Ü   Output Queue

ü  Created output is put into an Outq as a spool file where it then can be directed to a printer.

 

 

MAIN                           i5/OS Main Menu                                 
                                                             System:   PJIAKID09 
 Select one of the following:                                                   
                                                                                
      1. User tasks                                                             
      2. Office tasks                                                           
      3. General system tasks                                                   
      4. Files, libraries, and folders                                          
      5. Programming                                                            
      6. Communications                                                         
      7. Define or change the system                                            
      8. Problem handling                                                       
      9. Display a menu                                                         
     10. Information Assistant options                                          
     11. iSeries Access tasks                                                   
                                                                                
     90. Sign off                                                               
                                                                                
 Selection or command                                                           
 ===> 3                                                                         
                                                                                
 F3=Exit   F4=Prompt   F9=Retrieve   F12=Cancel   F13=Information Assistant     
 F23=Set initial menu                                                           


 

                              Work with Subsystems                              
                                                             System:   PJIAKID09 
 Type options, press Enter.                                                     
   4=End subsystem   5=Display subsystem description                            
   8=Work with subsystem jobs                                                   
                                                                                
                       Total     -----------Subsystem Pools------------         
 Opt  Subsystem     Storage (M)   1   2   3   4   5   6   7   8   9  10         
      QBATCH                .00   2                                             
      QCMN                  .00   2                                             
      QCTL                  .00   2                                             
      QHTTPSVR              .00   2                                             
      QINTER                .00   2   4                                         
      QSERVER               .00   2                                             
      QSNADS                .00   2                                             
      QSPL                  .00   2   3                                         
      QSYSWRK               .00   2                                             
      QUSRWRK               .00   2                                             
                                                                                
                                                                                
                                                                                
                                                                         Bottom 
 Parameters or command                                                          
 ===>                                                                           
 F3=Exit   F5=Refresh   F11=Display system data   F12=Cancel                    
 F14=Work with system status                                                    

                                                                                

 

SYSTEM                       General System Tasks                              
                                                             System:   PJIAKID09 
 Select one of the following:                                                   
                                                                                
      1. Jobs                                                                   
      2. Status                                                                 
      3. Display system operator messages                                       
      4. Messages                                                               
      5. Files, libraries, and folders                                          
      6. Save                                                                   
      7. Restore                                                                
      8. Device operations                                                      
      9. Communications                                                         
     10. Security                                                               
                                                                                
     60. More system task options                                               
                                                                                
                                                                                
 Selection or command                                                           
 ===>                                                                           
                                                                                
 F3=Exit   F4=Prompt   F9=Retrieve   F12=Cancel   F13=Information Assistant     
 F16=System Main menu                                                           


 

 

JOB                                  Jobs                                      
                                                             System:   PJIAKID09 
 Select one of the following:                                                   
                                                                                
      1. Work with jobs                                                         
      2. Work with all active job statistics                                    
      3. Work with spooled output files                                         
      4. Work with printers                                                     
      5. Work with job queues                                                   
      6. Work with active subsystems                                            
      7. Submit a job                                                           
                                                                                
     20. Control job environment                                                
                                                                                
     60. More job options                                                       
                                                                                
     70. Related commands                                                       
                                                                                
 Selection or command                                                           
 ===>                                                                           
                                                                                
 F3=Exit   F4=Prompt   F9=Retrieve   F12=Cancel   F13=Information Assistant     
 F16=System Main menu                                                           
 (C) COPYRIGHT IBM CORP. 1980, 2005.                                            

 



 

WRKACTJOB

It will show all the active jobs in the system.                                      

                             Work with Active Jobs                     SYSAI005 
                                                             04/01/13  07:08:54 
 CPU %:      .0     Elapsed time:   00:00:00     Active jobs:   221             
                                                                                
 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             
      QCMN           QSYS        SBS      .0                   DEQW             
      QCTL           QSYS        SBS      .0                   DEQW             
        QSYSSCD      QPGMR       BCH      .0  PGM-QEZSCNEP     EVTW       
      QHTTPSVR       QSYS        SBS      .0                   DEQW             
        ADMIN        QLWISVR     BCI      .0  JVM-com.ibm.lw   THDW             
        ADMIN        QTMHHTTP    BCH      .0  PGM-QZHBMAIN     SIGW             
        ADMIN        QTMHHTTP    BCI      .0  PGM-QZSRLOG      SIGW  
      QINTER         QSYS        SBS      .0                   DEQW   
        QPADEV0006   TEMPSEC     INT      .0  MNU-MAIN         DSPW             
        SA           AJAISWAL    INT      .0  CMD-WRKACTJOB    RUN              
      QSERVER        QSYS        SBS      .0                   DEQW             
        QPWFSERVSD   QUSER       BCH      .0                   SELW             
        QPWFSERVSO   QSECOFR     PJ       .0                   TIMW 
      QSPL           QSYS        SBS      .0                   DEQW             
        NEWPRT       QSPLJOB     WTR      .0                   EVTW 
        QIBMHELP     QIBMHELP    BCH      .0  PGM-STRECLIPSE   TIMW             
                                                                        More... 
 Parameters or command                                                          
 ===>                                                                           
 F3=Exit   F5=Refresh       F7=Find      F10=Restart statistics                 
 F11=Display elapsed data   F12=Cancel   F23=More options   F24=More keys       

 

 

                             Work with Active Jobs                     SYSAI005 
                                                             04/01/13  07:08:54 
 CPU %:      .0     Elapsed time:   00:00:00     Active jobs:   221             
                                                                                
 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 ...                                
                                               --------Elapsed---------         
 Opt  Subsystem/Job  Type  Pool  Pty      CPU  Int    Rsp  AuxIO  CPU %   
      QBATCH         SBS     2    0        .0                  0     .0         
      QCMN           SBS     2    0        .0                  0     .0         
      QCTL           SBS     2    0        .0                  0     .0         
        QSYSSCD      BCH     2   10        .0                  0     .0         
      QHTTPSVR       SBS     2    0        .0                  0     .0         
        ADMIN        BCI     2   25      77.6                  0     .0         
        ADMIN        BCH     2   25        .7                  0     .0         
        ADMIN        BCI     2   25      27.0                  0     .0         
      QINTER         SBS     2    0       1.3                  0     .0         
        QPADEV000D   INT     3   20        .2    0     .0      0     .0         
        QPADEV0006   INT     3   20        .0    0     .0      0     .0         
        QPADEV0007   INT     3   20       1.3    0     .0      0     .0         
        SA           INT     3   20        .0    0     .0      0     .0         
      QSERVER        SBS     2    0        .0                  0     .0         
        QPWFSERVSD   BCH     2   20        .0                  0     .0         
        QPWFSERVSO   PJ      2   20        .0                  0     .0         
      QSPL           SBS     2    0        .0                  0     .0         
        NEWPRT       WTR     4   50        .0                  0     .0         
                                                                        More... 
 Parameters or command                                                          
 ===>                                                                           
 F3=Exit   F5=Refresh      F7=Find      F10=Restart statistics                  
 F11=Display thread data   F12=Cancel   F23=More options   F24=More keys        



                                       

WRKUSRJOB

 It will show all the jobs for a particular user.                                      

                              Work with User Jobs                      PJIAKID09 
                                                             01/04/13  04:21:31 
 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                                    
                                                                                
                                                                                
 Opt  Job         User        Type     -----Status-----  Function               
      QPADEV000P  IROBO        INTER    OUTQ                                     
      QPADEV000P  IROBO        INTER    ACTIVE            CMD-WRKUSRJOB          
      SAMPLE1     IROBO        INTER    OUTQ                                     
      SAMPLE1     IROBO        INTER    OUTQ                                     
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                         Bottom 
 Parameters or command                                                          
 ===>                                                                           
 F3=Exit      F4=Prompt   F5=Refresh   F9=Retrieve   F11=Display schedule data  
 F12=Cancel   F17=Top     F18=Bottom   F21=Select assistance level              


WRKSBMJOB

It will show all the submitted jobs.                                      

                                Work with Submitted Jobs                   PJIAKID09 
                                                             01/04/13  04:20:54 
 Submitted from . . . . . . . . :   *USER                                       
                                                                                
 Type options, press Enter.                                                     
   2=Change   3=Hold   4=End   5=Work with   6=Release   7=Display message      
   8=Work with spooled files                                                    
                                                                                
                                                                                
 Opt  Job         User        Type     -----Status-----  Function               
      AUTENTA2    FUTURE      BATCH    OUTQ                                     
      AUTENTA2    FUTURE      BATCH    OUTQ                                     
      AUTENTA2    FUTURE      BATCH    OUTQ                                     
      AUTENTA2    FUTURE      BATCH    OUTQ                                     
                                                                                
                                                                                
                                                                                
                                                                                
                                                                         Bottom 
 Parameters or command                                                          
 ===>                                                                           
 F3=Exit      F4=Prompt   F5=Refresh   F9=Retrieve   F11=Display schedule data  
 F12=Cancel   F17=Top     F18=Bottom                                            

 



HLDJOB è Equivalent to Option-3 Above

By using this command we can hold the processing of a job by our system. We can release the job by using:

·         RLSJOB(Release Job) command equivalent to option-6 above

·         ENDJOB(End Job) command

·         ENDSBS(End subsystem) subsystem having this active job. If there are any other job running under this system, that will also end.

·         CLRJOBQ(Clear Job-queue) command, but if there are any other job also in the queue that will also end.

RLSJOB  è Equivalent to Option-6 Above

By using this command, we release the job that was held when the job was active. By doing this, we make the job active again. The job should be released by the same person, which has put it on hold or the users having the *JOBCTL authority.

 

ENDJOB è Equivalent to Option-4 Above

This command is used to end the active job in the system.

We can end the job immediately or we can assign some time delay to the job before it ends.

 

ENDJOB   JOB(677342/AJAISWAL/SA)  OPTION(*IMMED)  SPLFILE(*YES)

 

ENDJOB   JOB(677342/AJAISWAL/SA)  OPTION(*CNTRLD) SPLFILE(*YES) DELAY(20)

 

 

DSPJOBLOG è  F10 è SHIFT-F6

 

                              Display All Messages                              
                                                             System:   SYSAI005 
 Job . . :   SA            User . . :   AJAISWAL      Number . . . :   677342   
                                                                                
                                                                                
     Job 677342/AJAISWAL/SA started on 04/01/13 at 07:08:28 in subsystem QINTER 
       in QSYS. Job entered system on 04/01/13 at 07:08:28.                     
   > /*      */                                                                 
 3 > wrkmbrpdm                                                                  
 4 > wrkactjob                                                                  
 4 > SBMJOB                                                                     
     Command prompting ended when user pressed F3.                              
 4 > WRKSBSD SBSD(QCTL)                                                         
 4 > wrkusrjob                                                                  
 4>> DSPJOBLOG                                                                  
                                                                         Bottom 
 Press Enter to continue.                                                       
                                                                                
 F3=Exit   F5=Refresh   F12=Cancel   F17=Top   F18=Bottom    

 

DSPJOBD (Display Job Description)

ü  The Display Job Description (DSPJOBD) command displays the contents of the specified job description.

ü  OUTPUT parameter can have * or *PRINT.

 

SIGNOFF (Sign Off)

ü  The SIGNOFF command ends all the group jobs running on the work station. In other words, it end the session if logged in user at a workstation.

ü  LOG parameter – Specifies whether the job log for this interactive job is deleted or is included in the job's spooled output for printing.

ü  *NOLIST: The information in the job log is deleted when the job ends.

ü  *LIST: The job log is spooled for printing along with the rest of the job's spooled output.

 

Ü Job status

 

ACTIVE è The job has been started.

OUTQ     è The job has completed running and has spooled file on an O/P queue.

DSC        è The job has disconnected.

JOBQ      è The job has been submitted and has gone to JOBQ.

SYSREQ è The job has been suspended by the system request or transfer to secondary job.

FIN          è The job is finished.

END        è The job is ending as a result of ENDJOB or ENDSBS either with immediate option or with                                     the controlled option which ends the jobs when time expires.

EOJ         è The job is ending other than the reason like ENDJOB or ENDSBS. Reason may be SIGNOFF, ENDGRPJOB or an exception that is not handled.

MSGW   è This status comes in batch job. System sends an error and waits for user’s reply. It keeps on waiting as it is not interactive job but it is a batch job.











User Comments:



Subscribe

.  


Copyright © www.go4as400.com, 2013-2023. Copyright notice   Terms of services   Privacy policy