<?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 proc pwencode in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126079#M34652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using below code to encrypt my passwords. It was working fine until several jobs started to use the same .txt file and It gave me error saying that the .txt file is in use.&lt;/P&gt;&lt;P&gt;Can someone suggest if there is a way in proc pwencode where I can create a macro variable with encrypted value without writing it to the .txt files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let uid = ididid;&lt;BR /&gt;%let pid = ididid;&lt;/P&gt;&lt;P&gt;filename pwfile '/uhyy/xx/pwd.txt';&lt;/P&gt;&lt;P&gt;filename ppw '/uhyy/xx/ppw.txt';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc pwencode in='My_pwd' out=pwfile;&lt;BR /&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc pwencode in='My_pwd' out=ppw;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; options symbolgen; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro readpwd(filename,var);&lt;/P&gt;&lt;P&gt;&amp;nbsp; data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; infile &amp;amp;filename obs=1 length=l;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input @;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input @1 line $varying1024. l;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; call symput("&amp;amp;var",substr(line,1,l));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;BR /&gt;%readpwd(pwfile,pwd);&lt;BR /&gt;%readpwd(ppw,ppwd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 14:22:53 GMT</pubDate>
    <dc:creator>helloSAS</dc:creator>
    <dc:date>2013-10-28T14:22:53Z</dc:date>
    <item>
      <title>proc pwencode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126079#M34652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using below code to encrypt my passwords. It was working fine until several jobs started to use the same .txt file and It gave me error saying that the .txt file is in use.&lt;/P&gt;&lt;P&gt;Can someone suggest if there is a way in proc pwencode where I can create a macro variable with encrypted value without writing it to the .txt files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let uid = ididid;&lt;BR /&gt;%let pid = ididid;&lt;/P&gt;&lt;P&gt;filename pwfile '/uhyy/xx/pwd.txt';&lt;/P&gt;&lt;P&gt;filename ppw '/uhyy/xx/ppw.txt';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc pwencode in='My_pwd' out=pwfile;&lt;BR /&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc pwencode in='My_pwd' out=ppw;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; options symbolgen; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro readpwd(filename,var);&lt;/P&gt;&lt;P&gt;&amp;nbsp; data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; infile &amp;amp;filename obs=1 length=l;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input @;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input @1 line $varying1024. l;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; call symput("&amp;amp;var",substr(line,1,l));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;BR /&gt;%readpwd(pwfile,pwd);&lt;BR /&gt;%readpwd(ppw,ppwd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 14:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126079#M34652</guid>
      <dc:creator>helloSAS</dc:creator>
      <dc:date>2013-10-28T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc pwencode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126080#M34653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the TEMP filename engine to insure that you get a unique file created.&amp;nbsp; The file will be created in the WORK directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename pwfile temp;&lt;/P&gt;&lt;P&gt;proc pwencode in='My_pwd' out=pwfile;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 14:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126080#M34653</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-10-28T14:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc pwencode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126081#M34654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can see the filename? and In EG how do i access work folder to see this file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 15:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126081#M34654</guid>
      <dc:creator>helloSAS</dc:creator>
      <dc:date>2013-10-28T15:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc pwencode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126082#M34655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the PATHNAME() function to get the filename. Or the FILENAME= option on the INFILE statement.&lt;/P&gt;&lt;P&gt;For EG there must be a method for downloading files, but if not then just read it into a dataset and download that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 16:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126082#M34655</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-10-28T16:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc pwencode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126083#M34656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 16:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126083#M34656</guid>
      <dc:creator>helloSAS</dc:creator>
      <dc:date>2013-10-28T16:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc pwencode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126084#M34657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alternatively,&lt;/P&gt;&lt;P&gt;eliminate contention for a data file by writing it into a&amp;nbsp; SAS catalog in your WORK library.&lt;/P&gt;&lt;P&gt;It is similar to the TEMP filename engine but persists a bit longer.&lt;/P&gt;&lt;P&gt;filename encrp temp lrecl=2048 ;&lt;/P&gt;&lt;P&gt;Creates a reference to a new file that will be lost when the filename encrp is closed with something like:&lt;/P&gt;&lt;P&gt;filename encrp ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename encry catalog 'work.work.work.source' lrecl=2048 ;&lt;/P&gt;&lt;P&gt;defines the reference encry, pointing to the source-type catalog entry work.source in the SAS catalog work.work. The source entry will persist until the end of the SAS session (or someone deletes it or deletes the catalog)&lt;/P&gt;&lt;P&gt;It can be used as if it is a plain text file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 10:34:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-pwencode/m-p/126084#M34657</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-11-04T10:34:07Z</dc:date>
    </item>
  </channel>
</rss>

