<?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: X/SYSTEM equivalent that returns string? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/X-SYSTEM-equivalent-that-returns-string/m-p/64476#M14006</link>
    <description>Steve,&lt;BR /&gt;
You will need to call the SHA-1 dll directly via the MODULE family of functions and call routines.  By using the SASCBTBL attribute table you could build a prototpye and have SAS via the DATA STEP pass your string and return the updated value.  Once you get the hang of it using the SASCBTBL with the MODULE family of functions and call routines can be quite usefull.&lt;BR /&gt;
&lt;BR /&gt;
The below papers are a good start.&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/248-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/248-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.sas.com/offices/asiapacific/sp/usergroups/snug/archive/2006/presentations/Q106Matthews.pdf" target="_blank"&gt;http://www.sas.com/offices/asiapacific/sp/usergroups/snug/archive/2006/presentations/Q106Matthews.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
and in the SAS Online Doc&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#/documentation/cdl/en/hostwin/63285/HTML/default/accdll.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#/documentation/cdl/en/hostwin/63285/HTML/default/accdll.htm&lt;/A&gt;</description>
    <pubDate>Mon, 16 Aug 2010 14:31:08 GMT</pubDate>
    <dc:creator>darrylovia</dc:creator>
    <dc:date>2010-08-16T14:31:08Z</dc:date>
    <item>
      <title>X/SYSTEM equivalent that returns string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-SYSTEM-equivalent-that-returns-string/m-p/64475#M14005</link>
      <description>I need to create an encrypted version of a string, but SAS doesn't provide SHA-1, which is required.  SAS Tech Support recommended using openssl (this is on a Linux box).  I'm working in EG, but have gotten the Allow XCMD option turned on.  &lt;BR /&gt;
&lt;BR /&gt;
However, now that I'm ready to submit the call, I see that the X statement (and, apparently, all its function/statement/etc. variants like SYSTEM, %SYSEXEC) just get the system return code.  What I want is the string that my openssl command returns.  Can anyone tell me how to make this happen?&lt;BR /&gt;
&lt;BR /&gt;
TIA,&lt;BR /&gt;
Steve</description>
      <pubDate>Mon, 16 Aug 2010 13:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-SYSTEM-equivalent-that-returns-string/m-p/64475#M14005</guid>
      <dc:creator>Strange_Attractor</dc:creator>
      <dc:date>2010-08-16T13:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: X/SYSTEM equivalent that returns string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-SYSTEM-equivalent-that-returns-string/m-p/64476#M14006</link>
      <description>Steve,&lt;BR /&gt;
You will need to call the SHA-1 dll directly via the MODULE family of functions and call routines.  By using the SASCBTBL attribute table you could build a prototpye and have SAS via the DATA STEP pass your string and return the updated value.  Once you get the hang of it using the SASCBTBL with the MODULE family of functions and call routines can be quite usefull.&lt;BR /&gt;
&lt;BR /&gt;
The below papers are a good start.&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/248-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/248-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.sas.com/offices/asiapacific/sp/usergroups/snug/archive/2006/presentations/Q106Matthews.pdf" target="_blank"&gt;http://www.sas.com/offices/asiapacific/sp/usergroups/snug/archive/2006/presentations/Q106Matthews.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
and in the SAS Online Doc&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#/documentation/cdl/en/hostwin/63285/HTML/default/accdll.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#/documentation/cdl/en/hostwin/63285/HTML/default/accdll.htm&lt;/A&gt;</description>
      <pubDate>Mon, 16 Aug 2010 14:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-SYSTEM-equivalent-that-returns-string/m-p/64476#M14006</guid>
      <dc:creator>darrylovia</dc:creator>
      <dc:date>2010-08-16T14:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: X/SYSTEM equivalent that returns string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-SYSTEM-equivalent-that-returns-string/m-p/64477#M14007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard DeVenezia's web page is an excellent resource too, and it has an example of the call module (Darryl's suggestion) that might be a fairly close template to what you want: it calls the win MD5 dll from sas. see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.devenezia.com/downloads/sas/sascbtbl/"&gt;http://www.devenezia.com/downloads/sas/sascbtbl/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if this apporach helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 11:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-SYSTEM-equivalent-that-returns-string/m-p/64477#M14007</guid>
      <dc:creator>Damien_Mather</dc:creator>
      <dc:date>2012-12-05T11:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: X/SYSTEM equivalent that returns string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-SYSTEM-equivalent-that-returns-string/m-p/64478#M14008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a PIPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile 'openssl ...' pipe ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call symputx('myvar',_infile_);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 13:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-SYSTEM-equivalent-that-returns-string/m-p/64478#M14008</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-12-05T13:00:08Z</dc:date>
    </item>
  </channel>
</rss>

