BookmarkSubscribeRSS Feed
RAmarapuram
Obsidian | Level 7

Hi All

We have recently migrated from SAS EG 4.1 to 7.1. We were testing the PROC EXPORT on the new system and unable to create XLS or CSV files.

#1. Code to export Excel:

PROC EXPORT DATA= WORK.soma

           OUTFILE= "C:\User\app-502396530\Documents\My SAS Files\test1.xls"

           DBMS=EXCEL REPLACE;

    SHEET="Historical INFO";

RUN;

After executing the above code, I got the below error :

Error: CONNECT: Class not registered.

Error: Error in the LIBNAME statement.

#2. Code to export CSV

PROC EXPORT DATA= WORK.segments_final

           OUTFILE= "C:\User\app-502396530\Documents\My SAS Files\test1.csv"

           DBMS=CSV REPLACE;

RUN;

The above code executed successfully, but I am unable to see the file in the above path.

Kindly help me in resolving the issue.

Thanks

Rajesh

1 REPLY 1
ChrisHemedinger
Community Manager

I'm guessing that you also moved from 32-bit SAS 9.1 to 64-bit SAS 9.4 on Windows.  That explains the Excel error -- you may need to use DBMS=EXCELCS or (better) DBMS=XLSX instead.

http://blogs.sas.com/content/sasdummy/2012/05/01/64-bit-gotchas/

For the second problem: is the SAS session running on your local machine, or is it a remote Windows machine?  If remote, then the "C:" reference is the C: drive on the remote machine, not your local machine.  You might need to select a network location to output your files, or else use something like the Copy Files task to download the result.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 5234 views
  • 1 like
  • 2 in conversation