Detaches from a secondary repository
Category: |
Repository Methods
|
CALL SEND(i_api, '_CLEAR_SECONDARY_REPOSITORY_', l_rc, repos_id);
|
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. |
repos_id |
C |
specifies the passed repository ID that specifies the
repository that is to be detached from. For details about the repos_id parameter, see Identifying Metadata. |
When you only want to be attached to the
primary repository, use the _CLEAR_SECONDARY_REPOSITORY_ method to detach
from any secondary repositories.
Use the _GET_METADATA_ method to return the list of
possible secondary repositories. Specify the REPOSITORIES property in the l_meta list, and use the returned metadata identifier from the _SET_PRIMARY_REPOSITORY_
method. See the code examples under _SET_PRIMARY_REPOSITORY_ and _SET_SECONDARY_REPOSITORY_
.
/* sec_repos_id is the REPOSID of the secondary repository that is
* to be detached from.
*/
call send(i_api, '_SET_SECONDARY_REPOSITORY_', l_rc, sec_repos_id);
_GET_METADATA_,
_SET_PRIMARY_REPOSITORY_
_SET_SECONDARY_REPOSITORY_
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.