Job Descriptions (JOBDs) in IBM i (formerly AS400) are essential objects that define the characteristics and environment for running jobs (programs and processes). They act as templates that specify how a job should behave when it's submitted to the system.
Here's how you can create a JOBD:
1. Using the CRTJOBD command:
CRTJOBD command.Syntax:
CRTJOBD JOBD(library/jobd-name) parameters
library: The library where you want to create the JOBD.jobd-name: The name you want to give to the JOBD.parameters: Various parameters that define the JOBD's attributes.2. Key Parameters:
Here are some of the most important parameters you'll likely use when creating a JOBD:
3. Example:
CRTJOBD JOBD(MYLIB/MYJOBD) JOBQ(MYLIB/MYJOBQ) JOBPTY(5) OUTPTY(5) INLLIBL(MYLIB, QSYS) TEXT('Job description for batch processing')
This command creates a JOBD named MYJOBD in library MYLIB. Jobs using this JOBD will be submitted to the MYJOBQ job queue, have a job priority of 5, an output priority of 5, an initial library list of MYLIB and QSYS, and a description of "Job description for batch processing."
4. Using WRKJOBD:
WRKJOBD command to work with job descriptions.WRKJOBD display.5. Important Considerations:
By creating and configuring JOBDs effectively, you can: