File Exchange

image thumbnail

Import data from SAS

version (21.1 KB) by Dimitri Shvorob
(via Excel; with SAS/ACCESS and ActiveX Automation Server)


Updated 04 Apr 2016

View License

Please see SASREADDEMO, by following link 'Published m-files' below.
PS. In retrospect, SASREAD 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).

Cite As

Dimitri Shvorob (2020). Import data from SAS (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

Stefan Smit

Hi All, I am getting the same error. Was anyone of you able to resolve the error?

Sally Huang

Hi John, I am getting the same error. Were you able to resolve this issue?

John Adcox

Hi Eddie, I am getting the same error. Were you able to resolve this issue?


I'm getting a runtime error 91 in the xls macro about a block variable not having been set. It stops at the "SAS.Quit" line in the Sub SAS2Excel() module.

I'm no expert in VB (I think?), so does anyone know of a quick fix?

SAS-Mtlab Converter found

Does anybody else not see the spreadsheet? Please give me a shout.

The file SAS-Matlab Converter.xls is not available for download



cosmetic revision

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux