Previous Page | Next Page

The EXPORT Procedure

Example 2: Exporting a Subset of Observations to a CSV File


Procedure features:

The EXPORT procedure statement arguments:

DATA=

DBMS=

OUTFILE=

REPLACE



Program

This example exports the SAS data set, see PROC PRINT output i. The WHERE option requests a subset of the observations.The OUTFILE option specifies the output file. The DBMS option specifies that the output file is a CSV file, and overwrites the target CSV, if it exists.

proc export data=sashelp.class (where=(sex='F'))
   outfile='c:\myfiles\Femalelist.csv'
   dbms=csv
   replace;
run;

Previous Page | Next Page | Top of Page