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


Using the CMS LKED and OSRUN commands

HLASM Programmer's Guide
SC26-4941-06

A LOADLIB is another type of library available to you on CMS. LOADLIBs, like MACLIBs and TXTLIBs, are in CMS-simulated partitioned data set formats. Unlike TXTLIBs, which contain object programs that need to be link-edited when they are loaded, LOADLIBs contain programs that have already been link-edited, thus saving the overhead of the link-editing process every time the program is loaded. You can load the members of TXTLIBs by both CMS loading facilities (LOAD or INCLUDE command) and certain OS macros (such as LINK, LOAD, ATTACH, or XCTL), but you can only load the members of LOADLIBs that use these OS macros.

Use the LKED command to create a CMS LOADLIB. For example:
FILEDEF SYSLIB DISK USERTXT TXTLIB *
LKED TESTFILE
This example takes a CMS TEXT file with the file name of TESTFILE and creates a file named TESTFILE LOADLIB, using the SYSLIB to resolve external references. TESTFILE LOADLIB is a CMS-simulated partitioned data set containing one member, named TESTFILE.
To use the OSRUN command to run TESTFILE, first use the GLOBAL command to identify which libraries are to be searched when processing subsequent CMS commands. For example:
GLOBAL LOADLIB TESTFILE
OSRUN TESTFILE
The OSRUN command causes the TESTFILE member of the TESTFILE LOADLIB to be loaded, relocated, and run.

User parameters can be added on the line with the OSRUN command, but they are passed in OS format. For a complete description of the OSRUN command, see the applicable CMS Command Reference for your particular VM environment, as listed under Bibliography.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014