<?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 LIBNAME and CASLIB statements failing with ERROR in LIBNAME stmt and user param is invalid errors in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668408#M23116</link>
    <description>&lt;DIV class="sasSource"&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 libname seacoastlib odbc dsn="seacoast" user="myuser" pass="mypassword";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: seacoastlib is not a valid SAS name.&lt;/DIV&gt;&lt;DIV class="sasError sapUiTreeNodeSelected"&gt;ERROR: Error in the LIBNAME statement.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running the statement below to connect to a SQL Server database through DSN and I get error "ERROR: seacoastlib is not a valid SAS name:&lt;/P&gt;&lt;P&gt;libname seacoastlib odbc dsn="seacoast" user="myuser" pass="mypassword";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another statement, almost the same, to a different DSN, all in the same ODBC.INI file; the only difference is that the other statement includes a schema.&lt;/P&gt;&lt;P&gt;libname etllib odbc dsn="etl" user="myuser" pass="mypassword" schema="myschema";&lt;/P&gt;&lt;P&gt;PS: this statement that executes resides in a file created a long time ago. Maybe some variable created that reside in the system somewhere. The one that fails was created today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have even tried&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;caslib seacoastlib datasource="seacoast" user="myuser" pass="mypassword" &lt;/PRE&gt;&lt;P&gt;What am I missing?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jul 2020 16:27:19 GMT</pubDate>
    <dc:creator>thebugslayer</dc:creator>
    <dc:date>2020-07-10T16:27:19Z</dc:date>
    <item>
      <title>LIBNAME and CASLIB statements failing with ERROR in LIBNAME stmt and user param is invalid errors</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668408#M23116</link>
      <description>&lt;DIV class="sasSource"&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 libname seacoastlib odbc dsn="seacoast" user="myuser" pass="mypassword";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: seacoastlib is not a valid SAS name.&lt;/DIV&gt;&lt;DIV class="sasError sapUiTreeNodeSelected"&gt;ERROR: Error in the LIBNAME statement.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running the statement below to connect to a SQL Server database through DSN and I get error "ERROR: seacoastlib is not a valid SAS name:&lt;/P&gt;&lt;P&gt;libname seacoastlib odbc dsn="seacoast" user="myuser" pass="mypassword";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another statement, almost the same, to a different DSN, all in the same ODBC.INI file; the only difference is that the other statement includes a schema.&lt;/P&gt;&lt;P&gt;libname etllib odbc dsn="etl" user="myuser" pass="mypassword" schema="myschema";&lt;/P&gt;&lt;P&gt;PS: this statement that executes resides in a file created a long time ago. Maybe some variable created that reside in the system somewhere. The one that fails was created today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have even tried&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;caslib seacoastlib datasource="seacoast" user="myuser" pass="mypassword" &lt;/PRE&gt;&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 16:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668408#M23116</guid>
      <dc:creator>thebugslayer</dc:creator>
      <dc:date>2020-07-10T16:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME and CASLIB statements failing with ERROR in LIBNAME stmt and user param is invalid error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668409#M23117</link>
      <description>&lt;P&gt;SAS Library names are limited to &lt;STRONG&gt;8 &lt;/STRONG&gt;characters;&lt;/P&gt;
&lt;P&gt;seacoastlib is 11 characters&lt;/P&gt;
&lt;P&gt;make it shorter&lt;/P&gt;
&lt;P&gt;seacoast would be acceptable.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 16:37:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668409#M23117</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-10T16:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME and CASLIB statements failing with ERROR in LIBNAME stmt and user param is invalid error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668436#M23120</link>
      <description>Thank you so much!&lt;BR /&gt;SAS should take care not to use non-compliant names in online examples.</description>
      <pubDate>Fri, 10 Jul 2020 18:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668436#M23120</guid>
      <dc:creator>thebugslayer</dc:creator>
      <dc:date>2020-07-10T18:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME and CASLIB statements failing with ERROR in LIBNAME stmt and user param is invalid error</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668465#M23129</link>
      <description>&lt;P&gt;Please post the link to the online example you reference that used a non-compliant name.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 19:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME-and-CASLIB-statements-failing-with-ERROR-in-LIBNAME-stmt/m-p/668465#M23129</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-10T19:51:55Z</dc:date>
    </item>
  </channel>
</rss>

