The %RMDMPKG macro packages
the physical libraries for a single SAS IT Resource Management 3.1.1,
3.2, 3.21, or 3.3 IT data mart. The macro performs this task by scanning
the specified IT data mart for SAS libraries and executing PROC CPORT.
PROC CPORT creates transport files for each library. The transport
files are then written to the specified output package directory.
For information, see Migration Macros.
Each SAS IT Resource
Management 3.1.1, 3.2, 3.21, or 3.3 IT data mart requires a separate
invocation of %RMDMPKG that points to a separate output package directory.
(The
PKGDIR
parameter specifies the
separate output packages.) Do not point to the same output package
directory for different IT data marts.
The %RMDMPKG macro can
be run in Report mode first, so that only a report of what would be
done is produced. (The default mode of execution is to run in Report
mode.) Here is an example of using the %RMDMPKG macro for Windows
to package a SAS IT Resource Management 3.1.1 data mart:
%RMDMPKG(
DATAMART=NTSMFdatamart,
METAPASS=mypassword,
METAPORT=8561,
METASERVERr=my.metadata.server,
METAUSER=admin,
PKGDIR=c:\migration\311packages\NTSMFdatamart,
REPOS=Foundation
);
The value of the
DOPACKAGES
parameter
defaults to
NO
so it does not have
to be specified in the macro invocation. Thus, the preceding invocation
of %RMDMPKG produces only a report of what packages would be created
if the
DOPACKAGES
parameter were set
to
YES
. If the value of the
DOPACKAGES
parameter
is set to
YES
, then the macro packages
all the physical SAS libraries that are found in the NTSMFdatamart.
The macro writes the transport files to
c:\migration\311packages\NTSMFdatamart
.
Here is an example of
the %RMDMPKG macro for
z/OS:
%RMDMPKG(
DATAMART=SMFdatamart,
METAPASS=mypassword,
METAPORT=8561,
METASERVER=my.metadata.server,
METAUSER=admin,
PKGDIR=MIG.311PKG.SMFDM,
DOPACKAGES=YES,
REPOS=Foundation
);
For
z/OS, the
PKGDIR
parameter
can specify a PDS, PDSE, or zFS directory.
Note: The %RMDMPKG macro supports
packaging SAS data sets and catalogs, but not SAS views.
The %RMDMPKG macro can
be invoked in SAS interactive or batch mode. However, if the physical
data libraries are large or numerous, running in batch mode is more
practical. To rerun the macro in the event of an error, clear out
the output directory that is specified by the
PKGDIR
parameter
and rerun the macro. This macro does not update any metadata on the
SAS Metadata Server.