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!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.