The AFHWL cataloged procedure shown in Figure 1 includes the LKED step, which invokes the binder (symbolic name HEWL) to link-edit an object module. The procedure can be used to link-edit applications containing Fortran or assembler routines having names that conflict with existing C library routines, as discussed in Resolving library module name conflicts between Fortran and C.
//LKED.SYSIN DD * (or appropriate parameters)
The data sets SAFHFORT and SCEELKED must both be included in your link-edit SYSLIB concatenation (in that order). SAFHFORT is the name of the Fortran-specific link-edit library and is used to resolve certain Fortran intrinsic function names. SCEELKED is the name of the Language Environment link-edit library. (The high-level qualifier of this link-edit library might have been changed at your installation.)
//AFHWL PROC LIBPRFX='CEE',
PGMLIB='&&GOSET',GOPGM=GO
//LKED EXEC PGM=HEWL,REGION=1024K
//SYSLIB DD DSNAME=&LIBPRFX..SAFHFORT,DISP=SHR
// DD DSNAME=&LIBPRFX..SCEELKED,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSLIN DD DDNAME=SYSIN
//SYSLMOD DD DSNAME=&PGMLIB(&GOPGM),
// SPACE=(TRK,(10,10,1)),
// UNIT=SYSDA,DISP=(MOD,PASS)
//SYSUT1 DD UNIT=SYSDA,SPACE=(TRK,(10,10))