LOADED-MODULES

File 23
Op-Sys z/OS
Statement FIND
Task Returns a list of all modules which have been loaded into the requested address space.

This document covers the following topics:


Common Fields for all Operating Systems

Dictionary Field Name F/L Mu DE Remarks
ERROR-CODE N3      
ERROR-TEXT A58      
NODE N5   D  
NODE-NAME A16   D  
SYSTEM-MESSAGE-CODE A10      
TCB-ADDRESS B4   D Required.
MODULE A8   D  
TYPE A4   D  
LOAD-ADDRESS B4   D  
LENGTH B3   D  

Additional Fields Supported for z/OS

Dictionary Field Name F/L Mu DE Remarks
JOB-NAME A8   D Required.
ENTRY-POINT B4   D  
USE-COUNT N3   D  
PSW B4   D  
STATE A7   D  

Relevant Error Codes

Code Text z/OS
805 Invalid TCB address. X

Field Descriptions

Field Name Type/Length Operating System
ENTRY-POINT (B4)  

Entry point of the module.

Field Name Type/Length Operating System
JOB-NAME (A8)  

Name of the job.

Field Name Type/Length Operating System
LENGTH (B3)  

Length of the module.

Field Name Type/Length Operating System
LOAD-ADDRESS (B4)  

Load address of the module.

Field Name Type/Length Operating System
MODULE (A8)  

Name of load module, interpreted by the fields TYPE, LOAD-ADDRESS and LENGTH.

Field Name Type/Length Operating System
PSW (B4)  

Current Program Status Word for a program (does not apply, if TYPE=LOAD).

Field Name Type/Length Operating System
STATE (A7)  

Run state of the program (does not apply, if TYPE=LOAD). Possible values:

Value Explanation
RUN Program is running.
SUSPEND Program is suspended.
WAIT Program is in wait state.
Field Name Type/Length Operating System
TCB-ADDRESS (B4)  

Address of Task Control Block.

Field Name Type/Length Operating System
TYPE (A4)  

Module type. Possible values:

Value Explanation
IRB Interrupt Request
LOAD Module was loaded.
PRB Program Request.
SIRB System Interrupt Request.
SVRB SuperVisor Request for SVC routines.
TIRB Task Interrupt Request.
Field Name Type/Length Operating System
USE-COUNT (N3)  

Use count of the module.