z/OS TSO/E Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Executing a command processor

z/OS TSO/E Programming Guide
SA32-0981-00

To execute your command processor, enter the command name followed by the operands that are needed for the function you want performed.

For example, suppose you have written a command called CONVERT, which converts data records from an input data set into another format, places the results into an output data set, and optionally prints the converted data. Assume also that you have defined the command syntax as follows:

CONVERT   input-dsname  output-dsname   [ PRINT   ]
                                        [ NOPRINT ]

That is, input-dsname and output-dsname are positional operands and PRINT/NOPRINT are keyword operands where NOPRINT is the default if neither PRINT nor NOPRINT are specified.

To convert the records in INPUT.DATA, place the result in OUTPUT.DATA and print the contents of the output data set, enter the following command:
CONVERT  INPUT.DATA  OUTPUT.DATA  PRINT

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014