Previous Topic: Link Edit Batch Call-Level DL/I ApplicationsNext Topic: Execute DL/I Batch Application Program


Link Edit Batch Command-Level DL/I (EXEC DLI) Applications

To link edit the DL/I application program using EXEC DLI commands with the language application program with the language interface/ interface, the JCL for z/OS and for z/VSE is provided below:

IDMSDLHI (LINK EDIT) (z/OS)

//LINK   EXEC  PGM=HEWL
//SYSPRINT DD  SYSOUT=A
//IDMSLIB  DD  DSN=idms.loadlib,DISP=SHR
//SYSLIB  DD  DSN=user.loadlib,DISP=SHR
//SYSUT1  DD  UNIT=SYSDA,SPACE=(trk,(20,5))
//SYSLMOD  DD  DSN=user.loadlib,DISP=SHR
//SYSLIN  DD  *
INCLUDE IDMSLIB(IDMSDLHI)
INCLUDE SYSLIB(userpgm)
ENTRY DLITCBL     (or appropriate entry point name) 
NAME userpgm(R)
/*
//
  

idms.loadlib

data set name of the IDMS object library

trk,(20,5)

space to be allocated in bytes per track

user.loadlib

data set name of the load library that is to contain the resulting linked user application program

userpgm

name of the DL/I application program to be link edited to IDMSDLHI

IDMSDLHI (LINK EDIT) (z/VSE)

//JOB

//LIBDEF *,SEARCH=(idms.library, user.library)
//LIBDEF *,CATALOG=user.library
//OPTION CATAL
PHASE userpgm,*
INCLUDE IDMSDLHI
INCLUDE userpgm}
ENTRY userpgm } Assembler programs
//EXEC LNKEDT
/*
CLOSE SYSIPT,SYSRDR
/*

idms.library

data set name of the CA IDMS DLI Transparency

user.library

data set name of the library containing the DL/I application program object

user.library

name of the library that is to contain the resulting linked user's application program

userpgm

name of the DL/I application program in the user's object library