22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Character Set<br />

Compatibility with Earlier Assemblers: You can specify the<br />

COMPAT(MACROCASE) assembler option to instruct the assembler to maintain<br />

uppercase alphabetic character set compatibility with earlier assemblers for<br />

unquoted macro operands. The assembler converts lowercase alphabetic<br />

characters (a through z) in unquoted macro operands to uppercase alphabetic<br />

characters (A through Z).<br />

Double-Byte Character Set<br />

In addition to the standard EBCDIC set of characters, High Level Assembler<br />

accepts double-byte character set (DBCS) data. The double-byte character set<br />

consists of the following:<br />

Figure 4. Double-Byte Character Set (DBCS)<br />

Double-byte space<br />

X'4040'<br />

Double-byte characters Each double-byte character contains two bytes, each of<br />

which must be in the range X'41' to X'FE'. The first byte<br />

of a double-byte character is known as the ward byte. For<br />

| example, the ward byte for the double-byte representation<br />

of EBCDIC characters is X'42'.<br />

Shift codes<br />

Shift-out (SO) - X'0E'<br />

Shift-in (SI) - X'0F'<br />

Note:<br />

1. SO and SI delimit DBCS data only when the DBCS assembler option is specified. The<br />

DBCS assembler option is described in the <strong>HLASM</strong> Programmer's Guide.<br />

2. When the DBCS assembler option is specified, double-byte characters may be used<br />

anywhere that EBCDIC characters enclosed by single quotation marks can be used.<br />

3. Regardless of the invocation option, double-byte characters may be used in remarks,<br />

comments, and the statements processed by AREAD and REPRO statements.<br />

Examples showing the use of EBCDIC characters and double-byte characters are<br />

given in Figure 5. For a description of the DBCS notation used in the examples,<br />

see “Double-Byte Character Set Notation” on page xvi.<br />

Figure 5 (Page 1 of 2). Examples Using Character Set<br />

Characters Usage Example Constituting<br />

Alphanumeric In ordinary symbols Label<br />

FIELD#1<br />

Save_Total<br />

| In variable symbols &EASY_TO_READ<br />

Digits<br />

As decimal<br />

self-defining<br />

terms<br />

1<br />

9<br />

Terms<br />

Terms<br />

12 <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!