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


Creating a Program Object or Load Module

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

To create a program object or load module by binding or link-editing an object module, issue the LINK command and specify the object module name. If you want to bind or link more than one object module, issue the LINK command and list the object modules' names separated by commas and enclosed in parentheses.

For example, to bind or link-edit sequential data set object modules FIRST.OBJ, SECOND.OBJ and FIFTH.OBJ, enter:
LINK (FIRST,SECOND,FIFTH)

The specified data sets will be concatenated within the output program object or load module in the sequence that they are included in the list of data set names. If there is only a single name in the data set list, parentheses are not required around the name. To bind or link-edit object modules in members, enclose the member names in parentheses.

For example, to bind or link members ONE, TWO, and THREE of data set D00ABC.SAMPLE.OBJ, enter:
LINK (SAMPLE(ONE),SAMPLE(TWO),SAMPLE(THREE))
If the data set name is D00ABC.OBJ, enclose the member names within two pairs of parentheses, for example:
LINK ((ONE),(TWO),(THREE))

You may substitute an asterisk (*) for a data set name to indicate that you will enter binder or linkage editor control statements from your terminal. The system prompts you to enter the control statements, which should begin in column 2. Press the Enter key after you enter each control statement. Enter a null line to indicate the end of your control statements.

When you bind or link-edit an object module that is a sequential data set, the binder or linkage editor generates a load module in a partitioned data set and assigns the program object or load module the member name TEMPNAME.

To store the output from the LINK command in a data set, use the LOAD operand with the user-specified qualifier of the data set enclosed in parentheses.

For example, to store the results of the previous example in data set SALES.LOAD(ONE), enter:
LINK (FIRST,SECOND,FIFTH) LOAD(SALES(ONE))

If you omit the LOAD operand, the system generates a name according to the data set naming conventions. The default descriptive qualifier for the data set name is LOAD.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014