Lists metadata types that are in the metadata API
Category: |
Management Methods
|
CALL SEND(i_api, '_GET_TYPES_', l_rc, l_types, <component>);
|
Parameter |
Type |
Description |
i_api |
Class |
specifies the passed instance of METAAPI.CLASS. See
Using the Metadata API Class. |
l_rc |
N |
specifies the return codes for the method. A nonzero
code indicates failure and means that l_rc is an error list identifier.
For the error list format, see Error Codes. |
l_types |
L |
specifies the returned list of metadata types. List
format: type_id=type_name. |
component |
C |
specifies the passed component name. Optional. Can limit
the returned list to the metadata types within a specific component. |
-
component
-
specifies the passed component name, such
as WHOUSE for the SAS/Warehouse Administrator
component. Optional. Can limit the returned list to the metadata types within
a specific component. The default is _ALL_ (all components).
Components are discussed in How the Metadata API Works. Use
_GET_COMPONENTS_ to return a list
of components that are available at your site.
l_types=makelist();
call send(i_api,'_GET_TYPES_',l_rc,l_types,'WHOUSE');
num_types=listlen(l_types);
if l_rc = 0 then do;
call putlist(l_types);
end; /* if */
else do;
msg=getnitemc(l_rc,'MSG',1,1,'ERROR:
_GET_TYPES_ Failed.');
list_rc=dellist(l_rc);
end; /* else */
l_types=dellist(l_types);
/* returns list - types
* (removed for brevity of example)
*/
l_types(
(WHROOT='Warehouse Root Metadata Type'
WHDWENV='Warehouse Environment'
WHDW='Data Warehouse'
WHTFILE='Text File'
WHTXTCAT='Catalog Text File'
WHTXTFIL='External Text File'
WHSCRFIL='SAS/Connect Script File'
WHEFILE='External File'
WHTABLE='Table'
WHDETAIL='Detail Table'
WHLDETL='Detail Logical Table'
:
WHTBLPRC='Process Output Tables'
WHTBLMAP='Mapping Process Table'
WHTBLUSR='User Exit Process Table'
:
) [47]
_GET_COMPONENTS_
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.