This procedure consists of one job step: assembly. Use the name ASMAC to call this procedure. The result of running this procedure is an object module written to SYSPUNCH and an assembler listing. (See Invoking the assembler on z/OS for more details and another example.)
In the following example, input is provided in the input stream:
//jobname JOB //stepname EXEC PROC=ASMAC //SYSIN DD *
·
·
·
assembler source statements
·
·
·
/* (delimiter statement)
The statements of the ASMAC procedure are read from the procedure library and merged into the input stream.
Figure 43 shows the statements that make up the ASMAC procedure.
//ASMAC PROC //* //******************************************************************** //* Licensed Materials - Property of IBM * //* * //* 5696-234 5647-A01 * //* * //* (C) Copyright IBM Corp. 1992, 2008. All Rights Reserved. * //* * //* US Government Users Restricted Rights - Use, * //* duplication or disclosure restricted by GSA ADP * //* Schedule Contract with IBM Corp. * //* * //******************************************************************** //* * //* ASMAC * //* * //* THIS PROCEDURE RUNS THE HIGH LEVEL ASSEMBLER AND CAN BE USED * //* TO ASSEMBLE PROGRAMS. * //* * //******************************************************************** //C EXEC PGM=ASMA90 //SYSLIB DD DSN=SYS1.MACLIB,DISP=SHR 1 //SYSUT1 DD DSN=&&SYSUT1,SPACE=(4096,(120,120),,,ROUND), 2 // UNIT=SYSALLDA,DCB=BUFNO=1 //SYSPRINT DD SYSOUT=* 3 //SYSLIN DD DSN=&&OBJ,SPACE=(3040,(40,40),,,ROUND), 4 // UNIT=SYSALLDA,DISP=(MOD,PASS), // DCB=(BLKSIZE=3040,LRECL=80,RECFM=FB,BUFNO=1)
Notes to Figure 43:
[ Top of Page | Previous Page | Next Page | Contents | Index ]