Skip to main content

Software > Software Development >

High Level Assembler (HLASM) and Toolkit Feature

Performance information

February 2003: New Structured Programming Macros released!

The widely anticipated enhancements to the Structured Programming Macros for the HLASM Toolkit Feature have been released in APAR PQ69812.

Enhancements to the macros include:

  • Macros now check that they are used within the correct structure, otherwise a severity level 8 MNOTE is issued.
  • You have the option of generating either Branch Relative instructions or Branch On Condition instructions.
  • The new ELSEIF macro allows you to put multiple IF structures within a single ENDIF statement. (Note: An MNOTE severity level 8 message is generated if more than one ELSE statement appears in an IF structure.)
  • Changes to the SELECT structure allow you to build a SELECT with no operands, followed by WHEN macros with IF-style operands. (Note: An MNOTE severity level 4 message is generated if a SELECT group does not contain a WHEN statement.)
  • The DO macro now accepts a label for the DO structure in the name entry of the DO statement.
  • The new LEAVE macro exits either the current DO structure or specified outer DO structure. If an operand is supplied on the LEAVE macro, it must be the label of the current or an outer DO in the same structure.
  • The new ITERATE macro performs another iteration of either the current DO structure or a specified outer DO structure.
  • The UNTIL and WHILE operands of the DO statement now accept compound predicates of the same format as accepted on the IF statement, with the exception that the CC= keyword is not allowed.
  • The DOEXIT macro can be used from within other structures within the current DO structure.
  • All global variables are prefixed with ASMA_ so as to reduce collisions with user defined global variables.
  • Symbolic labels are generated of the form: #@LBnn DC 0H

The sample program, ASMTSAMP, has been modified to include examples of the new Structured Programming Macros.  The CMS verification EXEC, T5696234, has been modified to successfully disassemble section TEST in the modified ASMTSAMP.

Ordering Information

 Product: HLASM R4 and HLASM Toolkit Feature R4
 APAR Number: PQ69812
 PTF Numbers:

 VM - UQ73993
 MVS - UQ73992
 VSE - UQ73994