HLASM Language Reference

HLASM Language Reference HLASM Language Reference

faculty.cs.niu.edu
from faculty.cs.niu.edu More from this publisher
22.02.2015 Views

Macro and Conditional Assembly Language Summary Figure 119 (Page 2 of 2). Variable Symbols Variable Symbol SETA SETB SETC Declared by: LCLA or GBLA instruction LCLB or GBLB instruction LCLC or GBLC instruction Notes: 1. Can be used only in macro definitions. Initialized or set to: Value changed by: 0 SETA instruction 0 SETB instruction String of length 0 (null) SETC instruction May be used in: Arithmetic expressions Character expressions Logical expressions Arithmetic expressions Character expressions Logical expressions Arithmetic expressions if value is self-defining term Character expressions Logical expressions if value is self-defining term Figure 120 (Page 1 of 5). System Variable Symbols System Variable Symbol Availability Type Type Attr. Scope Initialized or set to &SYSADATA_DSN HLA2 C U,O L Current associated data file &SYSADATA_MEMBER HLA2 C U,O L Current associated data file member name &SYSADATA_VOLUME HLA2 C U,O L Current associated data file volume identifier Value changed by Constant throughout assembly Constant throughout assembly Constant throughout assembly &SYSASM HLA1 C U G Assembler name Constant throughout assembly &SYSCLOCK HLA3 C U L Current date and time Constant throughout macro expansion &SYSDATC HLA1 C,A N G Assembly date (with century) Constant throughout assembly &SYSDATE AsmH C U G Assembly date Constant throughout assembly &SYSECT All C U L Name of control section in effect where macro instruction appears Constant throughout definition; set by START, CSECT, RSECT, DSECT, or COM May be used in Character expressions Character expressions Character expressions Character expression Character expressions Arithmetic expressions Character expressions Character expressions Character expressions 416 HLASM V1R5 Language Reference

Macro and Conditional Assembly Language Summary Figure 120 (Page 2 of 5). System Variable Symbols System Variable Symbol Availability Type Type Attr. Scope Initialized or set to &SYSIN_DSN HLA1 C U L Current primary input data set name &SYSIN_MEMBER HLA1 C U,O L Current primary input member name &SYSIN_VOLUME HLA1 C U,O L Current primary input volume identifier &SYSJOB HLA1 C U G Source module assembly jobname &SYSLIB_DSN HLA1 C U L Current macro library filename &SYSLIB_MEMBER HLA1 C U,O L Current macro library member name &SYSLIB_VOLUME HLA1 C U,O L Current macro library volume identifier &SYSLIN_DSN HLA2 C U L Current object data set name &SYSLIN_MEMBER HLA2 C U,O L Current object data set member name &SYSLIN_VOLUME HLA2 C U,O L Current object data set volume identifier Value changed by Constant throughout definition Constant throughout definition Constant throughout definition Constant throughout assembly Constant throughout definition Constant throughout definition Constant throughout definition Constant throughout assembly Constant throughout assembly Constant throughout assembly &SYSLIST All C any L Not applicable Not applicable &SYSLIST(n) &SYSLIST(n,m) All C any L Corresponding macro instruction operand &SYSLOC AsmH C U L Location counter in effect where macro instruction appears Constant throughout definition Constant throughout definition; set by START, CSECT, RSECT, DSECT, COM, and LOCTR &SYSMAC HLA3 C U,O L Macro name Constant throughout definition &SYSMAC(n) HLA3 C U,O L Ancestor macro name Constant throughout definition May be used in Character expressions Character expressions Character expressions Character expressions Character expressions Character expressions Character expressions Character expressions Character expressions Character expressions N'&SYSLIST in arithmetic expressions Arithmetic expressions if operand is self-defining term Character expressions Character expressions Arithmetic expressions Arithmetic expressions Appendix C. Macro and Conditional Assembly Language Summary 417

Macro and Conditional Assembly <strong>Language</strong> Summary<br />

Figure 120 (Page 2 of 5). System Variable Symbols<br />

System Variable<br />

Symbol<br />

Availability<br />

Type<br />

Type<br />

Attr. Scope Initialized or set to<br />

&SYSIN_DSN HLA1 C U L Current primary input<br />

data set name<br />

&SYSIN_MEMBER HLA1 C U,O L Current primary input<br />

member name<br />

&SYSIN_VOLUME HLA1 C U,O L Current primary input<br />

volume identifier<br />

&SYSJOB HLA1 C U G Source module<br />

assembly jobname<br />

&SYSLIB_DSN HLA1 C U L Current macro library<br />

filename<br />

&SYSLIB_MEMBER HLA1 C U,O L Current macro library<br />

member name<br />

&SYSLIB_VOLUME HLA1 C U,O L Current macro library<br />

volume identifier<br />

&SYSLIN_DSN HLA2 C U L Current object data set<br />

name<br />

&SYSLIN_MEMBER HLA2 C U,O L Current object data set<br />

member name<br />

&SYSLIN_VOLUME HLA2 C U,O L Current object data set<br />

volume identifier<br />

Value<br />

changed<br />

by<br />

Constant<br />

throughout<br />

definition<br />

Constant<br />

throughout<br />

definition<br />

Constant<br />

throughout<br />

definition<br />

Constant<br />

throughout<br />

assembly<br />

Constant<br />

throughout<br />

definition<br />

Constant<br />

throughout<br />

definition<br />

Constant<br />

throughout<br />

definition<br />

Constant<br />

throughout<br />

assembly<br />

Constant<br />

throughout<br />

assembly<br />

Constant<br />

throughout<br />

assembly<br />

&SYSLIST All C any L Not applicable Not<br />

applicable<br />

&SYSLIST(n)<br />

&SYSLIST(n,m)<br />

All C any L Corresponding macro<br />

instruction operand<br />

&SYSLOC AsmH C U L Location counter in<br />

effect where macro<br />

instruction appears<br />

Constant<br />

throughout<br />

definition<br />

Constant<br />

throughout<br />

definition;<br />

set by<br />

START,<br />

CSECT,<br />

RSECT,<br />

DSECT,<br />

COM,<br />

and<br />

LOCTR<br />

&SYSMAC HLA3 C U,O L Macro name Constant<br />

throughout<br />

definition<br />

&SYSMAC(n) HLA3 C U,O L Ancestor macro name Constant<br />

throughout<br />

definition<br />

May be used in<br />

Character expressions<br />

Character expressions<br />

Character expressions<br />

Character expressions<br />

Character expressions<br />

Character expressions<br />

Character expressions<br />

Character expressions<br />

Character expressions<br />

Character expressions<br />

N'&SYSLIST in<br />

arithmetic expressions<br />

Arithmetic expressions if<br />

operand is self-defining<br />

term<br />

Character expressions<br />

Character expressions<br />

Arithmetic expressions<br />

Arithmetic expressions<br />

Appendix C. Macro and Conditional Assembly <strong>Language</strong> Summary 417

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

Saved successfully!

Ooh no, something went wrong!