As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


EXPORT procedure

From sasCommunity
Jump to: navigation, search
This is a work in progress. You can contribute to this article.

The EXPORT procedure enables exporting SAS datasets to a variety of standard file formats that can be read by other computer applications. The EXPORT procedure can be used to produce text files that are delimited with characters such as a blank space, comma, semicolon, tab or a user provided character, including a control character.

Syntax

A basic syntax is shown below. For more information and options, consult the SAS documentation on PROC EXPORT.

proc export 
    data=library.data_set_name
    dbms=xlsx 
    outfile="/directory/path/" 
    replace;

    sheet="worksheet name";
run;

Usage

See also