Examples showing the use of EBCDIC characters and double-byte characters are given in Table 1. 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:
|
|||