Chapter Contents

Previous

Next
SAS Data File: _loadMembers

SAS Data File: _loadMembers



Unconditionally loads the information about the variables for a SAS Data File object into an SCL list


Syntax
Details
Example

Syntax

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

Argument Type Description
members-list
N specifies the identifier of an SCL list. Each entry in members-list corresponds to a SAS data file variable and is a sublist containing the items in Table 1. 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, _loadMembers creates a new list, fills it with the members of the SAS Data File object, and returns the list identifier. If members-list is a nonzero, then it must be a valid list identifer; otherwise, the program halts wih an error.
'APPEND'
C appends any members to members-list


Details

_loadMembers and _getMembers perform the same function except that _loadMembers loads all variables from a SAS data set. _getMembers enables you to select the variables that are loaded.

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

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


Example

This example retrieves the information for all variables in SASUSER.MYDATA and appends the information for all variables in SASUSER.DATA to VARLIST:

dataclass=loadclass
          ('sashelp.fsp.datafile.class');
dfile1=instance(dataclass);
dfile2=instance(dataclass);
varlist=makelist();
call send (dfile1, '_setup_', 
           'sasuser.mydata');
call send (dfile2, '_setup_', 
           'sasuser.data');
call send (dfile1, '_load_members_',
           varlist);
call send (dfile2, '_load_members_',
           varlist, 'append');


Chapter Contents

Previous

Next

Top of Page

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