HLASM Programmer's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Batch assembling

HLASM Programmer's Guide
SC26-4941-06

You can assemble a sequence of separate assembler programs with a single invocation of the assembler by specifying the BATCH option. The object programs produced from this assembly can be link-edited into either a single phase or separate phases.

When the BATCH option is specified, each assembler program in the sequence must be terminated by an END statement, including the last program in the batch. If an END statement is omitted, the program is assembled with the next program in the sequence. If the END statement is omitted from the last program in the sequence, the assembler generates an END statement.

If you need to produce separate phases, you must write a phase linkage editor control statement for each phase. The phase statement must be written at the start of the module. The following example shows how to create two phases, SECT1 and SECT2. When multiple phases are produced, they are link-edited as an overlay.
         PUNCH ' PHASE SECT1,*'
         END
SECT1    CSECT          Start of first load module
         ⋮
         Source instructions
         ⋮
         END            End of first load module
         PUNCH ' PHASE SECT2,*'
         END
SECT2    CSECT          Start of second load module
         ⋮
         Source instructions
         ⋮
         END            End of second load module

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014