HLASM Programmer's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using the CMS GENMOD command

HLASM Programmer's Guide
SC26-4941-06

When your programs are debugged and tested, you can use the LOAD and INCLUDE commands, 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 file type 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 file name you are assigning to the module, which has a file type 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 about creating program modules, see the applicable CMS User's Guide for your particular VM environment, as listed under Bibliography.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014