<?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: Setting up the Password for output file - SAS program - ODS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740819#M231483</link>
    <description>I am using SAS 9.3</description>
    <pubDate>Wed, 12 May 2021 15:11:13 GMT</pubDate>
    <dc:creator>kirankp</dc:creator>
    <dc:date>2021-05-12T15:11:13Z</dc:date>
    <item>
      <title>Setting up the Password for output file - SAS program - ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740582#M231373</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one help me as how to add the password for the zip file to open:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is my programming, please suggest -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET DIRECTORY=%SCAN(&amp;amp;sysparm,1,%STR( ));&lt;/P&gt;&lt;P&gt;FILENAME INFILES "&amp;amp;directory";&lt;BR /&gt;FILENAME EXELOG "&amp;amp;directory\LOGLIS\&amp;amp;sysdate9..LOG";&lt;/P&gt;&lt;P&gt;LIBNAME OUTLIB V8 "&amp;amp;directory";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;call symput('date',(put(date(),yymmddn8.)));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* ods begin */&lt;BR /&gt;ods package(ProdOutput) open nopf;&lt;BR /&gt;ods package(ProdOutput)&lt;BR /&gt;add file= "&amp;amp;directory\DONKEY_XX_Conc_HHHH_%sysfunc(today(),YYMMDDN8.).csv";&lt;/P&gt;&lt;P&gt;ods package(ProdOutput)&lt;BR /&gt;publish archive&lt;BR /&gt;properties&lt;BR /&gt;(archive_name= "DONKEY_XX_%trim(&amp;amp;date.).zip"&lt;BR /&gt;archive_path="&amp;amp;directory");&lt;BR /&gt;ods package(ProdOutput) close;&lt;BR /&gt;/* ods end */&lt;/P&gt;&lt;P&gt;FILENAME OUTLIS "&amp;amp;directory\LOGLIS\check.LIS";&lt;/P&gt;&lt;P&gt;/* delete original files after creating the zip file */&lt;BR /&gt;FILENAME fileref1 "&amp;amp;directory\DONKEY_XX_Conc_HHHH_%sysfunc(today(),YYMMDDN8.).csv";&lt;BR /&gt;%put %sysfunc(fdelete(fileref1));&lt;BR /&gt;FILENAME fileref1 "&amp;amp;directory\DONKEY_XX_Conc_HHHH_%sysfunc(today(),YYMMDDN8.).csv";&lt;BR /&gt;%put %sysfunc(fdelete(fileref1));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC PRINTTO PRINT=OUTLIS NEW;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 19:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740582#M231373</guid>
      <dc:creator>kirankp</dc:creator>
      <dc:date>2021-05-11T19:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the Password for output file - SAS program - ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740702#M231420</link>
      <description>&lt;P&gt;You may find this post helpful.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-password-protect-file/td-p/509182" target="_self"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-ODS-to-password-protect-file/td-p/509182&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, I have done the process of adding passwords using 7zip in a Windows environment, as shown in the url posted by reeza.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 02:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740702#M231420</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-05-12T02:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the Password for output file - SAS program - ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740708#M231425</link>
      <description>It is of no use, can you suggest how to incorporate it in the current&lt;BR /&gt;programming&lt;BR /&gt;</description>
      <pubDate>Wed, 12 May 2021 03:26:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740708#M231425</guid>
      <dc:creator>kirankp</dc:creator>
      <dc:date>2021-05-12T03:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the Password for output file - SAS program - ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740712#M231428</link>
      <description>&lt;P&gt;Please provide your environment first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is it of no use?&lt;/P&gt;
&lt;P&gt;Just create the zip file and then run the command.&lt;BR /&gt;If you want to include it in your program, it should be before "PROC PRINTTO PRINT=OUTLIS NEW;".&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 03:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740712#M231428</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-05-12T03:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the Password for output file - SAS program - ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740818#M231482</link>
      <description>Thank You for kind response.&lt;BR /&gt;&lt;BR /&gt;Following is the code I have used to create the zip file, after this how to&lt;BR /&gt;add the code for zip password. Can you please suggest, I will be grateful.&lt;BR /&gt;&lt;BR /&gt;Code:&lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;call symput('date',(put(date(),yymmddn8.)));&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/* ods begin */&lt;BR /&gt;ods package(ProdOutput) open nopf;&lt;BR /&gt;ods package(ProdOutput)&lt;BR /&gt;add file= "&amp;amp;directory\DONKEY_XX_Conc_HHHH_%sysfunc(today(),YYMMDDN8.).csv";&lt;BR /&gt;&lt;BR /&gt;ods package(ProdOutput)&lt;BR /&gt;publish archive&lt;BR /&gt;properties&lt;BR /&gt;(archive_name= "DONKEY_XX_%trim(&amp;amp;date.).zip"&lt;BR /&gt;archive_path="&amp;amp;directory");&lt;BR /&gt;ods package(ProdOutput) close;&lt;BR /&gt;&lt;BR /&gt;/* ods end */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;《Please provide the programming code as how to give password for above zip&lt;BR /&gt;file generated》&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Kiran&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 May 2021 15:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740818#M231482</guid>
      <dc:creator>kirankp</dc:creator>
      <dc:date>2021-05-12T15:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the Password for output file - SAS program - ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740819#M231483</link>
      <description>I am using SAS 9.3</description>
      <pubDate>Wed, 12 May 2021 15:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740819#M231483</guid>
      <dc:creator>kirankp</dc:creator>
      <dc:date>2021-05-12T15:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the Password for output file - SAS program - ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740990#M231575</link>
      <description>&lt;P&gt;On Windows, it can be rewritten as follows.&lt;BR /&gt;7zip will create the zip file, so no ods statement is needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noxwait xsync;
data _null_;
  call symput('date',(put(date(),yymmddn8.)));
run;
x " ""C:\Program Files\7-Zip\7z"" a 
    ""&amp;amp;directory\DONKEY_XX_%trim(&amp;amp;date.).zip"" 
    ""&amp;amp;directory\DONKEY_XX_Conc_HHHH_%trim(&amp;amp;date.).csv""
    -pPASSWORD";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can modify the 7zip path if necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 01:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/740990#M231575</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-05-13T01:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the Password for output file - SAS program - ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/741243#M231684</link>
      <description>&lt;P&gt;I am getting this error and not able to append the password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x " ""E:\Program Files\7-Zip\7z"" a&lt;BR /&gt;""&amp;amp;directory\DONKEY_XX_%trim(&amp;amp;date.).zip""&lt;BR /&gt;WARNING: The quoted string currently being processed has become more than 262 characters long. You might have unbalanced quotation marks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;""&amp;amp;directory\DONKEY_XX_Conc_Result_%trim(&amp;amp;date.).csv""&lt;BR /&gt;&amp;nbsp;-pPASSWORD"&lt;BR /&gt;&amp;nbsp;! ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to solve this.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 19:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/741243#M231684</guid>
      <dc:creator>kirankp</dc:creator>
      <dc:date>2021-05-13T19:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the Password for output file - SAS program - ODS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/741325#M231719</link>
      <description>&lt;P&gt;How many characters is the folder path assigned to &amp;amp;directory?&lt;BR /&gt;Also, what happens if I don't use the macro variable and specify the actual folder?&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 00:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Setting-up-the-Password-for-output-file-SAS-program-ODS/m-p/741325#M231719</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-05-14T00:45:09Z</dc:date>
    </item>
  </channel>
</rss>

