No BSD License  

Highlights from
Export data to SAS

5.0

5.0 | 2 ratings Rate this file 8 Downloads (last 30 days) File Size: 20.49 KB File ID: #15834
image thumbnail

Export data to SAS

by Dimitri Shvorob

 

05 Aug 2007 (Updated 06 Aug 2007)

(via Excel; with SAS/ACCESS and ActiveX Automation Server)

| Watch this File

File Information
Description

Please see SASWRITEDEMO, by following link 'Published m-files' below.

PS. In retrospect, SASWRITE gets credit for an inventive approach, but for practical purposes, I would strongly recommend MySQL-mediated data transfer, discussed in 'The Twain Shall Meet: Facilitating Data Exchange between SAS and Matlab' (see link below).

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
The Twain Shall Meet: Facilitating Data Exchange between SAS and Matlab

MATLAB release MATLAB 7.0.4 (R14SP2)
Other requirements SAS/ACCESS Interface to PC Files, Microsoft Excel
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
07 Aug 2007 Dimitri Shvorob

Erratum: 'sasfile and xlsfile must provide absolute file paths; file extensions may NOT be omitted'.

27 Aug 2009 Alessandro Juri  
05 Sep 2009 Dimitri Shvorob

Apparently, the two-star ranking stems from Alessandro not finding the XLS file. Does anybody else not see it? Please give me a shout.

28 Sep 2009 Alessandro Juri  
15 Jul 2010 Philip

I'm getting an error while attempting to use this function while saswrite attempts to use the .xls file.

Run-time error '91':
 
Object variable or With block variable not set.

This occurs while running the demo.

29 Jul 2011 Marco

Hello:
how many rows can be saved in one step? Does Excel constraint the process in any way?
MySQL-mediated data transfer would be preferable but I find it very slow to go from SAS to MySQL to Matlab to MySql, especially when I transfer large SAS tables to MySql (over a million rows). Is there a way to speed up the process? do you have any hints?
Thanks!!!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import Dimitri Shvorob 22 Oct 2008 09:22:07
data export Dimitri Shvorob 22 Oct 2008 09:22:07
sas Dimitri Shvorob 22 Oct 2008 09:22:07
export Dimitri Shvorob 22 Oct 2008 09:22:07
utilities Dimitri Shvorob 22 Oct 2008 09:22:07
saswrite Dimitri Shvorob 22 Oct 2008 09:22:07
data Dimitri Shvorob 22 Oct 2008 09:22:07
sas Brian 12 Dec 2008 11:57:39
data export rajchandar k 18 Jan 2009 23:55:59

Contact us at files@mathworks.com