RETRIEVE_CATALOG

Retrieves a catalog from a package

Syntax

CALL RETRIEVE_CATALOG(entryId, libname, memname, rc);

Required Arguments

entryId
identifies the catalog entry.
Type:Numeric, Input
libname
specifies the SAS library that will contain the retrieved catalog.
Type:Character, Input
memname
names the retrieved catalog.
Type:Character, Input
rc
receives a return code.
Type:Numeric, Output

Details

If the memname parameter is blank, then the RETRIEVE_CATALOG CALL routine creates the catalog by using the original member name as it was defined at publish time.

Example: Using RETRIEVE_CATALOG

The following example retrieves a catalog from the package and creates the catalog WORK.TMPCAT.
lib = 'work';
mem = 'tmpcat';
CALL RETRIEVE_CATALOG(entryId, lib, mem, rc);