22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introduction to Macro <strong>Language</strong><br />

Macro Library<br />

The same macro definition may be made available to more than one source<br />

program by placing the macro definition in the macro library. The macro library is a<br />

collection of macro definitions that can be used by all the assembler language<br />

programs in an installation. When a macro definition has been placed in the macro<br />

library, it can be called by coding its corresponding macro instruction in a source<br />

program. Macro definitions must be in a macro library with a member name that is<br />

the same as the macro name. The procedure for placing macro definitions in the<br />

macro library is described in the applicable utilities manual.<br />

The DOS/VSE assembler requires library macro definitions to be placed in the<br />

macro library in a special edited format. High Level Assembler does not require<br />

this. Library macro definitions must be placed in the macro library in source<br />

statement format. If you wish to use edited macros in VSE you can provide a<br />

LIBRARY exit to read the edited macros and convert them into source statement<br />

format. A library exit is supplied with VSE and is described in VSE/ESA Guide to<br />

System Functions.<br />

System Macro Instructions<br />

The macro instructions that correspond to macro definitions prepared by IBM are<br />

called system macro instructions. System macro instructions are described in the<br />

applicable operating system manuals that describe macro instructions for supervisor<br />

services and data management.<br />

Conditional Assembly <strong>Language</strong><br />

The conditional assembly language is a programming language with most of the<br />

features that characterize a programming language. For example, it provides:<br />

Variables<br />

Data attributes<br />

Expression computation<br />

Assignment instructions<br />

Labels for branching<br />

Branching instructions<br />

Substring operators that select characters from a string<br />

Use the conditional assembly language in a macro definition to receive input from a<br />

calling macro instruction. You can produce output from the conditional assembly<br />

language by using the MNOTE instruction.<br />

Use the functions of the conditional assembly language to select statements for<br />

generation, to determine their order of generation, and to do computations that<br />

affect the content of the generated statements.<br />

The conditional assembly language is described in Chapter 9, “How to Write<br />

Conditional Assembly Instructions” on page 318.<br />

242 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!