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

Hi All,

 

I have an enterprise guide project where i am creating a dataset and then exporting it to a csv file using the EG export utility (since i want to export in my local system and not the server where the SAS is intalled). There are situations when someone has the csv file opened in their system and when my project runs, it fails at the time of export as it is unable to get a lock. I tried to capture this error using SYSCC, SYSERR, SYSERRORTEXT, but i do not get anything back. It is unable to capture the error caused by the export utlity.

 

Any suggestions on how i can make sas to send me an email if the export fails? 

1 ACCEPTED SOLUTION

Accepted Solutions
fifthand57th
SAS Employee

@Aboveland

 

The SAS Enterprise Guide Export Wizard does not use SAS to perform the conversion of a SAS data set to a different file format. It uses a Microsoft Engine.

 

Instead use PROC EXPORT so you can use SYSCC or SYSERR to capture the error and send email if an error occurs. Then use the new Copy Files task (in release 7.13) to move the newly created CSV file from the SAS Server to your EG machine.

View solution in original post

2 REPLIES 2
fifthand57th
SAS Employee

@Aboveland

 

The SAS Enterprise Guide Export Wizard does not use SAS to perform the conversion of a SAS data set to a different file format. It uses a Microsoft Engine.

 

Instead use PROC EXPORT so you can use SYSCC or SYSERR to capture the error and send email if an error occurs. Then use the new Copy Files task (in release 7.13) to move the newly created CSV file from the SAS Server to your EG machine.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 2240 views
  • 0 likes
  • 2 in conversation