Base SAS 9.1 Procedures Guide, Volumes 1, 2, 3 and 4

Restriction: PROC EXPORT is available for the following operating environments:

PROC EXPORT DATA=< libref. > SAS-data-set <( SAS-data-set-options )>

PROC EXPORT Statement

Featured in: All examples

PROC EXPORT DATA=< libref. > SAS-data-set <( SAS-data-set-options )>

Required Arguments

DATA=< libref. > SAS-data-set

( SAS-data-set-options )

OUTFILE=" filename "

OUTTABLE=" tablename "

Options

DBMS= identifier

REPLACE

Data Source Statements

PROC EXPORT provides a variety of statements that are specific to the output data source.

Statements for PC Files, Spreadsheets, or Delimited Files

The following statement is available when you export delimited external files:

DELIMITER= char nn x ;

SHEET= spreadsheet-name ;

Statements for DBMS Tables

The following statements are available to establish a connection to the DBMS when you are exporting to a DBMS table:

DATABASE=" database ";

DBPWD=" database-password ";

PWD=" password ";

UID=" userid ";

WGDB=" workgroup-database-name ";

Security Levels for Microsoft Access Tables

Microsoft Access tables have the following levels of security, for which specific combinations of security statements must be used:

Each statement has a default value; however, you may find it necessary to provide a value for each statement explicitly.

Statement for Client/Server Model

The following statements are available to establish a connection from SAS running on UNIX to a PC server when you are exporting a table to Microsoft Access database or Excel workbook:

SERVER=" PC-server-name ";

SERVICE=" service-name ";

PORT= port-number ;

VERSION=" file-version ";

Категории