<?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: Error with %include statement with password file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-with-include-statement-with-password-file/m-p/460175#M116953</link>
    <description>&lt;P&gt;%LET statements (each of them) require a semicolon to end the statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add them and that should take care of the problem.&lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2018 20:52:19 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-05-04T20:52:19Z</dc:date>
    <item>
      <title>Error with %include statement with password file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-with-include-statement-with-password-file/m-p/460171#M116952</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to set up a password file in a folder in the server so that I don't have to reference my log-in credentials directly in the query&amp;nbsp;&lt;/P&gt;&lt;P&gt;when connecting to Teradata.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I've done:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Saved a file named login.sas in a folder in the server with the following details:&lt;/P&gt;&lt;P&gt;%let tduser='myusername'&lt;BR /&gt;%let tdpass='mypassword'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Reference the file with a %include statement in my SAS program as follows:&lt;/P&gt;&lt;P&gt;%include "/intl/ipath/foldername/foldername/login.sas";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Run a query to connect to Teradata as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc SQL;&lt;BR /&gt;Connect To teradata (server=edw user=&amp;amp;tduser password=&amp;amp;tdpass mode=teradata connection=global);&lt;BR /&gt;create table CUSTBASE as&lt;BR /&gt;select * from connection to teradata&lt;BR /&gt;(&lt;/P&gt;&lt;P&gt;select distinct....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) I get an ERROR and a WARNING as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%include "/intl/i&lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;/folder&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;foldername&lt;/SPAN&gt;&lt;SPAN&gt;/login.sas";&lt;/SPAN&gt;&lt;BR /&gt;ERROR: Open code statement recursion detected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;28 Connect To teradata (server=edw user=&amp;amp;tduser password=&amp;amp;tdpass mode=teradata connection=global);&lt;BR /&gt;WARNING: Apparent symbolic reference TDPASS not resolved.&lt;BR /&gt;WARNING: Apparent symbolic reference TDPASS not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on how to resolve this would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 20:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-with-include-statement-with-password-file/m-p/460171#M116952</guid>
      <dc:creator>renanm</dc:creator>
      <dc:date>2018-05-04T20:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error with %include statement with password file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-with-include-statement-with-password-file/m-p/460175#M116953</link>
      <description>&lt;P&gt;%LET statements (each of them) require a semicolon to end the statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add them and that should take care of the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 20:52:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-with-include-statement-with-password-file/m-p/460175#M116953</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-05-04T20:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error with %include statement with password file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-with-include-statement-with-password-file/m-p/460716#M117125</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;! Much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 14:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-with-include-statement-with-password-file/m-p/460716#M117125</guid>
      <dc:creator>renanm</dc:creator>
      <dc:date>2018-05-08T14:46:51Z</dc:date>
    </item>
  </channel>
</rss>

