Because the format of
SAS libraries differs by operating platform and SAS release, a portable
format of the PDB and SITELIB SAS libraries must be created on the
SAS IT Resource Management 2.6 or 2.7 system. A tool to assist with
this task is included as a member in the SAS IT Resource Management
3.21 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.21 system into a location
where it can be used from the SAS IT Resource Management 2.6 or 2.7
system.
The RMPDBEXP.SAS member
resides in the following locations on your SAS IT Resource Management
3.21 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. The
directory names and locations for SAS IT Resource Management macros
did change for SAS IT Resource Management 3.21.
-
For Windows or UNIX
operating environments, 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.6_pdb>|<2.7_pdb>,
sitelib=<2.6_sitelib>|<2.7_sitelib>);
%rmpdbexp(targetLocation=<directory of export>);
For
z/OS operating environments,
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.6_pdb>|<2.7_pdb>,
sitelib=<2.6_sitelib>|<2.7_sitelib>);
%rmpdbexp(targetLocation=<high-level-qualifer>);
Note: The
TARGETLOCATION
parameter of %RMPDBEXP is a writable directory (for UNIX or Windows).
For
z/OS, the
TARGETLOCATION
parameter
only supports 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 library that is needed. The file is named with
the 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
Note: For
z/OS, the export files
that are created 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
.