This topic describes the steps of linking the
BANK program.
Procedure
Perform the following steps to link-edit your program.
- Remove the OUTFILE parameter.
- Add the following statements after the //SYSLIB DD statement:
// DD DSN=SEZALIBN,DISP=SHR
// DD DSN=SEZACMTX,DISP=SHR
- Add the following //USERLIB DD statement:
//USERLIB DD DSN=user_id.OBJ,DISP=SHR
- Replace the //SYSLIN DD statement with the following lines:
//SYSLIN DD DSN=user_id.OBJ(&MEM),DISP=SHR
// DD DSN=user_id.LOADLIST(&MEM),DISP=SHR
- Include the following lines when you link-edit your application
code, because not all entry points are defined as external references
in SEZALIBN.
INCLUDE SYSLIB(RPC@S)
INCLUDE SYSLIB(RPC@SEQ)
INCLUDE SYSLIB(RPC@UTIL)
INCLUDE SYSLIB(SOCKET)
- Replace the //SYSLMOD DD statement with the following
line:
//SYSLMOD DD DSN=user_id.LOAD(&MEM),DISP=SHR
- Create one member of the partitioned data set user_id.LOADLIST by adding the following lines to the
data set BANK:
INCLUDE SYSLIB(RPC@S)
INCLUDE SYSLIB(RPC@SEQ)
INCLUDE SYSLIB(RPC@UTIL)
INCLUDE SYSLIB(SOCKET)
INCLUDE USERLIB(BANK@C)
INCLUDE USERLIB(BANK@W)
INCLUDE USERLIB(UTIL)
INCLUDE USERLIB(UUIDBIND)
MODE AMODE(31)
ENTRY CEESTART
- Create a second member of the partitioned data set user_id.LOADLIST by adding the following lines
to the data set BANKD:
INCLUDE SYSLIB(RPC@S)
INCLUDE SYSLIB(RPC@SEQ)
INCLUDE SYSLIB(RPC@UTIL)
INCLUDE SYSLIB(SOCKET)
INCLUDE USERLIB(BANK@S)
INCLUDE USERLIB(UTIL)
INCLUDE USERLIB(UUIDBIND)
MODE AMODE(31)
ENTRY CEESTART
- Submit the link-edit job at the SDSF command panel, by
entering the following lines:
/s EDCL,MEM=BANK
/s EDCL,MEM=BANKD
Results
You know you are done when no errors are received.