Previous Page | Next Page

The MIGRATE Procedure

Example 1: Migrating without SLIBREF= across Computers


Tip: You can use the PROC MIGRATE Calculator on the SAS web site at http://support.sas.com/rnd/migration/planning/files/migratecalc/, which provides the PROC MIGRATE syntax needed for your specific migration.
Tip: You are encouraged to run PROC MIGRATE with validation tools. See Migrating a Library with Validation Tools.
Procedure features:

MIGRATE statement options:

IN=

OUT=


In this example, the source and target libraries are on different computers, and the SLIBREF= option is not required. (See Using the SLIBREF= Option to learn whether SLIBREF= is required.)

You can assign the source library to the IN= argument in one of the following two ways:

The direct method is possible only if you can access the library via an NFS, which is a standard protocol of UNIX operating environments. If you want to use that method, see the documentation for NFS and for your operating environment.

This example uses SAS/CONNECT software. The SAS/CONNECT server that you assign to the IN= argument must be a SAS 9 server.


Program

  1. From a session in the current release of SAS, submit the SIGNON command to invoke a SAS/CONNECT server session. Note that because you are working across computers, you might specify a machine name in the server ID:

    signon serv-ID sascmd='my-sas-invocation-command';

  2. Within this remote session, assign a libref to the source library that contains the library members to be migrated. Use the RSUBMIT and ENDRSUBMIT commands for SAS/CONNECT:

    rsubmit;
    libname source <engine> 'source-library-pathname';
    endrsubmit;

  3. In the local (client) session in the current release, assign the same source libref as in step 2. But do not assign the libref to a physical location. Instead, specify the SERVER= option with the server ID (in this example, serv-ID) that you assigned in the SIGNON command in step 1:

    libname source <engine> server=serv-ID;

  4. Assign the target library:

    libname target <engine> 'target-library-pathname';

  5. Use PROC MIGRATE:

    proc migrate in=source out=target <options>; 
    run;

If your library contains catalogs, see Migrating with SLIBREF= across Computers.

Previous Page | Next Page | Top of Page