Assign a file reference.The
FILENAME statement assigns a libref to an external SAS library that
contains a permanent SAS catalog.
filename asx 'C:\TableServer\asexport.xml';
Specify metadata values.
proc ASEXPORT meta=
(
user='username' password='password'
server='localhost'
port=port_number
repos='repositoryID'
filter=(DOMAINS "*"
USERS "*"
LOGINS "Login[Domain/AuthenticationDomain
[@OutboundOnly='0']]")
)
as=
(
server='localhost'
user='username'
pass='password'
port=port_number
filter=(DOMAINS "domain=(domain_names)"
USERS "enabled=TRUE subject=(ADMUSER,
Shared_Login_Manager, tsadm, 'USER%')"
LOGINS "(login IDs for included domains)")
)
verbose
tracefile='C:\TableServer\asexport.croc' traceloc=SQL
traceflags='319'
retain
out=asx
;
Create explicit singleton matches between these two domains.
match singleton DOMAIN / criteria="as.domains.name_n='LOCAL' and
meta.domains.name_n='domain_name'" log;
match singleton DOMAIN / criteria="as.domains.name_n='UNIX' and
meta.domains.name_n='domain_name'" log;
Auto-match domains by name.
Add remaining unmatched domains.
Perform explicit user matching.Attempt at least one user that has a matching Login.
Nothing should match.
match singleton USER / criteria="as.users.name_n='SHARED_LOGIN_MANAGER'
and meta.users.name_n='FEDERATION SERVER SHARED LOGIN MANAGER'" log;
match singleton USER / criteria="as.users.name_n='USER1' and
meta.users.name_n='TSADM'" log;
match singleton USER / criteria="as.users.name_n='TSADM' and
meta.users.name_n='TSADM'" log;
Auto-match users by FQLN.
Add remaining unmatched users.
List everything for review.
Create an input file (per noforward) for proc METADATA
that we can review.
export / noforward noverbose;
End processing of PROC ASEXPORT.