z/OS Assembler - 1.1
Description
The extension provides support for applications written using z/OS Assembler Languages.
Download and installation instructions
The extension will be automatically downloaded and installed when any of the file types listed below are delivered in the source code. It can be managed through the Application → Extensions interface.
Supported file types
| Code type | Supported file extension | Required? |
|---|---|---|
| Assembler | *.asm |
✅ |
| Assembler Macros | *.asmacro, *.mlc |
✅ |
Technology support
The extension analyzes Assembler source code written in the HLASM fixed format (columns 1 to 71, continuation in column 72). The following Assembler and operating system releases are covered:
| Scope | Assembler / OS releases | Supported | Comment |
|---|---|---|---|
| HLASM on z/OS | HLASM R4–R6 on z/OS 1.1 to 3.2, including the z/Architecture instructions added by PTF up to z17 | ✅ | |
| HLASM on OS/390 and MVS/ESA | HLASM R1–R3 on MVS/ESA SP 4–5 and OS/390 1.x–2.10 | ✅ | Same language and OS macros as z/OS. |
| Assembler H V2 legacy source | MVS/XA and MVS/ESA SP 3 (1983–1992) | ✅ | HLASM accepts Assembler H V2 source unchanged. |
| DOS/VSE line | DOS/VS and DOS/VSE Assembler; HLASM on VSE/ESA, z/VSE 3.1–6.2 and VSEn 6.3 | ⚠️ | Programs, calls and SQL queries are analyzed, but VSE system macros (DTFxx, CDLOAD, GETVIS) and VSE JCL are not interpreted. |
| z/TPF (and TPF/ALCS) | Assembler code using TPF macros (ENTRC, FINDC and similar) | ❌ | TPF macros are not interpreted. |
Transactions
Transaction support is derived from metamodel concepts used to build CAST Imaging Blueprint and structural transaction flows. Entry Points start transactions; Exit Points include both output/boundary concepts and Data Entities manipulated by transactions.
| Role | Support | Breakdown |
|---|---|---|
| Entry Point | No direct concept type details | |
| Exit Point |
Unresolved Storage
Data Entities
|
Data version: 1.1.0-funcrel
ISO 5055 Structural Rules
Quality support is based on ISO 5055 structural rules available for the selected extension version.
| Reliability | Maintainability | Security | Performance Efficiency |
|---|---|---|---|
Data version: 1.1.0-funcrel
What results can you expect?
Calls between Assembler programs and to other programs
Links between Assembler Program objects and the programs they call. A call to an Assembler program of the same analysis is linked directly to that Assembler Program object. A call to any other program goes to a z/OS Assembler Call to Generic Program object, which Universal Linker then links to the program of that name: an Assembler program of another analysis unit, or a program written in another language such as COBOL or PL/I.
For example, the following file ASMMAIN.asm is analyzed with the Assembler program ASMUTIL, the COBOL program COBPGM1 and the PL/I program PLIPGM1. NOPGM is not part of the analysis:
*---------------------------------------------------------------------*
* ASMMAIN: entry program, calls one program of each kind *
* ASMUTIL Assembler -> called directly (same analysis) *
* COBPGM1 COBOL -> resolved at application level *
* PLIPGM1 PL/I -> resolved at application level *
* NOPGM not delivered -> unresolved *
*---------------------------------------------------------------------*
ASMMAIN CSECT
STM 14,12,12(13)
LR 12,15
USING ASMMAIN,12
CALL ASMUTIL
CALL COBPGM1
CALL PLIPGM1
CALL NOPGM
L 13,4(13)
LM 14,12,12(13)
BR 14
END
- ASMMAIN calls ASMUTIL directly, since ASMUTIL is an Assembler program of the same analysis.
- ASMMAIN calls the z/OS Assembler Call to Generic Program objects COBPGM1, PLIPGM1 and NOPGM. Universal Linker links COBPGM1 to the COBOL program and PLIPGM1 to the PL/I main procedure of that name. NOPGM stays unresolved.
In CAST Imaging, a z/OS Assembler Call to Generic Program object that is linked to a called program may be merged with that program, so ASMMAIN is shown as calling COBPGM1 and PLIPGM1 directly:

An unresolved z/OS Assembler Call to Generic Program object, such as NOPGM, is shown as its own object:

Calls from COBOL and PL/I programs to Assembler programs
Links from programs of other languages to Assembler Program objects. The analyzer of the calling program cannot resolve a call to an Assembler program, so it links the calling program to an object for the unresolved program: a COBOL program prototype for the Mainframe Analyzer, a PLI Missing Program for the PL/1 Analyzer. Universal Linker then links that object to the Assembler program of that name.
In the sample above, COBPGM1.cbl calls ASMUTIL with a CALL statement:
IDENTIFICATION DIVISION.
PROGRAM-ID. COBPGM1.
* CALLED BY ASMMAIN, CALLS THE ASSEMBLER PROGRAM ASMUTIL
PROCEDURE DIVISION.
CALL 'ASMUTIL'.
GOBACK.
and PLIPGM1.pli calls ASMUTIL, declared as an Assembler entry:
/* CALLED BY ASMMAIN, CALLS THE ASSEMBLER PROGRAM ASMUTIL */
PLIPGM1: PROCEDURE OPTIONS(MAIN);
DCL ASMUTIL ENTRY OPTIONS(ASM);
CALL ASMUTIL;
END PLIPGM1;
In the first image above, CAST Imaging merges the COBOL program prototype and the PLI Missing Program with ASMUTIL, so COBPGM1 and PLIPGM1 are shown as calling ASMUTIL directly.
Assembler programs loaded with EXEC CICS LOAD PROGRAM
The same applies to a program loaded with EXEC CICS LOAD PROGRAM. Here the COBOL program prototype ASMLOAD is shown between the COBOL program and the Assembler program:

The above result is produced from the following COBOL program COBCICS.cbl, analyzed with the Assembler program ASMLOAD:
IDENTIFICATION DIVISION.
PROGRAM-ID. COBCICS.
* CICS PROGRAM LOADING THE ASSEMBLER PROGRAM ASMLOAD
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-PTR USAGE POINTER.
PROCEDURE DIVISION.
EXEC CICS LOAD PROGRAM('ASMLOAD') SET(WS-PTR) END-EXEC.
EXEC CICS RETURN END-EXEC.
SQL queries
Links between Assembler Program objects and SQL Query objects:
The above result is produced from the following code snippet (EXEC SQL statement) in the file SCLM501C.asm:
...
EXEC SQL X
SELECT X
ORDR_ID, X
COUNT(*) X
INTO X
:DL51C001, X
:DL51CF02 X
FROM LM_ELEC_PAYMNT_PLCY X
WHERE ( X
ORDR_ID = :DL51C001 X
) X
GROUP BY X
ORDR_ID
QDBXX5RE
...
Objects
Links
z/OS Assembler links — UA analysis
z/OS Assembler links — Application level (cross-technology)
These links are not created by this extension itself: Universal Linker, one of its dependencies, creates them at application level by matching the name of each called program, ignoring case, with the programs of the application.
z/OS Assembler links — Missing SQL objects
Quality rules
z/OS Assembler SQL Query objects benefit from the quality rules that SQL Analyzer computes on client-side SQL queries, see SQL Analyzer - Client Side Support.
Known limitations
- Program calls:
- Only a
CALL namestatement (with an uppercaseCALLoperation code) and aPROGRAM('name')operand with a quoted name are resolved. - Dynamic calls are not resolved:
CALL (15)and other calls through a register or a variable, the list formCALL ,...,MF=L, and an unquotedPROGRAM(name). LINK EP=,XCTL EP=,LOAD EP=andATTACHmacros are not resolved.- An Assembler program is named after its file. A call to a
CSECTorENTRYname that differs from the file name is not resolved to that program.
- Only a
- IMS/DB: calls to
CBLTDLI,ASMTDLIorAIBTDLIare handled as calls to a program of that name.EXEC DLIstatements are not analyzed, and no link to IMS PCBs, PSBs or segments is created. - CICS: only the program named in
PROGRAM('name')is resolved. Files, transactions (TRANSID), TS and TD queues and maps used inEXEC CICScommands are not resolved. - Files: no object or link is created for VSAM, QSAM or sequential file accesses (
DCB,ACB,OPEN,GET,PUTand similar). - Macros:
- Macros are not expanded.
- A
.asmacrofile produces a z/OS Assembler Macro object only: its calls and SQL statements are not analyzed. - A system macro or a
COPYmember whose source is not delivered produces no object.
- SQL: an
EXEC SQLstatement must be written in uppercase and must not have a label. A dynamic SQL statement (PREPARE,EXECUTE IMMEDIATEwith a host variable) produces an SQL Query object without links to tables.