BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
AaronE
Fluorite | Level 6

The issue that I am having is that the Export function does not work.  It did all the way till this Sunday and then just stopped.

 

I have not changed anything, and when I checked our scheduler that runs these programs, it started to error out.

 

Any help is greatly appreciated.

 

 

393 PROC EXPORT DATA = WORK.DATA_WITH_TRANSIT
394 OUTFILE = '\\mishare.corp.xxxxxx.com\DavWWWRoot\sites\xxxxxx\Grains Tracking
394! Tools\DATA_WITH_TRANSIT.xls'
395 DBMS = EXCEL REPLACE;
396 SHEET = "KMDT Data";
397 RUN;

ERROR: Connect: Failure creating file.
ERROR: Error in the LIBNAME statement.
Connection Failed. See log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
real time 0.12 seconds
cpu time 0.06 seconds

 

PROC EXPORT DATA = WORK.DATA_WITH_TRANSIT
OUTFILE = '\\mishare.corp.xxxxxx.com\DavWWWRoot\sites\xxxxxxxxt\Grains Tracking Tools\DATA_WITH_TRANSIT.xls'
DBMS = EXCEL REPLACE;
SHEET = "KMDT Data";
RUN;

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
AaronE
Fluorite | Level 6

Thank you, it was just that.  Somehow an _ was missing from the Sheet name KMDT Data.  It should have been KMDT_Data.

 

Thank you again!

View solution in original post

3 REPLIES 3
AaronE
Fluorite | Level 6

This is the error, the other one I posted was me just trying something and is not the correct error:

 

 

398 PROC EXPORT DATA = WORK.DATA_WITH_TRANSIT
399 OUTFILE = '\\mishare.corp.xxxxxxxx\DavWWWRoot\sites\xxxxxxxx\Grains Tracking
399! Tools\DATA_WITH_TRANSIT.xls'
400 DBMS = EXCEL REPLACE;
401 SHEET = "KMDT Data";
402 RUN;

ERROR: Connect: Failure creating file.
ERROR: Error in the LIBNAME statement.
Connection Failed. See log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
real time 0.09 seconds
cpu time 0.04 seconds

 

ballardw
Super User

You might share the libname statement. You might have something missing like a ) or ; on the libname such that the error doesn't appear until the middle of other code.

AaronE
Fluorite | Level 6

Thank you, it was just that.  Somehow an _ was missing from the Sheet name KMDT Data.  It should have been KMDT_Data.

 

Thank you again!

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 3 replies
  • 1473 views
  • 0 likes
  • 2 in conversation