The JCL for running an assembly includes:
The simplest way to assemble your program on z/OS is to code JCL that uses the cataloged procedure shown in Figure 31.
//jobname JOB accountno,progrname,MSGLEVEL=1 1 //stepname EXEC ASMAC 2 //SYSIN DD * 3
·
·
·
Assembler source statements
·
·
·
/*
These statements cause the assembler to assemble your program, produce a listing and write an object module to the SYSLIN data set. If you do not want an object module written to the SYSLIN data set, use the following job control statements to assemble the program:
//jobname JOB accountno,progrname,MSGLEVEL=1 //stepname EXEC ASMAC,PARM=NOOBJECT //SYSIN DD *
·
·
·
Assembler source statements
·
·
·
/*
Assembler Options: The second parameter (PARM) specifies the assembler option NOOBJECT, which tells the assembler not to write the object module to SYSLIN. For a full discussion of assembler options, see Controlling your assembly with options.
Using your own JCL: The cataloged procedures might not comply with your data processing requirements. Figure 33 shows sample job control statements that you can use instead to assemble your program.
//ASMJOB JOB 1,MSGLEVEL=1 //ASSEMBLY EXEC PGM=ASMA90,PARM=OBJECT //SYSPRINT DD SYSOUT=A //SYSTERM DD SYSOUT=A //ASMAOPT DD DSNAME=PROG.OPTIONS,DISP=OLD //SYSLIN DD DSNAME=PROG.OBJ,DISP=OLD //SYSPUNCH DD DSNAME=PROG.DECK,DISP=OLD //SYSADATA DD DSNAME=PROG.ADATA,DISP=OLD //SYSIN DD DSNAME=PROG.SOURCE,DISP=SHR
Refer to Bibliography for a list of JCL documents that describe additional techniques for specifying job control statements and overriding cataloged procedures.
[ Top of Page | Previous Page | Next Page | Contents | Index ]