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.

TITLE Instruction<br />

PGM1 The First Heading Page 3<br />

Active Usings: None<br />

Loc Object Code Addr1 Addr2 Stmt Source Statement <strong>HLASM</strong> R5. 24/6/11 17.48<br />

4 2 PGM1 CSECT LRM2<br />

R:C 3 USING PGM1,12 Assign the base register<br />

PGM1 The Next Heading Page 4<br />

Active Usings: PGM1,R12<br />

Loc Object Code Addr1 Addr2 Stmt Source Statement <strong>HLASM</strong> R5. 24/6/11 17.48<br />

18CF 5 LR 12,15 Load the base address<br />

6 &VARSYM SETC 'Value from Variable Symbol'<br />

7 TITLE 'The &VARSYM'<br />

PGM1 The Value from Variable Symbol Page 5<br />

Active Usings: PGM1,R12<br />

Loc Object Code Addr1 Addr2 Stmt Source Statement <strong>HLASM</strong> R5. 24/6/11 17.48<br />

2 7FE 8 BR 14 Return<br />

9 END LRM9<br />

Figure 60. Sample Program Using TITLE Instruction<br />

Page Ejects<br />

Each inline TITLE statement causes the listing to be advanced to a new page<br />

before the heading is printed unless it is preceded immediately by one of the<br />

following:<br />

A CEJECT instruction<br />

An EJECT instruction<br />

A SPACE instruction that positions the current print line at the start of a new<br />

page<br />

A TITLE instruction<br />

If the TITLE statement appears in a macro or contains a variable symbol and<br />

PRINT NOGEN is specified, the listing is not advanced to a new page.<br />

Valid Characters<br />

Any printable character specified appears in the heading, including spaces.<br />

Double-byte data can be used when the DBCS assembler option is specified. The<br />

double-byte data must be valid. Variable symbols are allowed. However, the<br />

following rules apply to ampersands and single quotation marks:<br />

The DBCS ampersand and single quotation mark are not recognized as<br />

delimiters.<br />

A double-byte character that contains the value of an EBCDIC ampersand or<br />

single quotation mark in either byte is not recognized as a delimiter when<br />

enclosed by SO and SI.<br />

A single ampersand initiates an attempt to identify a variable symbol and to<br />

substitute its current value.<br />

A pair of ampersands is printed as one ampersand.<br />

A pair of single quotation marks is printed as one single quotation mark.<br />

An unpaired single quotation mark followed by one or more spaces simply ends<br />

the string of characters printed. If a non-space character follows an unpaired<br />

single quotation mark, the assembler issues an error message and prints no<br />

heading.<br />

Chapter 5. Assembler Instruction Statements 217

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

Saved successfully!

Ooh no, something went wrong!