SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

How to e-mail SAS dataset as sas7bdat file

Accepted Solution Solved
Reply
Contributor
Posts: 32
Accepted Solution

How to e-mail SAS dataset as sas7bdat file

Hello All,

I need to email a SAS dataset as SAS7bdat file. The recipient of the email should be able to open it as a SAS dataset as the sas7bdat file and not as the excel or txt file.

The dataset I want to email is in the SAS System in the temporary work folder. I guess the first step is to save the SAS dataset in the desktop and then insert it in the email as sas7bdat file. However, I could not figure out how to save it first as a SAS7bdat in the desktop. I am however able to import the dataset out of the SAS system as the excel file, but I did not see any function of importing it as the SAS7bdat file.

I will appreciate any help towards this achieving this goal. Thank you.

San


Accepted Solutions
Solution
‎07-08-2015 06:16 PM
Super User
Posts: 19,872

Re: How to e-mail SAS dataset as sas7bdat file

Assuming you have access/permissions you can use a libname to copy the file to your desktop though that seems like a bad idea.

Are you using SAS to email the file?

libname outdesk 'C:/users/Sapkota/desktop/';

proc datasets library=work nodetails nolist;

copy in=work out=outdesk;

select file_to_export;

run;quit;

libname outdesk;

View solution in original post


All Replies
Solution
‎07-08-2015 06:16 PM
Super User
Posts: 19,872

Re: How to e-mail SAS dataset as sas7bdat file

Assuming you have access/permissions you can use a libname to copy the file to your desktop though that seems like a bad idea.

Are you using SAS to email the file?

libname outdesk 'C:/users/Sapkota/desktop/';

proc datasets library=work nodetails nolist;

copy in=work out=outdesk;

select file_to_export;

run;quit;

libname outdesk;

Contributor
Posts: 32

Re: How to e-mail SAS dataset as sas7bdat file

Hi Reeza,

Thank you. The SAS program you wrote worked! Much appreciate it.

No, I am not using SAS to email the file.

Sanjeeb

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

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