Chapter Contents |
Previous |
Next |
Moving and Accessing SAS Files across Operating Environments |
You use either of two traditional methods for restoring a transport file:
LIBNAME libref XPORT 'transport-file'; |
LIBNAME new-libref 'SAS-data-library'; |
PROC COPY IN=libref OUT=new-libref; |
RUN; |
Note: The transport-file argument that
is specified in the LIBNAME statement that includes the XPORT engine is the
file from which the transport formatted data is read. If the transport file
is not being read from the current directory, be sure to specify the full
physical name that is recognized by the operating environment. For details,
see the appropriate companion for the operating environment. Examples of the
LIBNAME statement with the XPORT engine throughout this document assume the
current directory.
The base engine is used by default.
FILENAME fileref 'transport-file'; |
LIBNAME libref 'SAS-data-library'; |
PROC CIMPORT INFILE=fileref LIBRARY=libref ; |
RUN; |
Note: The transport-file argument that
is specified in the FILENAME statement is the file from which the transport
formatted data is read.
Note: You can specify either LIBRARY= libref
or CATALOG=libref.member, as appropriate.
Because LIBNAME statement syntax is host-specific, we use the variables SAS-data-library and transport-file to represent a disk location. However, to specify the format of a magnetic medium, see Part 5 for host-specific details. Also, see the appropriate operating environment companion for complete details about the syntax of the LIBNAME statement.
For complete details about the syntax for SAS statements that you must use to create a transport file, see SAS Language Reference: Dictionary. For PROC statements, see SAS Procedures Guide.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.