Can any one help me to write a small SAS program which will add password (read only) to an MS-EXCEL file while creating it from a SAS Dataset (Export: By using Proc Export or DDE facility) ??
Can any one help me to write a small SAS program which will add password (read only) to an MS-EXCEL file while creating it from a SAS Dataset (Export: By using Proc Export or DDE facility) ??
This blog is not responsible for any kind of copyright violation. My blog just collects the links hosted or posted by other server/people/search engines. The creator of this page or the ISP(s) hosting any content on this site take no responsibility for the way you use the information provided on this site. If anybody has any copyright claim on it and doesn’t wish the information provided to be shown on our site, please do respond to pavanj.sas@gmail.com. I will remove them off immediately. Any inconvenience is regretted. Please do mention your exact grievance/problems with respect to certain third party links. I assure you that appropriate action will be taken. Thank you. SAS® is trademark of SAS Inc. https://sassoftware.wordpress.com is not endorsed, associated or affiliated in any way with SAS Inc. All other trademarks, company names, products names and logos mentioned are the property of their respective owners.
You have to add the following SAS code at the end of exporting procedure..when you save the file:
%let xlsFilePath = ‘path to you template file’;
filename dcs dde ‘excel|system’;
data _null_;
file dcs;
put ‘[save.as(“‘”&xlsFilePath”‘”,1,”‘”password”‘”)]’;
put ‘[error(false)]’;
put ‘[file.close(true)]’;
put ‘[quit()]’;
run;