SAS/Warehouse Administrator 2.3 Metadata API- P5

SAS/Warehouse Administrator Metadata API- P5: 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. | Metadata API Class A _ADD_METADATA. 17 Parameters Parameter Type Description i_api Class specifies the passed instance of . 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 Error Codes on page 14. l_meta L specifies the passed metadata property list for the object that is to be added. For the general format of this list see Metadata Property List on page 14. Details l_meta specifies the passed metadata property list for the object that is to be added. To create a new instance of a particular type the ID value in l_meta should be . If an instance ID is passed it is ignored and replaced with a new instance ID upon successful addition to the repository. Not all metadata types type IDs can be added. The documentation for each metadata type indicates whether it can be added or not. _ADD_METADATA_ will return an error of any type that cannot be added. Using _ADD_METADATA_ Be sure to check the return code of a write method call. A nonzero return indicates that a failure has occurred while trying to write to the metadata. If a nonzero return code is returned none of the changes that are indicated by this method call will be made. Example Add a New Detail Table l_meta makelist Set which group to add this new table to. l_groups makelist l_group makelist l_groups insertl l_groups l_group -1 l_group insertc l_group group_id -1 ID l_meta insertl l_meta l_groups -1 GROUP Use the same repository id as the group. 18 ADD METADATA Chapter 2 repos_id scan group_id 1 . new_type repos_id .WHDETAIL l_meta insertc l_meta new_type -1 ID Set the name for the display. l_meta insertc l_meta NEW TABLE -1 NAME Set the desc for the display. l_meta insertc l_meta New table added through API -1 DESC Set an icon for the display. l_meta insertc l_meta -1 ICON Define a column. The COLUMNS .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
126    87    4    16-05-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.