Executing Commands

This article describes how to execute a command and how to determine which running environment is valid for each command. 
ca2e87
This article describes how to execute a
CA 2E
command and how to determine which running environment is valid for each command. 
Contents
2
Executing a
CA 2E
Command
You can execute
CA 2E
commands interactively or in batch. The following instructions provide information for executing a command interactively or submitting the command to batch.
Interactively
To execute a command interactively:
  1. At an i OS command line, enter the command and press F4 to prompt. The command prompt entry displays
  2. If there are additional parameters available for the command, the function key F10 appears at the bottom of your panel. Press F10 to use the additional values. You will occasionally be prompted for additional parameters if there is a dependency on values you enter.
  3. If you are unsure of what value to enter in a field, enter "F4" or "?" to prompt for the allowed values of the field. Alternatively, you can press help to obtain online Help for the field.
  4. Select the appropriate value. You will return to the previous panel with the value entered.
  5. Press Enter when you are satisfied with the values you have entered. The command will now execute.
In Batch
To submit a command to batch:
At the command prompt, enter "SBMJOB" and press F4. Enter the command in the Command to run (CMD) parameter. Then follow the above instructions, steps 2 through 4. Press Enter on the SBMJOB panel to submit your job to batch.
Determining a Command’s Running Environment
A box in the lower right corner of each command diagram contains an entry code that indicates the environment in which the command can be run. The entry code contains the following symbols:
  • Job
    -- Indicates that the command can be run independently as a separate function, in other words, outside a compiled CL program.
  • Pgm
    -- Indicates that the command can be included in a compiled CL program.
  • B
    -- Indicates that the command can be run in batch.
  • I
    -- Indicates that the command can be run interactively.
The following table shows the possible combinations and their meanings.
code
Meaning
Job: B
The command can be run in batch as a separate function.
Job: I
The command can be run interactively as a separate function.
Job: B,I
The command can be run either in batch or interactively as a separate function.
Pgm: B
The command can be run as part of a compiled CL program that is called in batch.
Pgm: I
The command can be run as part of a compiled CL program that is called interactively.
Pgm: B,I
The command can be run as part of a compiled CL program that is called either in batch or interactively.