Previous Topic: $SRV_PDS_LIST

Next Topic: $SRV_SYS_STAT

$SRV_READ_IMOD

The $SRV_READ_IMOD routine returns the source code for an IMOD on the stack.

Syntax

Use this syntax:

CALL $SRV_READ_IMOD name iset

Parameters

The $SRV_READ_IMOD service routine takes these parameters.

name

Name of the desired IMOD.

iset

Name of the ISET that contains the IMOD. This ISET must be defined to the ISERVE address space and the ISET itself must be accessible under the user ID of the caller.

Usage Notes

Returned Data

Successful completion is indicated by the RC special variable being set to 0 and a null string returned as the result. Errors are indicated by a non-zero value in RC and an error message returned as the result.

The source text is returned in the current stack, one line per record.