Using the CMS LKED and OSRUN commands
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.
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.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.