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

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

Characters Usage Example Constituting<br />

Special<br />

Characters<br />

As operators<br />

+<br />

Addition<br />

NINE+FIVE<br />

Expressions<br />

−<br />

Subtraction<br />

NINE-5<br />

Expressions<br />

<br />

Multiplication<br />

9FIVE<br />

Expressions<br />

/<br />

Division<br />

TEN/3<br />

Expressions<br />

+ or −<br />

(Unary)<br />

+NINE<br />

-FIVE<br />

Terms<br />

As delimiters<br />

Spaces<br />

Between fields<br />

LABEL AR 3,4<br />

Statement<br />

Comma<br />

Between operands<br />

OPND1,OPND2<br />

Operand field<br />

Single<br />

Quotation Marks<br />

Enclosing<br />

character strings<br />

'STRING'<br />

String<br />

Attribute operator<br />

L'OPND1<br />

Term<br />

Parentheses<br />

Enclosing subfields<br />

or subexpressions<br />

MOVE MVC TO(8),FROM(A+B(C-D))<br />

Statement<br />

Expression<br />

SO and SI<br />

Enclosing<br />

double-byte data<br />

C'abc'<br />

G''<br />

Mixed string<br />

Pure DBCS<br />

As indicators for<br />

Ampersand<br />

Variable symbol<br />

&VAR<br />

Term<br />

Period<br />

Symbol qualifier<br />

QUAL.SYMBOL<br />

Term<br />

Sequence symbol<br />

.SEQ<br />

(label)<br />

Comment statement<br />

in macro definition<br />

.THIS IS A COMMENT<br />

Statement<br />

Concatenation<br />

&VAR.A<br />

Term<br />

Bit-length<br />

specification<br />

DC CL.7'AB'<br />

Operand<br />

Decimal point<br />

DC F'1.7E4'<br />

Operand<br />

Asterisk<br />

Location counter<br />

reference<br />

+72<br />

Expression<br />

| Comment statement THIS IS A COMMENT<br />

Operand<br />

| Equal sign<br />

Literal reference L 6,=F'2'<br />

Operand<br />

Keyword<br />

&KEY=D<br />

Keyword<br />

parameter<br />

| Note:<br />

| 1. If these are passed as macro arguments, they are treated as expressions, not terms. Expressions<br />

| cannot be substituted into SETA expressions.<br />

Chapter 2. Coding and Structure 13

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

Saved successfully!

Ooh no, something went wrong!