CEEWLG — Link and run a Language Environment conforming non-XPLINK program

The CEEWLG cataloged procedure in Figure 1 includes the LKED step, which invokes the binder (symbolic name HEWL) to link-edit an object module, and the GO step, which executes the executable program produced in the first step.

The following DD statement, indicating the location of the object module, must be supplied in the input stream:

//LKED.SYSIN DD *      (or appropriate parameters)

The data set SCEELKED must be included in your link-edit SYSLIB concatenation. This 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.)

The data set SCEERUN must be included in the STEPLIB DD statement for the GO step. (The name of this load library might have been changed at your installation.)

If the application refers to any data sets in the execution step (such as user-defined files or SYSIN), you must also provide DD statements that define these data sets.

Figure 1. Cataloged procedure CEEWLG, which link-edits and runs a program written in any Language Environment-conforming HLL
//CEEWLG   PROC LIBPRFX='CEE',GOPGM=GO
//LKED     EXEC PGM=HEWL,REGION=1024K
//SYSLIB   DD   DSNAME=&LIBPRFX..SCEELKED,DISP=SHR
//SYSPRINT DD   SYSOUT=*
//SYSLIN   DD   DDNAME=SYSIN
//SYSLMOD  DD   DSNAME=&&GOSET(&GOPGM),SPACE=(TRK,(10,10,1)),
//              UNIT=SYSDA,DISP=(MOD,PASS)
//SYSUT1   DD   UNIT=SYSDA,SPACE=(TRK,(10,10))
//GO       EXEC PGM=*.LKED.SYSLMOD,COND=(4,LT,LKED),REGION=2048K
//STEPLIB  DD   DSNAME=&LIBPRFX..SCEERUN,DISP=SHR
//SYSPRINT DD   SYSOUT=*
//CEEDUMP  DD   SYSOUT=*
//SYSUDUMP DD   SYSOUT=*