Returns metadata type name when it is passed a type ID
Category: |
Management Methods
|
CALL SEND(i_api, '_GET_TYPE_NAME_', l_rc, type_id, type_name);
|
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. |
type_id |
C |
specifies the passed type ID of the metadata type for
which you want the name. For more information on type ID, see Identifying Metadata. |
type_name |
C |
specifies the returned name of the specified metadata
type. |
-
type_id
-
specifies the passed type ID of the metadata
type for which you want the name. For example, SAS/Warehouse Administrator
has the WHDETAIL type. If an invalid type ID is passed, the returned type
name is set to blank, and a nonzero return code is returned.
-
type_name
-
specifies the returned name of the specified
metadata type. For example, if you pass the type ID WHDETAIL, the name "Detail
Table" would be returned. A blank value is returned if an invalid metadata
type name is supplied.
type_id='WHDETAIL';
type_name = _blank_;
call send(i_api,'_GET_TYPE_NAME_',
l_rc,type_id,type_name);
if l_rc = 0 then do;
put type_id= type_name=;
end; /* if */
else do;
msg=getnitemc(l_rc,'MSG',1,1,
'ERROR: _GET_TYPE_NAME_ Failed.');
list_rc=dellist(l_rc);
/* Output in log */
WHDETAIL=Detail Table
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.