The following example JCL is similar to that generated by the templates MDHBLNK0 and MDHBLNK1.
//PRELINK EXEC PGM=MDHLLNK0,
// PARM='POSIX(OFF),TRAP(OFF)/-t DD:MDHTTRC %PRELKOPT. -u0'
//STEPLIB DD DISP=SHR,DSN=MDH.V1010.MDHLLIB
// DD DISP=SHR,DSN=MDH.V1010.MDHLLPA
//OBJECT DD DISP=SHR,DSN=LIB1.DEV.OBJ
// DD DISP=SHR,DSN=LIB1.UT.OBJ
// DD DISP=SHR,DSN=LIB1.ST.OBJ
// DD DISP=SHR,DSN=LIB1.REL.OBJ
//LNKLIB DD DISP=SHR,DSN=LIB1.DEV.LNKLIB
// DD DISP=SHR,DSN=LIB1.UT.LNKLIB
// DD DISP=SHR,DSN=LIB1.ST.LNKLIB
// DD DISP=SHR,DSN=LIB1.REL.LNKLIB
//SYSLIN DD DISP=SHR,DSN=LIB1.DEV.SYSLIN(LMODULE)
//DEPENDCY DD DISP=SHR,DSN=LIB1.DEV.DEPENDCY
// DD DISP=SHR,DSN=LIB1.UT.DEPENDCY
// DD DISP=SHR,DSN=LIB1.ST.DEPENDCY
// DD DISP=SHR,DSN=LIB1.REL.DEPENDCY
//IMPORT DD DISP=SHR,DSN=LIB1.DEV.IMPORT
// DD DISP=SHR,DSN=LIB1.UT.IMPORT
// DD DISP=SHR,DSN=LIB1.ST.IMPORT
// DD DISP=SHR,DSN=LIB1.REL.IMPORT
// DD DISP=SHR,DSN=CBC.SCLBSID
// DD DISP=SHR,DSN=CEE.SCEELIB
//SYSLMOD DD DISP=SHR,DSN=LIB1.DEV.LOAD(LMODULE)
//MDHFLAT DD DISP=SHR,DSN=LIB1.DEV.MDHFLAT(SMODULE)
//MDHLPRNT DD SYSOUT=*
//MDHTTRC DD SYSOUT=*
The example JCL above uses the following DDNAMEs:
DD Name |
Description |
DDNAME |
Other DDNAMEs are required if there are INCLUDE statements that reference them. |
MDHFLAT |
The data set for the output stream for the link editor. |
MDHLPRNT |
The data set for messages. |
MDHTTRC |
The data set for trace. Use the -t parameter to change this name. |
SYSLIN |
The data set for the input stream. |