Running a Program Using a User-Created Command

You can create a command to run a program by using a command definition. A command definition is an object (type *CMD) that contains the definition of a command (including the command name, parameter descriptions, and validity-checking information), and identifies the program that performs the function requested by the command.

For example, you can create a command, PAY, that calls a program, PAYROLL, where PAYROLL is the name of an RPG program that you want to run. You can enter the command interactively, or in a batch job. See the CL Programming manual for further information about using command definitions.



[ Top of Page | Previous Page | Next Page | Contents | Index ]