Macros That Are Used for the Migration Process

Introduction to Migration Macros

The following macros are used in the migration process for SAS IT Resource Management:
  • %RMDMPKG
  • %RMDMPATH
  • %RMDMUPKG

%RMDMPKG

%RMDMPKG Macro Syntax

%RMDMPKG
(DATAMART=name of the IT data mart to use
,METAPASS=password for the metauser
,METAPORT=service or port for the metadata server
,METASERVER=host-name or IP address for the metadata server
,METAUSER=user ID for metadata server access and definition
,PKGDIR=output directory to contain the CPORT files
<,DISP=OLD><,DOPACKAGES=YES | NO>
<,DOREPORT=YES | NO>
<,IDXNAME=PKGIDX | alternate filename>
<,REPOS=ITMS | metadata repository>
<,STAGEDLIBS=YES | NO>
<,_RC=macro variable name to hold return code>
);

%RMDMPKG Required Arguments

DATAMART=name of the IT data mart to use
specifies the name of the IT data mart that is to be used. A value for this parameter is required.
METAPASS=password for the metauser
specifies the password for connecting the user ID to the metadata server. A value for this parameter is required.
METAPORT=service or port for the metadata server
specifies the TCP/IP service name or port number that the metadata server is listening on. A value for this parameter is required.
METASERVER=host-name or IP address for the metadata server
specifies the host name or TCP/IP address of the metadata server. A value for this parameter is required.
METAUSER=user ID for metadata server access and definition
specifies the user ID for accessing the metadata server. A value for this parameter is required. The user ID should be configured according to the SAS IT Resource Management configuration and installation instructions. These instructions are available from the SAS Install Center at http://support.sas.com/documentation/installcenter/index.html.
PKGDIR=output directory to contain the CPORT files
specifies the directory that is to contain the CPORT files for all the SAS libraries in the IT data mart. A value for this parameter is required. This directory must exist before running the %RMDMPKG macro. In addition, the directory must have enough disk space available to accommodate all IT data mart physical data sets in transport format. For Windows, UNIX, and zFS on z/OS, this is a standard directory. For a traditional z/OS file system, this file should be a PDS or PDSE.

%RMDMPKG Optional Parameters

DISP=OLD
specifies the disposition of input libraries on z/OS only. Warning messages might occur if the disposition is set to SHR. A value for this parameter is optional. The default value for this parameter is OLD.
DOPACKAGES=YES | NO
specifies that the packages are to be created. A value for this parameter is optional. The default value for this parameter is NO.
DOREPORT=YES | NO
specifies that a report is to be produced that lists that SAS libraries were packaged. A value for this parameter is optional. The default value for this parameter is YES.
IDXNAME=PKGIDX | alternate filename
specifies the name of the file that is to be used as an index of the files that are packaged. A value for this parameter is optional. It is required only if there are naming conflicts. The default name of this file is pkgidx.cpt on Windows, UNIX, and zFS on z/OS. The default name is PKGIDX on a traditional z/OS file system.
REPOS=ITMS | metadata repository
specifies the metadata repository that contains the IT data mart. A value for this parameter is optional. The default value for this parameter is ITMS.
STAGEDLIBS=YES | NO
specifies whether staged libraries should be packaged. A value for this parameter is optional. The default value for this parameter is NO.
_RC=macro variable name to hold return code
specifies the name of a macro variable that holds the return code value from the execution of this macro. A value for this parameter is optional. This parameter is not case sensitive.

%RMDMPATH

%RMDMPATH Macro Syntax

%RMDMPATH(
DATAMART=name of the IT data mart to use
,METAPASS=password for the metauser
,METAPORT=service or port for the metadata server
,METASERVER=host-name or IP address for the metadata server
,METAUSER=user ID for metadata server access and definition
,NEW_ROOTPATH=new root path value
,OLD_ROOTPATH=old root path that is to be renamed
<,DEFAULT_ ROOTPATH =YES | NO>
<,DOREPORT=YES | NO>
<,DORENAMES=YES | NO>
<,REPOS=ITMS | metadata repository>
<,_RC=macro variable name to hold return code>
);

%RMDMPATH Required Arguments

DATAMART=name of the IT data mart to use
specifies the name of the IT data mart that is to be used. A value for this parameter is required.
METAPASS=password for the metauser
specifies the password to use for connecting the user ID to the metadata server. A value for this parameter is required.
METAPORT=service or port for the metadata server
specifies the TCP/IP service name or port number that the metadata server is listening on. A value for this parameter is required.
METASERVER=host-name or IP address for the metadata server
specifies the host name or TCP/IP address of the metadata server. A value for this parameter is required.
METAUSER=user ID for metadata server access and definition
specifies the user ID for accessing the metadata server. A value for this parameter is required. The user ID should be configured according to the SAS IT Resource Management configuration and installation instructions. These instructions are available from the SAS Install Center at http://support.sas.com/documentation/installcenter/index.html.
NEW_ROOTPATH=new root path value
specifies the new root path value that replaces the old root path value in all of the pathnames for SAS libraries. A value for this parameter is required and it is case sensitive.
OLD_ROOTPATH=old root path that is to be renamed
specifies the old root path value that is to be renamed. This parameter is matched with the pathnames of all SAS libraries in the IT data mart, starting in column 1 of the pathname. A value for this parameter is required and it is case sensitive.

%RMDMPATH Optional Parameters

DEFAULT_ROOTPATH =YES | NO
specifies that the default root path associated with the IT data mart is to be renamed in addition to the pathnames associated with SAS libraries. A value for this parameter is optional. The default value for this parameter is YES.
DORENAMES=YES | NO
specifies that the SAS libraries are to be renamed. A value for this parameter is optional. The default value for this parameter is NO.
DOREPORT=YES | NO
specifies that a report be produced that details what SAS libraries were renamed. A value for this parameter is optional. The default value for this parameter is YES.
REPOS=ITMS | metadata repository
specifies the metadata repository that contains the IT data mart. A value for this parameter is optional. The default value for this parameter is ITMS.
_RC=macro variable name to hold return code
specifies the name of a macro variable that holds the return code value from the execution of this macro. A value for this parameter is optional. This parameter is not case sensitive.

%RMDMUPKG

%RMDMUPKG Macro Syntax

%RMDMUPKG (
DATAMART=name of the IT data mart to use
,METAPASS=password for metauser
,METAPORT=service or port for the metadata server
,METASERVER=host-name or IP address for the metadata server
,METAUSER=user ID for metadata server access and definition
,PKGDIR=output directory to contain the CPORT files
<,DOPACKAGES=YES | NO>
<,DOREPORT=YES | NO>
<,FILEDEVICE=z/OS type of device>
<,FILESPACEPRIMARY=z/OS primary space allocation>
<,FILESPACESECONDARY=z/OS secondary space allocation>
<,FILEUNIT=z/OS unit of allocation>
<,IDXNAME=PKGIDX | alternate filename>
<,LIBNAMEOPTIONS=z/OS LIBNAME options>
<,REPOS=ITMS | metadata repository>
<,_RC=macro variable name to hold return code>
<,SMU=YES | NO>
);

%RMDMUPKG Required Parameters

DATAMART=name of the IT data mart to use
specifies the name of the IT data mart that is to be used. A value for this parameter is required.
METAPASS=password for metauser
specifies the password for connecting the user ID to the metadata server. A value for this parameter is required.
METAPORT=service or port for the metadata server
specifies the TCP/IP service name or port number that the metadata server is listening on. A value for this parameter is required.
METASERVER=host-name or IP address for the metadata server
specifies the host name or TCP/IP address of the metadata server. A value for this parameter is required.
METAUSER=user ID for metadata server access and definition
specifies the user ID for accessing the metadata server. A value for this parameter is required. The user ID should be configured according to the SAS IT Resource Management configuration and installation instructions. These instructions are available from the SAS Install Center at http://support.sas.com/documentation/installcenter/index.html.
PKGDIR=output directory to contain the CPORT files
specifies the directory that is to contain the CPORT files for all of the SAS libraries in the IT data mart. A value for this parameter is required. This directory must exist before running the %RMDMUPKG macro. In addition, it must have enough disk space available to accommodate all IT data mart physical data sets in transport format. For Windows, UNIX, and zFS on z/OS, this is a standard directory. For a traditional z/OS file system, this file should be a PDS or PDSE.

%RMDMUPKG Optional Parameters

DOPACKAGES=YES | NO
specifies that the packages are to be created. A value for this parameter is optional. The default value for this parameter is NO.
DOREPORT=YES | NO
specifies that a report be produced that details what SAS libraries were packaged. A value for this parameter is optional. The default value for this parameter is YES.
FILEDEVICE=z/OS type of device
specifies the UNIT allocation parameter to use in the allocation of IT data mart libraries in a z/OS traditional file system such as SYSDA. A value for this parameter is optional. If it is not specified, it defaults to the value of the FILEDEV SAS system option.
FILEUNIT=z/OS unit of allocation
specifies the unit of space allocation to use in the allocation of IT data mart libraries in a z/OS traditional file system such as CYL. A value for this parameter is optional. If it is not specified, then it defaults to the value of the FILEUNIT SAS system option.
FILESPACEPRIMARY=z/OS primary space allocation
specifies the primary space allocation to use in the allocation of IT data mart libraries in a z/OS traditional file system. A value for this parameter is optional. If it is not specified, then it defaults to the value of the FILESPPRI SAS system option.
FILESPACESECONDARY=z/OS secondary space allocation
specifies the secondary space allocation to use in the allocation of IT data mart libraries in a z/OS traditional file system. A value for this parameter is optional. If it is not specified, then it defaults to the value of the FILESPSEC SAS system option.
IDXNAME=PKGIDX | alternate filename
specifies the name of the file that is to be used an index of the files that are packaged. A value for this parameter is optional. It must be supplied only if there are naming conflicts. The default name is pkgidx.cpt on Windows, UNIX, and zFS on z/OS. The default name is PKGIDX on traditional z/OS file system.
LIBNAMEOPTIONS=z/OS LIBNAME Options
specifies any valid LIBNAME options to use in the allocation of IT data mart libraries in a z/OS traditional file system. A value for this parameter is optional.
REPOS=ITMS | metadata repository
specifies the metadata repository that contains the IT data mart. A value for this parameter is optional.
_RC=macro variable name to hold return code
specifies the name of a macro variable that holds the return code value from the execution of this macro. A value for this parameter is optional. This parameter is not case sensitive.
SMU=YES | NO
specifies whether the SAS Migration Utility (SMU) was used to migrate the data. If the SMU was used, SAS IT Resource Management performs extensive error-checking to ensure that the proper libraries are used to unpackage the data. A value for this parameter is optional. The default value for this parameter is YES.
  • If the value is set to YES, error-checking is performed.
  • If the value is set to NO, error-checking is not performed.
    Note: If you are migrating a single IT data mart, additional error-checking is not required. Set the value of this parameter to NO to avoid generating error messages.