CATALOGUED() |
![]() ![]() ![]() |
The CATALOGUED() function determines whether a subroutine can be found using the search process described for the CALL statement.
Format
CATALOGED(name)
where
The CATALOGUED() function returns
Where a subroutine name appears in more than one catalogue form, the search order is as in the list above and the value returned reflects the first entry found.
The return value from the CATALOGUED() function can be treated as a boolean (true/false) value if the application merely wants to determine if a subroutine is catalogued and does not need to know in which format.
Example
IF NOT(CATALOGUED('MYPROG')) THEN DISPLAY 'Not catalogued'
This statement displays a message if MYPROG is not in the system catalogue.
See also: |