<?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: Libname with numbers and a SQL procedure in BASE SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Libname-with-numbers-and-a-SQL-procedure-in-BASE-SAS/m-p/7572#M127</link>
    <description>Hi LAP&lt;BR /&gt;
&lt;BR /&gt;
You're damn right, it was just a typo.  You definitly have a good eye!!   I can't believe I still make such a newbie mistake.  Sorry for have you wasted your time.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Karolus</description>
    <pubDate>Thu, 20 Mar 2008 07:46:05 GMT</pubDate>
    <dc:creator>Karolus</dc:creator>
    <dc:date>2008-03-20T07:46:05Z</dc:date>
    <item>
      <title>Libname with numbers and a SQL procedure in BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Libname-with-numbers-and-a-SQL-procedure-in-BASE-SAS/m-p/7570#M125</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I believed that Library names had to follow the SAS norms to be valid; i.e. they should begin with either a character or an underscore ( _ ) and after that other characters or NUMBERS are allowed.&lt;BR /&gt;
&lt;BR /&gt;
However when I assing the following library:&lt;BR /&gt;
&lt;BR /&gt;
LIBNAME MEGA712 BASE "W:\Stat\....\Testdata_subset";&lt;BR /&gt;
&lt;BR /&gt;
1).  there is no error message in the log...so it should be OK.&lt;BR /&gt;
&lt;BR /&gt;
2). Then, I run the following  sqL CREATE VIEW with 2 tables located in the mentioned library:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
	CREATE VIEW work.minimega AS&lt;BR /&gt;
	SELECT a.*, b.*&lt;BR /&gt;
	FROM MEGA712.Megadataset a, MEGA172.Megadataset2 b&lt;BR /&gt;
	WHERE a.PID=b.PID&lt;BR /&gt;
	AND a.Visit = b.Visit;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
3).  and again, there is no error message in the log...&lt;BR /&gt;
&lt;BR /&gt;
4).  but when I try to open the created VIEW, a get the following error message:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;ERROR: Libname MEGA172 is not assigned.&lt;BR /&gt;
ERROR: SQL View WORK.MINIMEGA could not be processed because at least one of the data sets, or&lt;BR /&gt;
views, referenced directly (or indirectly) by it could not be located, or opened successfully.&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
after many attemps, someone suggest me to change the name of the library with just characters, like this:&lt;BR /&gt;
&lt;BR /&gt;
LIBNAME MEGA BASE "W:\Stat\....\Testdata_subset";&lt;BR /&gt;
&lt;BR /&gt;
and success! with the change of name from MEGA712 to MEGA I don't get anymore problems with the SQL view.&lt;BR /&gt;
&lt;BR /&gt;
Later I test other non-SQL SAS procedures with the MEGA712 library and I don't have problems at all.  Then, why I get such error message with the name MEGA172 but not with MEGA?  any suggestions about this?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
Karolus

Message was edited by: Karolus</description>
      <pubDate>Wed, 19 Mar 2008 15:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Libname-with-numbers-and-a-SQL-procedure-in-BASE-SAS/m-p/7570#M125</guid>
      <dc:creator>Karolus</dc:creator>
      <dc:date>2008-03-19T15:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Libname with numbers and a SQL procedure in BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Libname-with-numbers-and-a-SQL-procedure-in-BASE-SAS/m-p/7571#M126</link>
      <description>You show a libname definition for MEGA712, but not MEGA172.  Has the libname MEGA172 also been defined? or are both of the dataset in the MEGA712 library?&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Hi&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I believed that Library names had to follow the SAS&lt;BR /&gt;
&amp;gt; norms to be valid; i.e. they should begin with either&lt;BR /&gt;
&amp;gt; a character or an underscore ( _ ) and after that&lt;BR /&gt;
&amp;gt; other characters or NUMBERS are allowed.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; However when I assing the following library:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; LIBNAME MEGA712 BASE "W:\Stat\....\Testdata_subset";&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; 1).  there is no error message in the log...so it&lt;BR /&gt;
&amp;gt; should be OK.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; 2). Then, I run the following  sqL CREATE VIEW with 2&lt;BR /&gt;
&amp;gt; tables located in the mentioned library:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; PROC SQL;&lt;BR /&gt;
&amp;gt; 	CREATE VIEW work.minimega AS&lt;BR /&gt;
&amp;gt; 	SELECT a.*, b.*&lt;BR /&gt;
&amp;gt; 	FROM MEGA712.Megadataset a, MEGA172.Megadataset2 b&lt;BR /&gt;
&amp;gt; 	WHERE a.PID=b.PID&lt;BR /&gt;
&amp;gt; 	AND a.Visit = b.Visit;&lt;BR /&gt;
&amp;gt; QUIT;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; 3).  and again, there is no error message in the&lt;BR /&gt;
&amp;gt; log...&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; 4).  but when I try to open the created VIEW, a get&lt;BR /&gt;
&amp;gt; the following error message:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;B&gt;ERROR: Libname MEGA172 is not assigned.&lt;BR /&gt;
&amp;gt; ERROR: SQL View WORK.MINIMEGA could not be processed&lt;BR /&gt;
&amp;gt; because at least one of the data sets, or&lt;BR /&gt;
&amp;gt; views, referenced directly (or indirectly) by it&lt;BR /&gt;
&amp;gt; could not be located, or opened successfully.&lt;/B&gt;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; after many attemps, someone suggest me to change the&lt;BR /&gt;
&amp;gt; name of the library with just characters, like this:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; LIBNAME MEGA BASE "W:\Stat\....\Testdata_subset";&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; and success! with the change of name from MEGA712 to&lt;BR /&gt;
&amp;gt; MEGA I don't get anymore problems with the SQL view.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Later I test other non-SQL SAS procedures with the&lt;BR /&gt;
&amp;gt; MEGA712 library and I don't have problems at all.&lt;BR /&gt;
&amp;gt; Then, why I get such error message with the name&lt;BR /&gt;
&amp;gt; MEGA172 but not with MEGA?  any suggestions about&lt;BR /&gt;
&amp;gt;  this?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Kind regards&lt;BR /&gt;
&amp;gt; Karolus&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Message was edited by: Karolus</description>
      <pubDate>Wed, 19 Mar 2008 20:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Libname-with-numbers-and-a-SQL-procedure-in-BASE-SAS/m-p/7571#M126</guid>
      <dc:creator>LAP</dc:creator>
      <dc:date>2008-03-19T20:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Libname with numbers and a SQL procedure in BASE SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Libname-with-numbers-and-a-SQL-procedure-in-BASE-SAS/m-p/7572#M127</link>
      <description>Hi LAP&lt;BR /&gt;
&lt;BR /&gt;
You're damn right, it was just a typo.  You definitly have a good eye!!   I can't believe I still make such a newbie mistake.  Sorry for have you wasted your time.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Karolus</description>
      <pubDate>Thu, 20 Mar 2008 07:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Libname-with-numbers-and-a-SQL-procedure-in-BASE-SAS/m-p/7572#M127</guid>
      <dc:creator>Karolus</dc:creator>
      <dc:date>2008-03-20T07:46:05Z</dc:date>
    </item>
  </channel>
</rss>

