Adding definitions to a macro library
You can add macro definitions, and members containing assembler source
statements that can be read by a COPY instruction, to a macro library.
You can use the system utility IEBUPDTE for this purpose.
You can find the details of IEBUPDTE and its control statements in
z/OS DFSMSdfp Utilities.
Figure 42 shows how a new macro definition, NEWMAC, is
added to the system library, SYS1.MACLIB.
Figure 42. Macro library addition procedure
//CATMAC JOB 1,MSGLEVEL=1
//STEP1 EXEC PGM=IEBUPDTE,PARM=MOD
//SYSUT1 DD DSNAME=SYS1.MACLIB,DISP=OLD 1
//SYSUT2 DD DSNAME=SYS1.MACLIB,DISP=OLD 1
//SYSPRINT DD SYSOUT=A 2
//SYSIN DD DATA
./ ADD LIST=ALL,NAME=NEWMAC,LEVEL=01,SOURCE=0 3
MACRO 4
NEWMAC &OP1,&OP2
LCLA &PAR1,&PAR2
·
·
·
MEND
./ ENDUP
/*
Notes to Figure 42:
- 1
- The SYSUT1 and SYSUT2 DD statements indicate that SYS1.MACLIB, an
existing program library, is to be updated.
- 2
- Output from the IEBUPDTE
program is printed on the Class A output device (specified by SYSPRINT).
- 3
- The utility control statement, ./ ADD, and the macro definition follow
the SYSIN statement. The ./ ADD statement specifies that the statements
following it are to be added to the macro library under the name NEWMAC.
When you include macro definitions in the library, the name specified in
the NAME parameter of the ./ ADD statement must be the same as the
operation code of the prototype statement of the macro definition.
- 4
- Following the ADD utility control statement is the macro definition itself.
[ Top of Page | Previous Page | Next Page | Contents | Index ]