<?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: Importing data... in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61635#M17508</link>
    <description>Ha...  I checked the other three datasets and they ran fine...  It is the ONE I was using to test that wasn't working...  Such is life I suppose.</description>
    <pubDate>Fri, 14 Nov 2008 15:40:51 GMT</pubDate>
    <dc:creator>Milo08</dc:creator>
    <dc:date>2008-11-14T15:40:51Z</dc:date>
    <item>
      <title>Importing data...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61629#M17502</link>
      <description>hi,&lt;BR /&gt;
&lt;BR /&gt;
I have a dataset already created - by someone else - and they want me to run a bunch of frequency distributions on the data.  My problem is that I don't know how to import a SAS dataset into a SAS program.  I know how to do the analysis and I know how to run the procs, but I literally have no clue on how to get SAS data into SAS.  If someone could please point me to an example of that on the web I would be grateful.  Thank you very much.</description>
      <pubDate>Fri, 14 Nov 2008 14:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61629#M17502</guid>
      <dc:creator>Milo08</dc:creator>
      <dc:date>2008-11-14T14:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61630#M17503</link>
      <description>Assuming that you are in a Windows environment ...&lt;BR /&gt;
&lt;BR /&gt;
Put the SAS data set in a directory, e.g. c:\temp&lt;BR /&gt;
&lt;BR /&gt;
In SAS, create a libname statement, e.g.&lt;BR /&gt;
libname mylibrary 'C:\temp';&lt;BR /&gt;
&lt;BR /&gt;
proc print data=mylibrary.sasdatasetname;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Same idea on any other platform</description>
      <pubDate>Fri, 14 Nov 2008 14:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61630#M17503</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-11-14T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61631#M17504</link>
      <description>This is not working...&lt;BR /&gt;
&lt;BR /&gt;
I assigned the libname.  My SAS program did not like the name mylibrary for whatever reason.  I put in the correct directory.  &lt;BR /&gt;
&lt;BR /&gt;
And then I put in:&lt;BR /&gt;
&lt;BR /&gt;
proc print data = freqs.matches_mh_dif_lal_g5.sas7bdat;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
and I get this error:&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Invalid data set name freqs.matches_mh_dif_lal_g5.sas7bdat.&lt;BR /&gt;
ERROR: File WORK.MATCHES_MH_DIF_LAL_G5.DATA does not exist.</description>
      <pubDate>Fri, 14 Nov 2008 14:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61631#M17504</guid>
      <dc:creator>Milo08</dc:creator>
      <dc:date>2008-11-14T14:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61632#M17505</link>
      <description>What SAS release are you running? On what platform?&lt;BR /&gt;
And the input data, in what SAS release/platform was it created? How was it moved to it's current position?&lt;BR /&gt;
&lt;BR /&gt;
If you do a &lt;BR /&gt;
&lt;BR /&gt;
proc datasets lib=freqs;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
is your input table visible in the log?&lt;BR /&gt;
What is the exact name of your SAS data file?&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Fri, 14 Nov 2008 15:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61632#M17505</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-11-14T15:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61633#M17506</link>
      <description>SAS 9.1.3&lt;BR /&gt;
Windows XP&lt;BR /&gt;
&lt;BR /&gt;
The input data was created by a co-worker, who may or may not be using a more recent version.  It was sent to me via email and I placed it in a folder.  &lt;BR /&gt;
&lt;BR /&gt;
Proc datasets returned all four of the "input tables" I need to create frequency distributions from.  in fiddling around with it, just to figure what is going wrong I did this.  I think the part I am missing is the actual inputting of the data.  I just don't see any examples online where you input data that is already created.  I don't need to assign variables.  They were already assigned by someone else.  &lt;BR /&gt;
&lt;BR /&gt;
filename freqs 'P:\matches_mh_dif_lal_g5.sas7bdat';&lt;BR /&gt;
&lt;BR /&gt;
libname temp 'P:\';&lt;BR /&gt;
&lt;BR /&gt;
proc datasets lib=temp;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
data temp.matches_mh_dif_lal_g5 infile freqs;&lt;BR /&gt;
Proc print data=temp.matches_mh_dif_lal_g5 (obs=5);&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 14 Nov 2008 15:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61633#M17506</guid>
      <dc:creator>Milo08</dc:creator>
      <dc:date>2008-11-14T15:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61634#M17507</link>
      <description>There is no need for you to input the data, it's accessible by SAS after the libname statement. Your error is that you refer to the physical name of the file. You should only refer to the logical table name (that is beacuse you program could move to ZOS where the physical tables have differnt structure/names).&lt;BR /&gt;
&lt;BR /&gt;
libname temp 'P:\';&lt;BR /&gt;
Proc print data=temp.matches_mh_dif_lal_g5 (obs=5);&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
Be sure that the name after temp. matches the name in your proc datasets listing.&lt;BR /&gt;
&lt;BR /&gt;
Then try to open the file in the SAS explorer, can you do that?&lt;BR /&gt;
&lt;BR /&gt;
If this does not work, I suggest that you contact you co-worker to ask him to test this file, and maybe resend it in case it has been corrupted.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Fri, 14 Nov 2008 15:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61634#M17507</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-11-14T15:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61635#M17508</link>
      <description>Ha...  I checked the other three datasets and they ran fine...  It is the ONE I was using to test that wasn't working...  Such is life I suppose.</description>
      <pubDate>Fri, 14 Nov 2008 15:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61635#M17508</guid>
      <dc:creator>Milo08</dc:creator>
      <dc:date>2008-11-14T15:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61636#M17509</link>
      <description>the reason why &lt;BR /&gt;
&lt;BR /&gt;
LIBNAME mylibrary '&lt;PATH&gt;';&lt;BR /&gt;
&lt;BR /&gt;
did not work is that SAS require the &lt;I&gt;&lt;B&gt;libref&lt;/B&gt;&lt;/I&gt;&lt;B&gt;&lt;/B&gt; to be no greater than 8 characters.    It'll work fine if you use &lt;B&gt;mylib&lt;/B&gt; instead.  &lt;BR /&gt;
&lt;BR /&gt;
:-)&lt;/PATH&gt;</description>
      <pubDate>Fri, 14 Nov 2008 17:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61636#M17509</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-14T17:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data...</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61637#M17510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wat are you using ...sas on unix/linux or windows create libname and check whether your data set apperas at explorer windows or not.............if it doesnt check whether its not the hidden one &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 17:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Importing-data/m-p/61637#M17510</guid>
      <dc:creator>LearnByMistk</dc:creator>
      <dc:date>2015-01-02T17:09:27Z</dc:date>
    </item>
  </channel>
</rss>

