SAS/Warehouse Administrator Metadata API- P6: The operating system and SAS version that are associated with a given host are now available through the WHHOST property. For example, you can write a SAS/Warehouse Administrator add-in that reads the host metadata that is associated with a given data store and then uses these values to generate code that is appropriate for the operating system and SAS version. | 22 GET COMPONENTS Chapter 2 l_cols getniteml l_meta COLUMNS num_cols listlen l_cols do i 1 to num_cols while l_rc 0 l_col getiteml l_cols i Delete each column. call send i_api _DELETE_METADATA_ l_rc l_col if l_rc ne 0 then do msg getnitemc l_rc MSG 1 1 ERROR _DELETE_METADATA_ FAILED put msg list_rc dellist l_rc end if end do l_meta dellist l_meta Y See Also _ADD_METADATA_ _UPDATE_METADATA_ GET_COMPONENTS_ Lists all components that are defined in the metadata API Category Management Methods Syntax CALL SEND i_api _GET_COMPONENTS_ l_rc l_components Metadata API Class A _GET_CURRENT_REPOSITORIES. 23 Parameters Parameter Type Description i_api Class specifies the passed instance of the . See Using the Metadata API Class on page 14. 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 Conventions on page 14. l_components L specifies the returned list of all components that are defined in the metadata API. List format comp_id comp_name. Components are discussed in How the Metadata API Works on page 5. Using GETCOMPONENTS A component is a group of related metadata types. One use for the _GET_COMPONENTS_ method is to get a component ID that you can pass to the _GET_TYPES_ method in order to list the metadata types for a particular component. Example List All Components Defined for the Metadata API call send i_api _GET_COMPONENTS_ l_rc l_components A list of components is returned. l_components WHOUSE SAS Warehouse Administrator 3 See Also _GET_TYPES_ GET_CURRENT_REPOSITORIES_ Lists all currently active primary metadata repositories Category Repository Methods Syntax CALL SEND i_api _GET_CURRENT_REPOSITORIES_ l_rc l_reps type 24 GET CURRENT REPOSITORIES Chapter 2 Parameters Parameter Type Description i_api Class specifies the passed instance of the . See Using the Metadata API Class on page 14. l_rc N specifies the return codes for the .