Previous Page | Next Page

Metadata API Class

_GET_TYPES_



Lists metadata types that are in the metadata API
Category: Management Methods

Syntax
Parameters
Details
Example: Get All Types for the WHOUSE Component
See Also

Syntax

CALL SEND(i_api, '_GET_TYPES_', l_rc, l_types, <component>);

Parameters

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.


Details

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.


Example: Get All Types for the WHOUSE Component

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]


See Also

_GET_COMPONENTS_

Previous Page | Next Page | Top of Page