Previous Topic: KEYVAL()Next Topic: LOCATE()


LOADIMOD()

In batch mode (SRVBATCH), this function enables an IMOD to load other IMODs and make them available for execution as external subroutines.

Syntax

failed_list = LOADIMOD(iset,namelist)

Parameters

failed_list

Returns a blank-delimited list of IMODs that could not be loaded (or other error messages).

iset

The ISET name of the IMOD file to be accessed.

namelist

List of IMODs to be loaded into storage, separated by blanks. The maximum list length is 256 characters.

Usage Notes

Return Codes

101 - 102

ARG n MISSING OR INVALID

121

A list of the IMODs not loaded, separated by blanks.

123

OPEN FAILED

122

FUNCTION ONLY VALID IN BATCH MODE

Example

loadimod('GSSTECH',asid_00 not_here hello) == 'NOT_HERE'
                              /* rc==121                       */
                              /* This runs in batch only       */
                              /* IMOD 'not_here' does not exist */

                     /* Following messages appear in ISRVLOG:  */
/* 11:24:38 SRV282 Loading IMOD's from GSSTECH File Version:
                                                     02.03.02  */
/* 11:24:38 SRV168 ASID_00   loaded. 05664D38 EWF.IMOD.GSSTECH */
/* 11:24:38 SRV168 HELLO     loaded. 056649F8 EWF.IMOD.GSSTECH */