<?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: Passing credentials to tcpunix.scr file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Passing-credentials-to-tcpunix-scr-file/m-p/275326#M55045</link>
    <description>&lt;P&gt;There are lines in the script file that use the &lt;FONT face="courier new,courier"&gt;input&lt;/FONT&gt; statement to obtain the credentials.&lt;/P&gt;
&lt;P&gt;I would make a copy of the tcpunix.scr file that makes it easy (through comments) to identify those lines.&lt;/P&gt;
&lt;P&gt;Then use a scripted editor to replace the lines with &lt;FONT face="courier new,courier"&gt;input&lt;/FONT&gt; with a &lt;FONT face="courier new,courier"&gt;type&lt;/FONT&gt; statement that supplies userid and password, and save to a new file.&lt;/P&gt;
&lt;P&gt;Run that new script file when connecting.&lt;/P&gt;
&lt;P&gt;Remove that script file immediately after signing off, for safety reasons.&lt;/P&gt;
&lt;P&gt;Look if using &lt;FONT face="courier new,courier"&gt;proc pwencode&lt;/FONT&gt; makes sense to at least obscure the passwords.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't found anything that lets the calling SAS process supply parameters to the scriptfile, or I would have used that.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2016 08:43:55 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-06-06T08:43:55Z</dc:date>
    <item>
      <title>Passing credentials to tcpunix.scr file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-credentials-to-tcpunix-scr-file/m-p/275300#M55035</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am making a script in which the program have to store the credentials of the user so that is could be passed to a Java API for further execution. I am using the below script to get the input:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%window info 
#1 @2 'MODSPACE LOGIN:' attr=highlight 
#5 @5 'Please enter userid:' 
#5 @26 user 20 attr=underline 
#7 @5 'Please enter password:' 
#7 @28 pass 20 attr=underline display=no; 

%display info; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After that I have to call the tcpunix.scr file to login to the remote server. Now the script prompts its own authentication screen for input and I don't want that. I want the input that I've got using the above code to be passed to the script. Please let me know if there is a way. It will be much helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 06:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-credentials-to-tcpunix-scr-file/m-p/275300#M55035</guid>
      <dc:creator>Aditi24</dc:creator>
      <dc:date>2016-06-06T06:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Passing credentials to tcpunix.scr file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-credentials-to-tcpunix-scr-file/m-p/275326#M55045</link>
      <description>&lt;P&gt;There are lines in the script file that use the &lt;FONT face="courier new,courier"&gt;input&lt;/FONT&gt; statement to obtain the credentials.&lt;/P&gt;
&lt;P&gt;I would make a copy of the tcpunix.scr file that makes it easy (through comments) to identify those lines.&lt;/P&gt;
&lt;P&gt;Then use a scripted editor to replace the lines with &lt;FONT face="courier new,courier"&gt;input&lt;/FONT&gt; with a &lt;FONT face="courier new,courier"&gt;type&lt;/FONT&gt; statement that supplies userid and password, and save to a new file.&lt;/P&gt;
&lt;P&gt;Run that new script file when connecting.&lt;/P&gt;
&lt;P&gt;Remove that script file immediately after signing off, for safety reasons.&lt;/P&gt;
&lt;P&gt;Look if using &lt;FONT face="courier new,courier"&gt;proc pwencode&lt;/FONT&gt; makes sense to at least obscure the passwords.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't found anything that lets the calling SAS process supply parameters to the scriptfile, or I would have used that.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 08:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-credentials-to-tcpunix-scr-file/m-p/275326#M55045</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-06T08:43:55Z</dc:date>
    </item>
  </channel>
</rss>

