Setting up Command Variables

The Command Variables page allows you to add a command variable, add a command variable that is based on an existing one or remove a command variable, provided it is not currently used by a scheduled job. You can also select an existing command variable and display or modify the properties.

To set up Command Variables, follow these steps:

  1. Expand Work Management.
  2. Expand Advanced Job Scheduler and click Properties.
  3. On the Command Variables page, click New.
  4. Enter the name of the new command variable. The maximum length of the name is 10 characters.
  5. Enter a brief description of the variable. This field is optional.
  6. Enter the length of the value that is returned within the command string in the Length field. The possible values are 1 through 90.
  7. Select how you want the returned value to be supplied. It can be supplied in one of several ways:
    • Click Data to enter and store the value in the space provided.
    • Click Use Formula to enter a date calculating formula. See the help for more information.
    • Click Retrieve from program to call a user-defined program to supply the replacement value. You must enter the program name and library in the fields provided.
    • Click Retrieve from system operator to retrieve the replacement value from the system operator at run time.
  8. When you are finished entering all the pertinent information, click OK to add the command variable to the list of existing variables.