Work with command variables

A command variable (previously known as a parameter) is a variable you can store and use in jobs submitted through the Advanced Job Scheduler. Examples of command variables include the beginning of each month, a division number, a company number, and so on.

Command variables (previously known as parameters) are variables that you store in the Advanced Job Scheduler and use in jobs submitted through the Advanced Job Scheduler. Command variables contain information that will be replaced inside the command string of a scheduled job. Examples of command variables include the beginning of each month, a company division number, a company number and so on. You can display command variables, add a new command variable, add a new command variable based on an existing one, or remove a command variable, provided it is not currently in use by a scheduled job.

You can select an existing command variable and display its properties to make changes.

To add a new command variable, follow these steps:

  1. Open Work Management from your iSeries Navigator window.
  2. Right-click Advanced Job Scheduler and click Properties.
  3. Click the Command Variables tab.
  4. Click New and type a name for the command variable.
  5. Type a description for the command variable.
  6. Type the length of the command variable. The length can range from 1 to 90.
  7. Choose how you want to supply the replacement value:
    1. Specify the data to use for the command variable. You use any character in this field. The number of characters in the data cannot be greater than the length specified in the Length field.
    2. Type a formula to calculate the date. (For examples, see the online Help.)
    3. Type the program name that you use to retrieve the replacement value.
    4. Type the library that you use to retrieve the replacement value.
    5. Choose whether you want the replacement value retrieved from the system operator at run time.
Related concepts
Start of changeThe Work Flow ManagerEnd of change
Related tasks
Create and schedule a job
Create and schedule a job group
Predefined schedules
Create a temporary scheduled job
Schedule job dependencies
Monitor job activity for the Advanced Job Scheduler
Monitor for messages with Advanced Job Scheduler
Create and work with local data area
Create and work with applications/job controls
Work with notification
Work with library lists