<?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: how to creat library in sas? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-creat-library-in-sas/m-p/278980#M56194</link>
    <description>&lt;P&gt;That has nothing to do with creating a library.&lt;/P&gt;
&lt;P&gt;That would be the case if this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mydata '/folders/myfolders/sasuser.v94';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;fails.&lt;/P&gt;
&lt;P&gt;Your problem comes from the fact that you created your dataset in WORK, not in MYDATA:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tour;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A single-stage dataset name always means that the dataset will be created in WORK.&lt;/P&gt;
&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydata.tour;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;instead, and also include the library name in all further references, just like you did in proc print.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2016 11:29:57 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-06-21T11:29:57Z</dc:date>
    <item>
      <title>how to creat library in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-creat-library-in-sas/m-p/278978#M56192</link>
      <description>&lt;P&gt;my code :&lt;/P&gt;&lt;P&gt;options pagesize=60 pageno=1 linesize=80 nodate;&lt;BR /&gt;libname mydata '/folders/myfolders/sasuser.v94';&lt;/P&gt;&lt;P&gt;proc contents data= mydata._all_;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data tour;&lt;BR /&gt;input Country $ Nights Aircost Landcost Vendor $;&lt;BR /&gt;datalines;&lt;BR /&gt;France 8 793 575 Major&lt;BR /&gt;Spain 10 805 510 Hispania&lt;BR /&gt;India 10 . 489 Royal&lt;BR /&gt;Peru 7 722 590 Mundial&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc print data=tour;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=mydata.tour;&lt;/P&gt;&lt;P&gt;TITLE 'Data Set MYLIB.INTERNATIONALTOURs ';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;73&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 proc print data=mydata.tour;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: File MYDATA.TOUR.DATA does not exist.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 TITLE 'Data Set MYLIB.INTERNATIONALTOURs ';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Jun 2016 11:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-creat-library-in-sas/m-p/278978#M56192</guid>
      <dc:creator>francisca</dc:creator>
      <dc:date>2016-06-21T11:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to creat library in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-creat-library-in-sas/m-p/278980#M56194</link>
      <description>&lt;P&gt;That has nothing to do with creating a library.&lt;/P&gt;
&lt;P&gt;That would be the case if this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mydata '/folders/myfolders/sasuser.v94';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;fails.&lt;/P&gt;
&lt;P&gt;Your problem comes from the fact that you created your dataset in WORK, not in MYDATA:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tour;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A single-stage dataset name always means that the dataset will be created in WORK.&lt;/P&gt;
&lt;P&gt;Use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydata.tour;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;instead, and also include the library name in all further references, just like you did in proc print.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 11:29:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-creat-library-in-sas/m-p/278980#M56194</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-21T11:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to creat library in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-creat-library-in-sas/m-p/278985#M56197</link>
      <description>&lt;P&gt;To use the library you created you need to use a two-level name (&lt;EM&gt;libref.dataset&lt;/EM&gt;).&amp;nbsp; If you omit the &lt;EM&gt;libref&lt;/EM&gt;, then by default the data set you create goes in a temporary library called &lt;EM&gt;work&lt;/EM&gt;.&amp;nbsp; To use library &lt;EM&gt;mydata&lt;/EM&gt;,&amp;nbsp;your code should look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options pagesize=60 pageno=1 linesize=80 nodate;&lt;BR /&gt;libname mydata '/folders/myfolders/sasuser.v94';&lt;/P&gt;&lt;P&gt;proc contents data= mydata._all_;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data mydata.tour;&lt;BR /&gt;input Country $ Nights Aircost Landcost Vendor $;&lt;BR /&gt;datalines;&lt;BR /&gt;France 8 793 575 Major&lt;BR /&gt;Spain 10 805 510 Hispania&lt;BR /&gt;India 10 . 489 Royal&lt;BR /&gt;Peru 7 722 590 Mundial&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc print data=mydata.tour;&lt;/P&gt;&lt;P&gt;TITLE 'Data Set MYLIB.INTERNATIONALTOURs ';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 11:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-creat-library-in-sas/m-p/278985#M56197</guid>
      <dc:creator>dougc</dc:creator>
      <dc:date>2016-06-21T11:49:13Z</dc:date>
    </item>
  </channel>
</rss>

