Chapter Contents

Previous

Next
SAS Catalog: _loadMembers

SAS Catalog: _loadMembers



Unconditionally loads the information about the members of a SAS Catalog object into an SCL list


Syntax
Details
Example
See Also

Syntax

CALL SEND (catalog-object-id, '_loadMembers', members-list<, 'APPEND TIME'>);

Argument Type Description
members-list N specifies the identifier of an SCL list. Each entry in members-list corresponds to a SAS catalog member and is a sublist containing the items in Table 2. Specify members-list as a numeric variable that is initialized either to 0 or to a valid list identifier. If the value of members-list is 0, then _getMemberscreates a new list, fills it with the members of the SAS Catalog object, and returns the list identifier. If members-list is a nonzero, then it must be valid list identifier; otherwise, the program halts with an error.
'APPEND'
C appends members to members-list.
'TIME'
C specifies that the value of MODIFIED and CREATED dates in the members-list be returned with a datetime value rather than a date value.


Details

_loadMembers and _getMembers perform the same function except that _loadMembers loads all members from a SAS catalog into members-list. The _getMembers method enables you to select the members that are loaded.

The form of members-list is the same as the form specified in _getMembers. See _getMembers.

By default, _loadMembers clears all items from members-list and fills it with the SAS Catalog object members. If 'APPEND' is specified, then the SAS Catalog object members are appended to the existing members-list.


Example

This example retrieves the information for all catalog entries in SASUSER.CAT1 and then appends the information for all catalog entries in SASUSER.CAT2 to ENTRYLIST:

catclass=loadclass('sashelp.fsp.catalog.
                    class');
catobj1=instance(catclass);
catobj2=instance(catclass);
entrylist=makelist();
call send (catobj1, '_setup_', 'sasuser.
           cat1');
call send (catobj2, '_setup_', 'sasuser.
           cat2');
call send (catobj1, '_load_members_',
           entrylist);
call send (catobj2, '_load_members_',
           entrylist, 'append');

See Also

_getMembers


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.