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;
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!
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
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.
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!
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.
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.