A repository's state is computed from both the repository's registered
access mode and the metadata server's state. To change the repository's state,
submit the UpdateMetadata method with PROC METADATA. The example code re-registers
the repository with a different access mode, causing the repository's state
to be recomputed. To properly execute this code, the repository manager must
be in a read-write state. For example, if the metadata server is paused offline,
the repository manager will be offline and cannot be updated with this code.
The value of the Access= attribute can be any of the following integers:
Access= Attribute |
Computed Repository State |
0 |
online |
1 |
readonly |
2 |
admin |
4 |
offline |
|
proc metadata
in="<UpdateMetadata>
<Metadata>
<RepositoryBase id='A0000001.A58LN5R2' Access='0'/>
</Metadata>
<NS>repos</NS>
<Flags>268435456</Flags>
</UpdateMetadata>";
run;
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.