Chapter Contents |
Previous |
Next |
Moving and Accessing SAS Files across Operating Environments |
You use either of two traditional methods for creating a transport file:
LIBNAME orig-libref 'SAS-data-library'; |
LIBNAME new-libref XPORT 'transport-file'; |
PROC COPY IN=orig-libref OUT=new-libref; |
RUN; |
The base engine is assumed, by default.
Note: The transport-file argument that
is specified in the LIBNAME statement that contains the XPORT engine is the
file to which the transport data is written. If the transport file is not
being written to 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.
LIBNAME libref 'SAS-data-library'; |
FILENAME fileref 'transport-file'; |
PROC CPORT DATA=libref.member FILE=fileref; |
RUN; |
The base engine is assumed, by default.
Note: The transport-file argument that
is specified in the FILENAME statement is the file to which the transport
data is written.
Note: For Releases 6.11 through Version 8, the FILENAME
statement includes the FTP option that allows you to implicitly transfer the
transport file directly to the target host. Using the FILENAME statement with
the FTP option makes an explicit invocation of the FTP utility unnecessary.
However, the examples in this chapter do not include the FTP option with the
FILENAME statement. This chapter assumes an explicit invocation of the FTP
utility. For an example of using the FTP option with the FILENAME statement,
see OS/390 TSO to UNIX File Transport.
Note: You can specify member types
other than DATA.
Because LIBNAME statement syntax is host-specific, we use the variable SAS-data-library and transport-file to represent a disk location. However, to specify a magnetic medium format, 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 which 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.