Previous Page | Next Page

Metadata API Class

_CLEAR_SECONDARY_REPOSITORY_



Detaches from a secondary repository
Category: Repository Methods

Syntax
Parameters
Using _CLEAR_SECONDARY_REPOSITORY_
Example: Detach from a Secondary Repository
See Also

Syntax

CALL SEND(i_api, '_CLEAR_SECONDARY_REPOSITORY_', l_rc, repos_id);

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.
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.


Using _CLEAR_SECONDARY_REPOSITORY_

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_ .


Example: Detach from a 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);


See Also

_GET_METADATA_, _SET_PRIMARY_REPOSITORY_ _SET_SECONDARY_REPOSITORY_

Previous Page | Next Page | Top of Page