IMPORTING DATA WITH DDE (Dynamic Data Exchange) Or Proc Import?
Arizona Supreme Court
Business Process Collecting and Entering Data Reporting Monthly Statistical reports Quarterly Revenue Survey Annual Expenditure Survey Annual Personnel Survey Collection Method Internet Word Perfect Word Excel Spreadsheets Email Fax Machine Mail
The Problem In Arizona 26 Maricopa County Justice Courts submit monthly statistical reports in Excel Spreadsheets. Each spreadsheet consists of four worksheets forms. The Excel forms make it very difficult to import rows and column of numeric data.
Form Sample
The Solution DDE (Dynamic Data Exchange) DDE requires three Arguments Application Name Topic Item
Options NOXWAIT and NOXSYNC
DDE Triplet Arguments
Drop and Retain
Final Product
The Problem In Arizona 26 Maricopa County Justice Courts submit monthly statistical reports in Excel Spreadsheets. Each spreadsheet consists of five worksheets. Each worksheet consist of rows and columns of data, making it easy to import.
Data sample
The Solution Proc Import Proc Import requires three Arguments The complete path of the spreadsheet Specify SAS data output, default is work folder Specify DBMS (Database Management System) such as “xlsx”
Proc Import Solution Three Arguments
Clean-up fields
Proc Import Results
Summary Comparison DDE (Dynamic Data Exchange) Proc Import Requires three arguments May require a lot more SAS code. No additional SAS license required Best used when importing from Excel Form Proc Import Requires three arguments Requires few lines of SAS code. Reading excel spreadsheets requires SAS/ACCESS license Best used when importing raw data from Excel
Contact Information Name: Humberto Cisneros, Senior Statistical Analyst Company: Arizona Supreme Court City/State: Phoenix, Arizona Phone: 602-452-3159 Email: Hcisneros@courts.az.gov