<?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: SAS 9.4 and Stunnel in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748364#M1211</link>
    <description>&lt;P&gt;Can you use the X or XCMD statements in your current configuration? That allows passing commands to the operating system just like typing them on a command line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your configuration may have XCMD disabled though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is also CALL SYSTEM routine that can call system commands from a data step.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 15:08:31 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-06-16T15:08:31Z</dc:date>
    <item>
      <title>SAS 9.4 and Stunnel</title>
      <link>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748294#M1209</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System: 9.4 on Windows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody managed to use SAS to work with Stunnel?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to "convert" the sh script below to run from SAS so that I can transfer files using the stunnel. The stunnel is already set up and the sh script below is working.&lt;/P&gt;&lt;DIV&gt;user@server filedump$ sshpass -f "/folder/subfolder/passwordfile" scp -P 2222 -oKexAlgorithms=+diffie-hellman-group1-sha1 -oMACs=+hmac-sha1 -c aes128-cbc -p user@localhost:/folder/subfolder1/file.txt /home/users/folder/subfolder/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would like to confirm that no private keys have been used.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have tried to use SAS filename ftp but it failed. I don't know if and where we can use&amp;nbsp;+diffie-hellman-group1-sha1 and&amp;nbsp;&amp;nbsp;+hmac-sha1&lt;/DIV&gt;&lt;DIV&gt;I have also tried to configure SAS filename socket but so far is not working.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you for your help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Madalin&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 10:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748294#M1209</guid>
      <dc:creator>Mada1</dc:creator>
      <dc:date>2021-06-16T10:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 and Stunnel</title>
      <link>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748364#M1211</link>
      <description>&lt;P&gt;Can you use the X or XCMD statements in your current configuration? That allows passing commands to the operating system just like typing them on a command line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your configuration may have XCMD disabled though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is also CALL SYSTEM routine that can call system commands from a data step.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 15:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748364#M1211</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-16T15:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 and Stunnel</title>
      <link>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748365#M1212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I can use the x cmd which would probably work ok in the dev environment but in prod environment x cmd are disabled. This is the reason why I tried filename ftp and socket.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Mada1&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 15:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748365#M1212</guid>
      <dc:creator>Mada1</dc:creator>
      <dc:date>2021-06-16T15:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 and Stunnel</title>
      <link>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748370#M1213</link>
      <description>&lt;P&gt;Often the CALL SYSTEM or SYSTEM statements aren't disabled when XCMD is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't a clue about stunnel or any of that side, just trying the fixes with basic SAS approaches to external programs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try sharing some of your Filename experiments showing the log with any messages. I know the filename can take a lot of options but where something like this may fit I have no clue.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 15:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748370#M1213</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-16T15:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 and Stunnel</title>
      <link>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748380#M1214</link>
      <description>Hi,&lt;BR /&gt;Using filename ftp I have tried the following. The intention was to copy the dataset stpsale between the two servers.&lt;BR /&gt;&lt;BR /&gt;filename indir ftp '/home/users/myfolder/Mada' DIR&lt;BR /&gt;host="server_name"&lt;BR /&gt;user="user"&lt;BR /&gt;pass='password';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;filename outdir ftp ' ' DIR FILEEXT&lt;BR /&gt;host="1.11.111.1"&lt;BR /&gt;port=2222&lt;BR /&gt;user='user2'&lt;BR /&gt;pass='password2';&lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;infile indir(stpsale) truncover;&lt;BR /&gt;input;&lt;BR /&gt;file outdir(stpsale);&lt;BR /&gt;put _infile_;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;The code above returns error on both indir and outdir.&lt;BR /&gt;&lt;BR /&gt;The test using filename socket below show that the port 2222 is already used (because the Stunnel is running on localhost on port 2222) but I didn't know how to continue from this point&lt;BR /&gt;&lt;BR /&gt;filename local socket ':2222' server;&lt;BR /&gt;data tcpip;&lt;BR /&gt;infile local eov=v;&lt;BR /&gt;input x $10;&lt;BR /&gt;if v=1 then&lt;BR /&gt;do;&lt;BR /&gt;put 'new connection received';&lt;BR /&gt;end;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;At the moment call system below returns the error "ERROR: Shell escape is not valid in this SAS session." (but I'm running on SAS EG and I think changes are required in SAS MC to solve this error)&lt;BR /&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;call system('dir /w');&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Thank you for your help.&lt;BR /&gt;Regards,&lt;BR /&gt;Mada&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jun 2021 15:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/748380#M1214</guid>
      <dc:creator>Mada1</dc:creator>
      <dc:date>2021-06-16T15:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 and Stunnel</title>
      <link>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/761083#M1250</link>
      <description>Hi,&lt;BR /&gt;Try filename pipe&lt;BR /&gt;FILENAME fileref PIPE 'operating-system-command' option-list;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sgf/2016/03/11/using-a-pipe-to-return-the-output-of-an-operating-system-command-to-sas-software/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2016/03/11/using-a-pipe-to-return-the-output-of-an-operating-system-command-to-sas-software/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ilya</description>
      <pubDate>Thu, 12 Aug 2021 07:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-9-4-and-Stunnel/m-p/761083#M1250</guid>
      <dc:creator>ilyak</dc:creator>
      <dc:date>2021-08-12T07:51:48Z</dc:date>
    </item>
  </channel>
</rss>

