Chapter 12 1. Working With Jobs - Part 1 2. Job Definition * Jobs are the basic work unit of the AS/400. 3. Supporting jobs are three related objects * Classes * Queues * Descriptions 4. Job Types * Interactive * Batch * Communication * System 5. Job Descriptions * Run-time attributes * Job description name * Job Date * Format User ID * Job queue * Job queue priority * Job queue status * Output queue * Print device * Output queue priority * Routing data * Accounting code * Message logging level 6. Create Job Description, SEE TABLE( ) 7. Create Job Description - Cont., SEE TABLE( ) 7. Create Job Description (CRTJOBD) -------------------------------------------------------------------------------------- Accounting code . . . . . . . . *USRPRF Routing data . . . . . . . . . . QCMDI Request data or command . . . . *NONE CL syntax check . . . . . . . . *NOCHK 0-99, *NOCHK Initial library list . . . . . . *SYSVAL Name, *SYSVAL, *NONE + for more values End severity . . . . . . . . . . 30 0-99 Message logging: Level . . . . . . . . . . . . 4 0-4 Severity . . . . . . . . . . . 0 0-99 Text . . . . . . . . . . . . . *NOLIST *NOLIST, *MSG, *SECLVL Log CL program commands . . . . *NO *NO, *YES More... F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys ----------------------------------------------------------------------------------------- 8. Create Job Description - Cont., SEE TABLE( ) 9. Work With Job Descriptions, SEE TABLE( ) 10. Job Names and Numbers * Interactive jobs are named after the work station from which they are started. * Batch jobs can be: * Named by the person submitting them, or * Obtained from the job description 11. Job Classes * A job class provides run-time attributes. * Run-time attributes consist of three primary elements: * Run-time priority. * Time slice in milliseconds. * Eligible for purge. 12. Create Class Command, SEE TABLE( ) 13. Job Queues - Batch Only * Holding place for jobs. * Job queue ordered by priority. * Jobs with same priority execute first-in-first-out (FIFO). 14. Create Job Queue (CRTJOBQ), SEE TABLE( ) 15. Submitting Jobs - Batch 16. Submitting jobs - Batch- cont. 17. Submitting Jobs - Batch- Cont. 18. Submitting Jobs - Batch- Cont. 19. Scheduling Jobs Commands * ADDJOBSCDE * CHGJOBSCDE * HLDJOBSCDE * RLSJOBSCDE * RMVJOBSCDE * WRKJOBSCDE 20. Scheduling Jobs -WRKJOBSCDE, SEE TABLE ( ) 21. Add Job Schedule Entry, SEE TABLE ( ) 22. Add Job Schedule Entry, SEE TABLE ( ) 23. Work With Active Jobs, SEE TABLE ( ) 24. Work Active Jobs - Option 5, SEE TABLE ( ) 25. Display Job Status Attributes, SEE TABLE ( )