Chapter Contents |
Previous |
Next |
SAS/AF Software: Class Dictionary |
You can create a SAS Catalog Entry object. When you instantiate a SAS Catalog Entry object, only the object identifier is created. You then add information about a SAS catalog entry to the object. This step is referred to as initializing the object. To initialize a SAS Catalog Entry object, use the _setup method. This example initializes the SAS Catalog Entry object, CATENTOBJ, to SASUSER.PROFILE.PASSIST.SLIST:
cateclass=loadclass('sashelp.fsp.catentry. class'); catentobj=instance(cateclass); call send (catentobj, '_setup_', 'sasuser. profile.passist.slist');
Note: Unless an example includes LOADCLASS, INSTANCE, and _setup, the
example assumes that you have instantiated a SAS Catalog Entry object and
initialized it using these statements.
If you list the contents of CATENTOBJ, you see:
( _class=2663 DESC='SAS Catentry Class' FULLNAME='SASUSER.PROFILE.PASSIST.SLIST' DESCRIPTION='User profile' LIBRARY=<invalid list id>[0] CATALOG=<invalid list id>[0] ATTRIBUTES=<invalid list id>[0] )[2687]
LIBRARY, CATALOG, and ATTRIBUTES are list identifiers. Notice that at
this point, they have a value of
0
, an invalid list identifier. The reason is that
these values are not initialized by _setup. Use _getLibrary, _getCatalog,
and _getAttributes to initialize these lists.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.