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 />

Chapter 2. Coding and Structure<br />

This chapter provides information about assembler language coding conventions<br />

and assembler language structure.<br />

Character Set<br />

High Level Assembler provides support for both standard single-byte characters<br />

and double-byte characters.<br />

Standard Character Set<br />

| The standard (default) character set used by High Level Assembler is a subset of<br />

the EBCDIC character set. This subset consists of letters of the alphabet, national<br />

characters, the underscore character, digits, and special characters. The complete<br />

set of characters that make up the standard assembler language character set is<br />

shown in Figure 3.<br />

Figure 3. Standard Character Set<br />

Alphabetic characters<br />

Digits 0 through 9<br />

Special characters<br />

a through z<br />

A through Z<br />

national characters @, $, and #<br />

underscore character _<br />

+ - , = . ( ) ' / &<br />

space<br />

For a description of the binary and hexadecimal representations of the characters<br />

that make up the standard character set, see Appendix D, “Standard Character Set<br />

Code Table” on page 421.<br />

When you code terms and expressions (see “Terms, Literals, and Expressions” on<br />

page 28) in assembler language statements, you can only use the set of<br />

characters described above. However, when you code remarks, comments or<br />

character strings between paired single quotation marks, you can use any character<br />

in the EBCDIC character set.<br />

The term alphanumeric characters includes both alphabetic characters and digits,<br />

but not special characters. Normally, you would use strings of alphanumeric<br />

characters to represent terms, and special characters as:<br />

Arithmetic operators in expressions<br />

Data or field delimiters<br />

Indicators to the assembler for specific handling<br />

Whenever a lowercase letter (a through z) is used, the assembler considers it to be<br />

identical to the corresponding uppercase character (A through Z), except when it is<br />

used within a character string enclosed in single quotation marks, or within the<br />

positional and keyword operands of macro instructions.<br />

© Copyright IBM Corp. 1982, 2004 11

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

Saved successfully!

Ooh no, something went wrong!