<?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 message in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282762#M59205</link>
    <description>&lt;P&gt;Screen shots didn't attach apparently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which LIBRARY did you tell the import to go to? The default would likely have been WORK. If you didn't assign a library you might look in the SAS Explorer window for a library with an odd name and look there for the data file. If so, change the proc print to use that library name instead of IN2.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2016 18:59:34 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-07-07T18:59:34Z</dc:date>
    <item>
      <title>Error message: Libname &lt;dataset&gt; is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282743#M59202</link>
      <description>&lt;P&gt;while working encountered error message ERROR: Libname &amp;lt;dataset&amp;gt;is not assigned.please help to understand and remedy&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;7 proc print data=in2.prac;&lt;BR /&gt;ERROR: Libname IN2 is not assigned.&lt;BR /&gt;8 run;&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 17:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282743#M59202</guid>
      <dc:creator>maddyjoshi29</dc:creator>
      <dc:date>2016-07-07T17:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282744#M59203</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93587"&gt;@maddyjoshi29&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;while working encountered error message ERROR: Libname &amp;lt;dataset&amp;gt;is not assigned.please help to understand and remedy&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;7 proc print data=in2.prac; &lt;STRONG&gt;&amp;lt; this line says the data set to print named PRAC is in the library named IN2.&lt;/STRONG&gt;&lt;BR /&gt;ERROR: Libname IN2 is not assigned.&lt;BR /&gt;8 run;&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the library has not been assigned for the current session then SAS cannot find the data. A libname statement similar to:&lt;/P&gt;
&lt;P&gt;LIBNAME IN2 "C:\path\foldername";&lt;/P&gt;
&lt;P&gt;is one way to provide a library. If you use the menu (such as Tools&amp;gt;New Library)&amp;nbsp;to create a library you may need to indicate "make it permanent" by checking a box to make the system automatically assign the the library the next time SAS starts. The exact approach varies between Base SAS, Enterprise Guide, SAS Studio and University Edition (varies a LOT for UE).&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 17:23:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282744#M59203</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-07T17:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282748#M59204</link>
      <description>I am using SAS version 9.0. I cant see option for new library in tools.... what I am trying to do is , though I have been doing this from quite some time and successfully done it before but now getting error.&lt;BR /&gt;&lt;BR /&gt;I go to file &amp;gt; import data( saved in 97,2003 format in excel in drive and save in as folder in one of my library... I have attached the screenshot of steps for your reference.</description>
      <pubDate>Thu, 07 Jul 2016 17:45:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282748#M59204</guid>
      <dc:creator>maddyjoshi29</dc:creator>
      <dc:date>2016-07-07T17:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282762#M59205</link>
      <description>&lt;P&gt;Screen shots didn't attach apparently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which LIBRARY did you tell the import to go to? The default would likely have been WORK. If you didn't assign a library you might look in the SAS Explorer window for a library with an odd name and look there for the data file. If so, change the proc print to use that library name instead of IN2.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 18:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282762#M59205</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-07T18:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error message: Libname &lt;dataset&gt; is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282776#M59206</link>
      <description>&lt;P&gt;I doubt you're using SAS 9.0, can you confirm with the following code, check your log for the output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysver;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Navigate to your library/folders window on the left hand side. Do you see a library called IN2? If not, you can create it using the code previously suggested.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is a library that you expect to be pre-assigned, ie assigned when you start up, it could be either a temporary network glitch when you started SAS didn't allow for the library to be assigned or something changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 19:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282776#M59206</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-07T19:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282860#M59210</link>
      <description>I have already created a library (by the name of Recorded) and saved my imported excel file by the name of IN2.&lt;BR /&gt;And when I write -&lt;BR /&gt;Proc Print data=In2.recorded;&lt;BR /&gt;run;&lt;BR /&gt;it doesn't run and gives that error in log.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jul 2016 05:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282860#M59210</guid>
      <dc:creator>maddyjoshi29</dc:creator>
      <dc:date>2016-07-08T05:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error message: Libname &lt;dataset&gt; is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282861#M59211</link>
      <description>hello Reeza,&lt;BR /&gt;&lt;BR /&gt;I will check that though but I'm sure using ver-9.0&lt;BR /&gt;I had been able to create library and run the code previously... nevertheless will check again and keep posted.</description>
      <pubDate>Fri, 08 Jul 2016 05:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282861#M59211</guid>
      <dc:creator>maddyjoshi29</dc:creator>
      <dc:date>2016-07-08T05:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error message: Libname &lt;dataset&gt; is not assigned</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282996#M59216</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The LIBRARY is a nickname for a physical path location on your operating system or server. For example, these all define the ORION library:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Windows: libname orion 'c:\temp\classes\pg1';
Unix: libname orion '/unx/classes/pg1';
Mainframe: libname orion 'SASCZZ.DATA.CLASSES.PG1' DISP=SHR;
SAS on Demand server: libname orion '/home/cynther0/pg1';
SAS University Edition: libname orion '/folders/myfolders/ecprg193';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Once you have the library defined, then you can run PROC CONTENTS to see the names of the datasets stored in the library:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=orion._all_;
  title 'what are the datasets';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Then, you refer to the datasets by their 2 level name. So, let's take Windows as an example. If I have&lt;/P&gt;
&lt;P&gt;Physical file name, as stored on disk: &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;c:\temp\classes\pg1\customers.sas7bdat&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;LIBNAME statement: &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;libname orion 'c:\temp\classes\pg1';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;Then to print the rows, I would use this code:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc print data=orion.customers;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; title 'Orion.Customers';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, ORION (the name of the library) is the first part of the 2-level name and CUSTOMERS (the file name of the physical file) is the second part of the 2-level name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This is how the LIBNAME works, no matter what version of SAS you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 15:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/282996#M59216</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-07-08T15:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/283005#M59217</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93587"&gt;@maddyjoshi29&lt;/a&gt; wrote:&lt;BR /&gt;I have already created a library (by the name of Recorded) and saved my imported excel file by the name of IN2.&lt;BR /&gt;And when I write -&lt;BR /&gt;Proc Print data=In2.recorded;&lt;BR /&gt;run;&lt;BR /&gt;it doesn't run and gives that error in log.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The reference is &lt;STRONG&gt;always&lt;/STRONG&gt; library.dataset, not dataset.library.&lt;/P&gt;
&lt;P&gt;Us&lt;/P&gt;
&lt;P&gt;proc print data=recorded.in2;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 16:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/283005#M59217</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-08T16:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/283008#M59218</link>
      <description>oh my god... I didnt even notice this mistake.. thank you so much ballardw :):).. appreciate your effort.. thanks a&lt;BR /&gt;ton</description>
      <pubDate>Fri, 08 Jul 2016 17:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-message-Libname-lt-dataset-gt-is-not-assigned/m-p/283008#M59218</guid>
      <dc:creator>maddyjoshi29</dc:creator>
      <dc:date>2016-07-08T17:14:32Z</dc:date>
    </item>
  </channel>
</rss>

