Because the format of
SAS libraries differs by platform and SAS release, a portable format
of the PDB and SITELIB SAS libraries must be created on the SAS IT
Resource Management 2.7 system. A tool to assist with this task is
included as a member in the SAS IT Resource Management 3.2 SASMISC
directory. This member is called RMPDBEXP.SAS. To export the libraries,
perform the following steps:
-
Transfer the RMPDBEXP.SAS
member from the SAS IT Resource Management 3.2 system into a location
where it can be used from the SAS IT Resource Management 2.7 system.
The RMPDBEXP.SAS member
resides in the following locations on your SAS IT Resource Management
3.2 server tier:
Windows Specifics: <
sasroot>\itmsmvadata\sasmisc
UNIX Specifics: <
sasroot>/misc/itmsmvadata
z/OS Specifics: <
high-level-qualifier>.ITRM.CPMISC
Note: The directory names and locations
for SAS IT Resource Management macros did not change between SAS IT
Resource Management 3.1.1 and SAS IT Resource Management 3.2.
-
Run a SAS session with
the following code:
options nofmterr;
/* include from the appropriate location */
%include ‘rmpdbexp.sas’;
/* activate the PDB and SITELIB in readonly mode */
%cpstart(mode=batch,
access=readonly,
mxglib=MXG-format-library,
mxgsrc=(‘mxg-userid-sourclib’ ‘mxg-mxg-sourclib’),
pdb=<2.7_pdb>,
sitelib=<2.7_sitelib>);
%rmpdbexp(targetLocation=<high-level-qualifer or directory of export>);
Note: The
TARGETLOCATION
parameter of %RMPDBEXP is a writable directory (for UNIX or Windows).
For
z/OS, the
TARGETLOCATION
parameter
is a high-level qualifier in the traditional file system, where a
set of transport files is written out. One transport file is created
for each needed library. The file is named with the library libref
name and an extension of .cpo. Thus, if the user specifies
targetLocation=/itrm/Transports
, the following transport
files are created:
-
/itrm/Transports/ADMIN.cpo
-
/itrm/Transports/COLLECT.cpo
-
-
/itrm/Transports/DETAIL.cpo
-
/itrm/Transports/DICTLIB.cpo
-
/itrm/Transports/MONTH.cpo
-
/itrm/Transports/SITELIB.cpo
-
/itrm/Transports/WEEK.cpo
-
/itrm/Transports/YEAR.cpo
For
z/OS, the created export files can be allocated
in advance if the default space settings are insufficient. The
DCB
parameter for the files must have the following
attributes:
RECFM=FB
,
LRECL=80
, and
BLKSIZE=8000
.