Skip to main content

Module unit

Module unit 

Source
Expand description

The run unit: every program a run calls, sharing one memory as they share an address space on z/OS. A called program keeps its WORKING-STORAGE and open files from one CALL to the next until it is cancelled. A reference or pointer can reach anywhere in this memory, but never outside it.

Structs§

Library
Where CALL finds programs: the other programs of the first program’s source, then program libraries searched by member name.
Loaded
RunUnit

Enums§

Clock
LoadError

Constants§

ADDRESS_BASE
A pointer’s value is its offset into run-unit memory plus this, so that no item’s address is NULL.
MAX_DEPTH
How deep PERFORMs and CALLs may nest before the run abends, rather than exhaust the stack.
RETURN_CODE
RETURN-CODE, a halfword shared by every program in the run unit.

Functions§

civil
Calendar fields of a UTC time: year, month, day, hour, minute, second, day of year (1-based), and day of week (1 Monday to 7 Sunday).