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.

ALIAS Instruction<br />

FRONT<br />

The statement is placed at the front of the internal buffer.<br />

Notes:<br />

1. The ICTL instruction does not affect the format of the stored statements. The<br />

assembler processes these statements according to the standard begin, end<br />

and continue columns.<br />

2. The assembler does not check the stored statements, even when the ISEQ<br />

instruction is active.<br />

Example:<br />

MACRO<br />

MAC1<br />

.<br />

| .A AINSERT 'INSERT RECORD NUMBER ONE',FRONT Insert record into the input stream<br />

| .B AINSERT 'INSERT RECORD NUMBER TWO',FRONT Insert record at the top of the input stream<br />

| .C AINSERT 'INSERT RECORD NUMBER THREE',BACK Insert record at the bottom of the input stream<br />

| .<br />

| .<br />

| .<br />

| &FIRST AREAD Retrieve record TWO from the top of the input stream<br />

| .<br />

| .D AINSERT 'INSERT RECORD NUMBER FOUR',FRONT Insert record at the top of the input stream<br />

.<br />

&SECOND AREAD<br />

Retrieve record FOUR from the top of the input stream<br />

.<br />

MEND<br />

CSECT<br />

.<br />

MAC1<br />

.<br />

END<br />

In this example the variable &FIRST receives the operand of the AINSERT<br />

statement created at .B. &SECOND receives the operand of the AINSERT<br />

statement created at .D. The operand of the AINSERT statements at .A and .C are<br />

in the internal buffer in the sequence .A followed by .C and are the next statements<br />

processed when the macro generator has finished processing.<br />

Figure 65 on page 263 shows code using AINSERT in statements 16, 22, and 23.<br />

ALIAS Instruction<br />

The ALIAS instruction specifies alternate names for the external symbols that<br />

identify control sections, entry points, and external references. The instruction has<br />

nothing to do with the link-time aliases in libraries.<br />

►►──symbol──ALIAS──alias_string────────────────────────────────────►◄<br />

symbol<br />

is an external symbol that is represented by one of the following:<br />

An ordinary symbol<br />

A variable symbol that has been assigned a character string with a value<br />

that is valid for an ordinary symbol<br />

Chapter 5. Assembler Instruction Statements 109

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

Saved successfully!

Ooh no, something went wrong!