Previous Topic: Library References in JCLNext Topic: z/OS Link-Edit JCL


z/OS Assemble and Link-Edit JCL

Use the following JCL to assemble and link-edit a module in z/OS.

//ASMCL   EXEC HLASMCL
//C.SYSLIB   DD DISP=SHR,DSN=zOS.maclib
//           DD DISP=SHR,DSN=yourHLQ.CAGJMAC
//C.SYSIN    DD DISP=SHR,DSN=your.custom.srclib(source-member)
//L.SYSLMOD  DD DISP=SHR,DSN=your.custom.loadlib
//L.CAGJLOAD DD DISP=SHR,DSN=yourHLQ.CAGJLOAD
//L.CUSTLIB  DD DISP=SHR,DSN=your.custom.lib
//L.SYSIN DD *
 binder-statements
/*

Replace the variables in the JCL as explained next:

source-member

Replace source-member with the name of the member containing the source to be assembled.

binder-statements

Replace binder-statements with the binder input statements appropriate to the load module being created.