In addition to the standard EBCDIC set of characters, High Level Assembler accepts double-byte character set (DBCS) data. The double-byte character set consists of the following:
Character or code | Description |
---|---|
Double-byte space | X'4040' |
Double-byte characters | Each double-byte character contains 2 bytes, each of which must be in the range X'41' to X'FE'. The first byte of a double-byte character is known as the ward byte. For example, the ward byte for the double-byte representation of EBCDIC characters is X'42'. |
Shift codes | Shift-out (SO) - X'0E' |
Note:
|
Examples showing the use of EBCDIC characters and double-byte characters are given in Table 2. For a description of the DBCS notation used in the examples, see Double-byte character set notation.
Characters | Usage | Example | Constituting |
---|---|---|---|
Alphanumeric | In ordinary symbols |
|
Terms |
In variable symbols |
|
||
Digits | As decimal |
|
Terms |
Special |
|
||
+ |
Addition |
|
Expressions |
- |
Subtraction |
|
Expressions |
* |
Multiplication |
|
Expressions |
/ |
Division |
|
Expressions |
+ or - |
(Unary) |
|
Terms¹ |
As delimiters | |||
Spaces | Between fields | LABEL AR 3,4 | Statement |
Comma | Between operands | OPND1,OPND2 | Operand field |
Apostrophes | Enclosing character strings | 'STRING' | String |
Attribute operator | L'OPND1 | Term | |
Parentheses | Enclosing subfields or subexpressions | MOVE MVC TO(80),FROM(A+B*(C-D)) | Statement expression |
SO and SI | Enclosing double-byte data |
|
Mixed string |
As indicators for | |||
Ampersand | Variable symbol | &VAR | Term |
Period | Symbol qualifier | QUAL.SYMBOL | Term |
Sequence symbol | .SEQ | (label) | |
Comment statement in macro definition | .*THIS IS A COMMENT | Statement | |
Concatenation | &VAR.A | Term | |
Bit-length specification | DC CL.7'AB' | Operand | |
Decimal point | DC F'1.7E4' | Operand | |
Asterisk | Location counter reference | *+72 | Expression |
Comment statement | *THIS IS A COMMENT | Operand | |
Equal sign | Literal reference | L 6,=F'2' | Operand |
Keyword | &KEY=D | Keyword parameter | |
Note:
|