The loader always requires one standard data set, defined by the SYSLIN DD statement. Three other standard data sets are optional, and, if you use them, you must define them in DD statements with the names SYSLOUT, SYSPRINT, and SYSLIB. The four data set names and characteristics are shown in Table 1.
ddname | Type | Function |
---|---|---|
SYSLIN | Input | Primary input data (normally the compiler output) |
SYSLOUT | Output | Loader messages and module map listing |
SYSPRINT | Output | Runtime messages and problem output listing |
SYSLIB | Library | Automatic call library |
Figure 1 is an example of the general job control procedure for creating and running an executable program under batch.
//STEP1 EXEC PGM=LOADER,PARM='MAP,LET'
//STEPLIB DD DSN=CEE.SCEERUN,DISP=SHR
// DD DSN=CEE.SCEERUN2,DISP=SHR
//SYSLIB DD DSN=CEE.SCEELKED,DISP=SHR
// DD DSN=USER.LOADLIB,DISP=SHR
//SYSLIN DD DSN=USER.OBJLIB(PROGRAM1),DISP=SHR
//SYSLOUT DD SYSOUT=A
//SYSPRINT DD SYSOUT=A
⋮
/*