<?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: How to decrypt information  with shell script in SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377311#M276704</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;- I asked &amp;nbsp;if it is possible to run shell script is because the library used for the encryption of the variable is&amp;nbsp;a&lt;SPAN&gt;&amp;nbsp;simple wrapper for the standard ruby OpenSSL library. Since I do not want to use ruby inside my SAS I converted them into a shell script without any ruby libraries and want to run it on &amp;nbsp;SAS.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Now for decryption-- I need to pass the encrypted value into my shell script and get the decrypted output from inside SAS itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the actual problem that I need to get solved&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 13:22:44 GMT</pubDate>
    <dc:creator>jjames1</dc:creator>
    <dc:date>2017-07-19T13:22:44Z</dc:date>
    <item>
      <title>How to decrypt information  with shell script in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377038#M276702</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Thank you for the the previous reply for my question on&amp;nbsp;&lt;A title="How to Run Shell Script inside SAS?" href="https://communities.sas.com/t5/General-SAS-Programming/How-to-Run-Shell-Script-inside-SAS/m-p/375943#M48113" target="_self"&gt;How to Run Shell Script inside SAS?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried using the following piece of code but would like to describe my issue in detail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;filename&lt;/SPAN&gt; oscmd pipe &lt;SPAN class="token string"&gt;"/users/smith/report.sh 2&amp;gt;&amp;amp;1"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; _null_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;infile&lt;/SPAN&gt; oscmd&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;put&lt;/SPAN&gt; _infile_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token statement"&gt;filename&lt;/SPAN&gt; oscmd &lt;SPAN class="token keyword"&gt;clear&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The main purpose of running the shell script is to decrypt a particular variable within SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Let me be clear.&lt;/P&gt;&lt;P&gt;I have a &lt;EM&gt;&lt;STRONG&gt;database_test&lt;/STRONG&gt; &lt;/EM&gt;in which I have a particular table &lt;EM&gt;&lt;STRONG&gt;Table_ABC&lt;/STRONG&gt; &lt;/EM&gt;which contains the &lt;EM&gt;&lt;STRONG&gt;var1&lt;/STRONG&gt;&lt;/EM&gt; that has the &lt;EM&gt;&lt;STRONG&gt;encrypted value&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I need to read this &lt;EM&gt;&lt;STRONG&gt;encrypted_value&lt;/STRONG&gt; &lt;/EM&gt;using SAS and then put it into the shell script inside SAS to get the &lt;EM&gt;&lt;STRONG&gt;decrypted_value&lt;/STRONG&gt;&lt;/EM&gt; and store it in another variable &lt;EM&gt;&lt;STRONG&gt;var2&lt;/STRONG&gt; &lt;/EM&gt;in the same &lt;EM&gt;&lt;STRONG&gt;database_test&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;In short I need to do all this decryption process from within the SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I am a beginner to SAS I dont know how to approach this situation .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 15:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377038#M276702</guid>
      <dc:creator>jjames1</dc:creator>
      <dc:date>2017-07-18T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrypt information  with shell script in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377171#M276703</link>
      <description>&lt;P&gt;You are talking about 2 different, independent problems:&lt;/P&gt;
&lt;P&gt;- seeing the result of a system command in SAS&lt;/P&gt;
&lt;P&gt;- decrypting an encrypted variable&lt;/P&gt;
&lt;P&gt;What do these 2 questions have to do with each other? What is the actual problem you want solved?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 04:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377171#M276703</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-07-19T04:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrypt information  with shell script in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377311#M276704</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;- I asked &amp;nbsp;if it is possible to run shell script is because the library used for the encryption of the variable is&amp;nbsp;a&lt;SPAN&gt;&amp;nbsp;simple wrapper for the standard ruby OpenSSL library. Since I do not want to use ruby inside my SAS I converted them into a shell script without any ruby libraries and want to run it on &amp;nbsp;SAS.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Now for decryption-- I need to pass the encrypted value into my shell script and get the decrypted output from inside SAS itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the actual problem that I need to get solved&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377311#M276704</guid>
      <dc:creator>jjames1</dc:creator>
      <dc:date>2017-07-19T13:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrypt information  with shell script in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377610#M276705</link>
      <description>&lt;P&gt;Can you just decrypt everything ahead of running the SAS program? &amp;nbsp;That would simplify things a lot and would likely be substantially faster than an entry by entry decryption as well.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 21:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377610#M276705</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2017-07-19T21:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrypt information  with shell script in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377611#M276706</link>
      <description>&lt;P&gt;I think you're going to have to extract the encrypted value from your SAS data set and pass that as a parameter to your shell script, have the output written to a file then read that back into SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I must say if the variable has to be encrypted it must be confidential and none of this process seems terribly secure to me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 22:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377611#M276706</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-07-19T22:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to decrypt information  with shell script in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377614#M276707</link>
      <description>&lt;P&gt;So you need something like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data WANT;
  set TABLEABC;
  FILEVAR='/users/smith/decrypt.sh '||VAR1;
  infile DUMMY pipe filevar=FILEVAR;
  input; 
  put _infile_;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where your script reads an ecrypted value and writes back a decrypted value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 22:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-decrypt-information-with-shell-script-in-SAS/m-p/377614#M276707</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-07-19T22:12:05Z</dc:date>
    </item>
  </channel>
</rss>

