IBM SC33-1683-02 User Manual

Page 434

Advertising
background image

Assembling and link-editing user-replaceable programs

The source for the CICS-supplied user-replaceable programs is installed in the
CICSTS13.CICS.SDFHSAMP library. If you intend changing any of these programs,
take a copy of the CICSTS13.CICS.SDFHSAMP library and update the copy only. If
the original SDFHSAMP is serviced, and a user-replaceable program is modified,
you may like to reflect the changes in your own version of the code.

To replace one of these CICS-supplied programs, assemble and link-edit your
version of the program. All programs are supplied as command-level programs, and
must be translated before assembly and link-edit. Note that the translator options
NOPROLOG and NOEPILOG should be coded with your versions of DFHZNEP and
DFHTEP.

If you have user-written versions of DFHZNEP, DFHPEP, or DFHTEP from an
earlier release of CICS, and they use macros, recode the programs to use EXEC
CICS commands.

To translate, assemble, and link-edit user-replaceable programs, you can use the
CICS-supplied procedure DFHEITAL. For information about using DFHEITAL, see
the

CICS System Definition Guide. If you use SMP/E, you can give the object-deck

output after translation and assembly to SMP/E for link-editing.

When link-editing a user-replaceable program, you must link-edit it with the EXEC
interface module (stub). This stub enables the program to communicate with the
EXEC interface program (DFHEIP). If you use the DFHEITAL procedure, it link-edits
programs with the EXEC interface stub by default. For more information about the
EXEC interface stub, see the

CICS System Definition Guide.

The job stream in Figure 12 is an example of the assembly and link-edit of a
user-replaceable program. The figure is followed by some explanatory notes.

//ASSMBLE EXEC DFHASMVS,MOD='program_name',

1

2

//

INDEX='CICSTS13.CICS',ASMBLR=IEV90,

//

LIST='LIST,XREF(SHORT),RENT,ALIGN'

//ASSEM.SYSPUNCH DD DSN=yourtext_dataset(program_name),DISP=OLD

3

//ASSEM.SYSIN DD *

TITLE 'CICS/ESA : V3.2.1 : ASSEMBLE AND LINK-EDIT OF program_name'

COPY DFHGDEFS GLOBAL SYMBOL DEFINITIONS

4

&MVS

SETB 1

SET WHEN MVS

&MVS811 SETB 1

SET WHEN MVS/ESA

&VSDSECT SETA 1

PRINT NO DSECTS

DFHCOVER OS

//

DD DSN=your_dataset(program_name),DISP=SHR

5

/*

//LNKEDIT EXEC DFHLNKVS,

//

PARM='LIST,XREF,LET,RENT,REFR',

//

NAME=SDFHLOAD,

// INDEX='CICSTS13.CICS',

// INDEX2='CICSTS13.CICS'

//SDFHLOAD DD DSN=CICSTS13.CICS.SDFHLOAD,DISP=SHR

//USERTEXT DD DSN=yourtext_dataset,DISP=SHR

//SYSLIN DD *

/* link-edit statements, see Figure 13 on page 404

*/

6

/*

Figure 12. Job stream to assemble and link-edit a user-replaceable program

notes about user-replaceable programs

402

CICS TS for OS/390: CICS Customization Guide

Advertising