<?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 Re: need to create password protect excel file/ csv from data set. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/need-to-create-password-protect-excel-file-csv-from-data-set/m-p/586596#M14530</link>
    <description>&lt;P&gt;cscript is a Microsoft program for running scripts on MS Windows servers:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cscript" target="_blank"&gt;https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cscript&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears you are trying to run this on a Unix server so I doubt it will work.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2019 02:00:25 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-09-06T02:00:25Z</dc:date>
    <item>
      <title>need to create password protect excel file/ csv from data set.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/need-to-create-password-protect-excel-file-csv-from-data-set/m-p/586408#M14475</link>
      <description>&lt;P&gt;Description:-&lt;/P&gt;&lt;P&gt;I have one dataset called abc.sas7bdat and i need to export as excel/csv with password protected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have gone through different post but not getting proper solution.&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="/SASCommon/test/DEBT_2019-07-31.xml";&lt;BR /&gt;&lt;BR /&gt;proc print data=sashelp.class;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods tagsets.excelxp close;&lt;BR /&gt;&lt;BR /&gt;/*****************************************************************/&lt;BR /&gt;/* Create and excecute a script file using the input XML file */&lt;BR /&gt;/* and the converted XLSX file. The value 51 is needed for XLSX. */&lt;BR /&gt;/* Use the value of 1 for XLS files in the SaveAs command. */&lt;BR /&gt;/*****************************************************************/&lt;BR /&gt;&lt;BR /&gt;%let XMLfile = /SASCommon/test/DEBT_2019-07-31.xml;&lt;BR /&gt;%let ExcelFile = /SASCommon/test/DEBT_2019-07-31.xlsx;&lt;BR /&gt;&lt;BR /&gt;%let VBscript = c:\convert.vbs;&lt;BR /&gt;%let password=test;&lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;file "&amp;amp;vbscript" lrecl=200;&lt;BR /&gt;put 'Dim xlApp, xlWkb, SourceFile, TargetFile';&lt;BR /&gt;put 'Set xlApp = CreateObject("excel.application")';&lt;BR /&gt;put 'SourceFile="' "&amp;amp;XMLfile" '"';&lt;BR /&gt;put 'Set xlWkb = xlApp.Workbooks.Open(SourceFile)';&lt;BR /&gt;put 'TargetFile="' "&amp;amp;ExcelFile" '"';&lt;BR /&gt;&lt;BR /&gt;put 'xlApp.DisplayAlerts=false';&lt;BR /&gt;put "xlWkb.SaveAs TargetFile, 51,""&amp;amp;password""";&lt;BR /&gt;put 'xlApp.DisplayAlerts=true';&lt;BR /&gt;put 'xlWkb.close';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;options noxwait noxsync;&lt;BR /&gt;&lt;BR /&gt;x "cscript ""&amp;amp;vbscript""";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got this code on sas support website but I am not able to understand the&lt;STRONG&gt; cscript in X command.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;please help me and give me some solution what is this cscript.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in advance.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 13:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/need-to-create-password-protect-excel-file-csv-from-data-set/m-p/586408#M14475</guid>
      <dc:creator>Hema_12</dc:creator>
      <dc:date>2019-09-05T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: need to create password protect excel file/ csv from data set.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/need-to-create-password-protect-excel-file-csv-from-data-set/m-p/586409#M14476</link>
      <description>I think it would be faster, simpler and safer to just open the file in Excel and add the password.</description>
      <pubDate>Thu, 05 Sep 2019 13:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/need-to-create-password-protect-excel-file-csv-from-data-set/m-p/586409#M14476</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-09-05T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: need to create password protect excel file/ csv from data set.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/need-to-create-password-protect-excel-file-csv-from-data-set/m-p/586596#M14530</link>
      <description>&lt;P&gt;cscript is a Microsoft program for running scripts on MS Windows servers:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cscript" target="_blank"&gt;https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cscript&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears you are trying to run this on a Unix server so I doubt it will work.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 02:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/need-to-create-password-protect-excel-file-csv-from-data-set/m-p/586596#M14530</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-06T02:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: need to create password protect excel file/ csv from data set.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/need-to-create-password-protect-excel-file-csv-from-data-set/m-p/586688#M14547</link>
      <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your solution and i know this trick but for repeated work, I should not use your solutions. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 10:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/need-to-create-password-protect-excel-file-csv-from-data-set/m-p/586688#M14547</guid>
      <dc:creator>Hema_12</dc:creator>
      <dc:date>2019-09-06T10:37:56Z</dc:date>
    </item>
  </channel>
</rss>

