Using the CMS GENMOD command

When your programs are debugged and tested, you can use the LOAD and INCLUDE commands, in conjunction with the GENMOD command, to create program modules. A module is a relocatable or non-relocatable object program whose external references have been resolved. In CMS, these files must have a filetype of MODULE.

To create a program module, load the TEXT files or TXTLIB members into storage and issue the GENMOD command:

LOAD CREATE ANALYZE PRINT(RLDSAVE
GENMOD PROCESS

In this example, CREATE, ANALYZE, and PRINT are TEXT files that you are combining into a module named PROCESS; PROCESS is the filename you are assigning to the module, which has a filetype of MODULE. If you use the name of an existing MODULE file, the old one is replaced.

From then on, any time you want to run the program composed of the object files CREATE, ANALYZE, and PRINT, enter:

PROCESS

If PROCESS requires input files, output files, or both, you must define these files before PROCESS can run correctly.

For more information on creating program modules, see the applicable CMS User's Guide for your particular VM environment, as listed under Bibliography.


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