<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create password protetcted excel sheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279396#M56315</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a password protected report for one of my customer and I use the below code to sent the report through email . Is there any way If I can make my report a password protected it would be great If i could include with this macro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; emailreport(path=, name=, ext=, date=, format=, to=, cc=, msg=, sig=, attach=);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;FILENAME mail EMAIL &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'nul'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt;FILE mail ;&lt;/P&gt;&lt;P&gt;subject = &amp;amp;name;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;tolist = tranwrd(trim(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'('&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || quote(&amp;amp;to) || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;')'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;), &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;';'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'" "'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;cclist = tranwrd(trim(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'('&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || quote(&amp;amp;cc) || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;')'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;), &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;';'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'" "'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;msg=&amp;amp;msg;&lt;/P&gt;&lt;P&gt;sig=&amp;amp;sig;&lt;/P&gt;&lt;P&gt;datestr = put(&amp;amp;date, &amp;amp;format);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;attachment = &amp;amp;path || &amp;amp;name || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;' '&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || datestr || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'.'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || &amp;amp;ext;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;put &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'!EM_TO!'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; tolist;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;put &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'!EM_CC!'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; cclist;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;put &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'!EM_SUBJECT!'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; subject;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;if (&amp;amp;attach) then&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;put &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'!EM_ATTACH!'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; attachment;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;if (missing(msg) = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;) then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;put msg;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;if (missing(sig) = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;) then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;put sig;&lt;/P&gt;&lt;P&gt;/*put '!EM_SEND!';*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; emailreport;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;Manesh &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;Mob +91 9048904821&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2016 15:38:32 GMT</pubDate>
    <dc:creator>ambadi007</dc:creator>
    <dc:date>2016-06-22T15:38:32Z</dc:date>
    <item>
      <title>Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279396#M56315</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a password protected report for one of my customer and I use the below code to sent the report through email . Is there any way If I can make my report a password protected it would be great If i could include with this macro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; emailreport(path=, name=, ext=, date=, format=, to=, cc=, msg=, sig=, attach=);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;FILENAME mail EMAIL &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'nul'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt;FILE mail ;&lt;/P&gt;&lt;P&gt;subject = &amp;amp;name;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;tolist = tranwrd(trim(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'('&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || quote(&amp;amp;to) || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;')'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;), &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;';'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'" "'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;cclist = tranwrd(trim(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'('&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || quote(&amp;amp;cc) || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;')'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;), &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;';'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'" "'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;msg=&amp;amp;msg;&lt;/P&gt;&lt;P&gt;sig=&amp;amp;sig;&lt;/P&gt;&lt;P&gt;datestr = put(&amp;amp;date, &amp;amp;format);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;attachment = &amp;amp;path || &amp;amp;name || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;' '&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || datestr || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'.'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || &amp;amp;ext;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;put &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'!EM_TO!'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; tolist;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;put &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'!EM_CC!'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; cclist;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;put &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'!EM_SUBJECT!'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; subject;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;if (&amp;amp;attach) then&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;put &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'!EM_ATTACH!'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; attachment;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;if (missing(msg) = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;) then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;put msg;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;if (missing(sig) = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;) then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;put sig;&lt;/P&gt;&lt;P&gt;/*put '!EM_SEND!';*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; emailreport;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;Manesh &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;Mob +91 9048904821&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 15:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279396#M56315</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2016-06-22T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279401#M56319</link>
      <description>&lt;P&gt;Sorry, how is this related to Excel per your title, this is an email generation macro? &amp;nbsp;I don't think there is currently a way of creating Excel files which have password protection, although I would advise that that type of password protection is not considered good anyway. &amp;nbsp;Also, email is not a good method of transfering reports, it can be unsecure, and reports can be too big for email. &amp;nbsp;Consider using a proper medium - access controlled portal for instance and post reports directly there.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 15:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279401#M56319</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-22T15:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279404#M56322</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The application which I handle use email to transfer the reports and these reports are not big in size .&amp;nbsp; The below code which I use to craete an excel file and now need a password protection with this macro. The customer needs that . is there any way to include a passwd macro for passwrd creation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; exportreport(path=, name=, date=, format=, data=);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;data _NULL_;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;src=&amp;amp;path || &amp;amp;name || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'.xlsx'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;src2 = &amp;amp;path || &amp;amp;name || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'.xls'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;dest = &amp;amp;path || &amp;amp;name || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;' '&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || put(&amp;amp;date, &amp;amp;format) || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'.xlsx'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;dest2 = &amp;amp;path || &amp;amp;name || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;' '&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || put(&amp;amp;date, &amp;amp;format) || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'.xls'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;if (fileexist(src)) then&lt;/P&gt;&lt;P&gt;do;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;call system(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'copy '&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || quote(src) || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;' '&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || quote(dest));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;call symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'_exportreportpathname'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;, dest);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;else if (fileexist(src2)) then&lt;/P&gt;&lt;P&gt;do;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;call system(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'copy '&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || quote(src2) || &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;' '&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; || quote(dest2));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;call symput(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New"&gt;&lt;FONT color="#800080" face="Courier New"&gt;'_exportreportpathname'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;, dest2);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;%&lt;STRONG&gt;&lt;I&gt;exportfile&lt;/I&gt;&lt;/STRONG&gt;(pathname=&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;_exportreportpathname.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;, data=&amp;amp;data);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; exportreport;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 15:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279404#M56322</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2016-06-22T15:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279406#M56323</link>
      <description>&lt;P&gt;Sorry, there is no creation in that code, all it does is copy a file from somewhere. &amp;nbsp;Anyways, as I said before email is not a good medium for transmitting data, nor is Excel. &amp;nbsp;There are a multitude of solutions out there. &amp;nbsp;As for your particular problem, I am not aware of a way to password protect a spreadsheet (unless you want to go with DDE which is very old and likely wont work), nor a way to password protect an email. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279406#M56323</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-22T16:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279413#M56328</link>
      <description>&lt;P&gt;There's no SAS mechanism at present to create a password protected file. You'll need VBA or DDE and I Dont think I've seen DDE code to do it so far.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279413#M56328</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-22T16:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279415#M56329</link>
      <description>&lt;P&gt;&lt;A href="http://support.sas.com/kb/48/682.html" target="_blank"&gt;http://support.sas.com/kb/48/682.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your using ODS TAGSETS This may be helpful. It could be modified to work on a native Excel file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279415#M56329</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-22T16:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279645#M56374</link>
      <description>Password protected files is a scourge. And a result of using push reports. &lt;BR /&gt;If you use pull instead you can restrict user access on the server.</description>
      <pubDate>Thu, 23 Jun 2016 04:26:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/279645#M56374</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-23T04:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/394936#M95178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would you or anyone out there happen to know the syntax of adding password protection to this piece of code - as created in the footnote of a proc report.&amp;nbsp; Apologies for any extra apostrophies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;footnote j=1 'input onclick="document.execCommand(' 'SAVEAS '',true,&lt;/P&gt;&lt;P&gt;' ' c:\\temp\\test.xls' ')" value=Download to Excel"&lt;/P&gt;&lt;P&gt;type="button"&amp;gt;';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My colleague discovered this on some documentation somewhere and we cannot find the rest of it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process is possible in dde but I am only aware of it being used in the local environment of base sas where it is as simple as writing password=&amp;nbsp;&amp;nbsp; I am trying to dig out syntax now but, I have not used this for about 10 years&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 22:19:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/394936#M95178</guid>
      <dc:creator>OddCat64</dc:creator>
      <dc:date>2017-09-11T22:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/394937#M95179</link>
      <description>&lt;P&gt;That doesn't look like DDE, I suspect it's VBA...it depends on what else is in there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please start a new thread with more details?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 22:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/394937#M95179</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-11T22:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/394948#M95187</link>
      <description>no it isn't dde, I too assume vba&lt;BR /&gt;will start new thread when I work out how, sorry I am a newby to this.</description>
      <pubDate>Mon, 11 Sep 2017 22:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/394948#M95187</guid>
      <dc:creator>OddCat64</dc:creator>
      <dc:date>2017-09-11T22:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/394962#M95192</link>
      <description>no, its java script and - and I am not getting anywhere on the java forums either &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 12 Sep 2017 00:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/394962#M95192</guid>
      <dc:creator>OddCat64</dc:creator>
      <dc:date>2017-09-12T00:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/395024#M95209</link>
      <description>&lt;P&gt;It isn't Java, M$ products use VBA, Java is Oracle. &amp;nbsp;As you will see from my first post on the subject, password protection on Excel files is&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; sufficient in any sense, nor is the the use of Excel for anything other than reports you have to generate. &amp;nbsp;First, if you are transferring data, then use a plain text format which is cross platform non proprietary, like CSV or XML. &amp;nbsp;Then use FTP or secure server for transmittal of the data so it is auditable and traceable. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is a report your producing and you have to use Excel (in fairness any other format is better than Excel) then it should also goto a secure server or web portal of some kind. &amp;nbsp;Just password protecting it is not secure, nor is it user friendly (which is the only plus of Excel).&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/395024#M95209</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-12T08:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create password protetcted excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/395300#M95296</link>
      <description>Thanks that looks useful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2017 20:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-password-protetcted-excel-sheet/m-p/395300#M95296</guid>
      <dc:creator>OddCat64</dc:creator>
      <dc:date>2017-09-12T20:45:39Z</dc:date>
    </item>
  </channel>
</rss>

