Exporting SAS Data sets and creating ODS files for ...
[Pages:32]EXPORTING SAS? DATA SETS AND CREATING ODS FILES FOR MICROSOFT EXCEL
GEORGIOS KARAGIANNIS, SAS SUPPORT
Copyright ? 2014, SAS Institute Inc. All rights reserved.
OUTPUT DELIVERY SYSTEM
? You can use ODS statements to send output from procedures to a variety of destinations.
PROC Step
EXCEL
HTML
RTF
Copyright ? 2014, SAS Institute Inc. All rights reserved.
PDF
CSV
XML
OVERVIEW OF METHODS
The following methods enable you to create a file that can be opened with Excel or other software products: Data Set Methods
? EXPORT procedure ? SAS LIBNAME Engine for Excel
Procedure Output Methods via ODS
? CSV and CSVALL ? MSOFFICE2K and MSOFFICE2K_X ? TABLEEDITOR ? EXCELXP
Copyright ? 2014, SAS Institute Inc. All rights reserved.
WHAT DO YOU WANT TO EXPORT?
Exporting... SAS Data Set
SAS Procedure Output
Technique
EXPORT Procedure Excel LIBNAME Engine Output Delivery System
4
Copyright ? 2014, SAS Institute Inc. All rights reserved.
EXPORTING PROCEDURE OUTPUT VIA ODS
Destination CSV and CSVALL MSOFFICE2K MSOFFICE2K_X TABLEEDITOR EXCELXP
Type of File Created CSV HTML HTML HTML XML
5
Copyright ? 2014, SAS Institute Inc. All rights reserved.
SAS/ACCESS INTERFACE TO PC FILES
? SAS/ACCESS Interface to PC Files imports various PC file formats to SAS data sets and exports SAS data sets to various PC file formats.
? It provides several methods for data transfer, including the following:
? Import and Export Wizards ? IMPORT and EXPORT procedures ? Microsoft Excel LIBNAME engine
6
Copyright ? 2014, SAS Institute Inc. All rights reserved.
EXPORT PROCEDURE SYNTAX
proc export data=orion.employees outfile="&path\Employees.xls" dbms=excelcs replace;
sheet="All_Employees"; run;
PROC EXPORT DATA=SAS-data-set OUTFILE="workbook-name" DBMS=identifier ;
RUN;
Copyright ? 2014, SAS Institute Inc. All rights reserved.
EXCEL LIBNAME ENGINE
libname xlsdata "&path\libname.xls"; data xlsdata.addresses(drop=numzip);
set orion.addresses(rename=(zipcode=numzip)); ? ThzeiSpAcSo/AdCeC=EpSSutLI(BnNuAMmzEistpa,temzen5t.e)xt;ends the LIBNAME statement to rusnu;pport assigning a library reference name (libref) to Microsoft Excel
workbooks.
libname xlsdata clear;
LIBNAME libref 'location-of-Excel-workbook.xls' ;
"Bitness" Matches
Copyright ? 2014, SAS Institute Inc. All rights reserved.
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- using excel for analyzing survey questionnaires
- microsoft excel step by step guide free ict resources
- exporting data from redcap how
- analyzing and interpreting large datasets
- about the tutorial
- excellent ways of exporting sas data to excel
- what is the advantage of a why biological databases
- stress strain data with excel
- exporting sas data sets and creating ods files for
- introduction to sql
Related searches
- free data sets for research
- free data sets for students
- data sets for healthcare
- medical data sets for statistics projects
- available data sets for students
- simple data sets for statistics
- data sets for statistics class
- data sets for projects
- free data sets for excel
- healthcare data sets and standards
- sample data sets for students
- quantitative data sets for analysis