<?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 Opening up a SAS data file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/398982#M278450</link>
    <description>&lt;P&gt;I am trying to view this downloaded SAS data file. However, I am having problems with opening it. I try to open 'new program' within SAS and the file will show up if I press show all files. However, when it comes up it is just all characters.(Like shown in the attached picture.) Then I can see&amp;nbsp;it in the given folder when I&amp;nbsp; search for it on my PC through the explorer (SAS enviorment) but when I try to open it then, it says the file does not exist or cant be displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the pictures and the file itself. I have been stuck on this for a while. Thank YOU!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 00:01:26 GMT</pubDate>
    <dc:creator>jsjoden</dc:creator>
    <dc:date>2017-09-27T00:01:26Z</dc:date>
    <item>
      <title>Opening up a SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/398982#M278450</link>
      <description>&lt;P&gt;I am trying to view this downloaded SAS data file. However, I am having problems with opening it. I try to open 'new program' within SAS and the file will show up if I press show all files. However, when it comes up it is just all characters.(Like shown in the attached picture.) Then I can see&amp;nbsp;it in the given folder when I&amp;nbsp; search for it on my PC through the explorer (SAS enviorment) but when I try to open it then, it says the file does not exist or cant be displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the pictures and the file itself. I have been stuck on this for a while. Thank YOU!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 00:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/398982#M278450</guid>
      <dc:creator>jsjoden</dc:creator>
      <dc:date>2017-09-27T00:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Opening up a SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/398983#M278451</link>
      <description />
      <pubDate>Wed, 27 Sep 2017 00:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/398983#M278451</guid>
      <dc:creator>jsjoden</dc:creator>
      <dc:date>2017-09-27T00:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Opening up a SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/399001#M278452</link>
      <description>&lt;P&gt;Sas dataset is a binary file with sas specific format, depending on sas varsion.&lt;/P&gt;
&lt;P&gt;A sas program is a text file.&lt;/P&gt;
&lt;P&gt;You cannot display sas dataset using sas program edotor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You got the message "The table SASDATA.nhanes2006 either does npt exist or cannot be displayed".&lt;/P&gt;
&lt;P&gt;As file is displayed in the library, on the left side window - it exists - but it cannot be displayed.&lt;/P&gt;
&lt;P&gt;There might be different reasons for it:&lt;/P&gt;
&lt;P&gt;- Is file on same computer as SAS installation? Link to library shows: "\\client\e$\SASData".&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It seems to me that answer is NO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; Do you have permission to read the file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; Is CLIENT and your PC holding same OS?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If different OS (like linux and windows) the sas datasets are of different format and you might need&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use PROC CPORT on client and PROC CIMPORT on your PC or use SAS CONNECT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; Was the sas dataset created in same sas version as you use on your PC ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; - Maybe the file is corrupted ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What OS you use and in what OS was the sas dataset created ?&lt;/P&gt;
&lt;P&gt;What sas version are you using? and with what sas varsion was the sas dataset created ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 02:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/399001#M278452</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-09-27T02:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Opening up a SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/399005#M278453</link>
      <description>&lt;P&gt;thanks for the response. So I have managed to be able to view it in the table. Everything seems great. Now my question is how do I use it to code? I beleive I use libname and set statement. But how would that look?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 02:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/399005#M278453</guid>
      <dc:creator>jsjoden</dc:creator>
      <dc:date>2017-09-27T02:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Opening up a SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/399010#M278454</link>
      <description>&lt;P&gt;If you can view the table than you can also see the variable names and their attributes, or&lt;/P&gt;
&lt;P&gt;you can use PROC CONTENTS to see that information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new;
  set &amp;lt;libname&amp;gt;.&amp;lt;dataset name&amp;gt;;
       ... any sas code relating to variable ...
run;

/* === OR === */
proc print data=&amp;lt;libname&amp;gt;.&amp;lt;dataset name&amp;gt;;
    ... any print options or none ...
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2017 03:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/399010#M278454</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-09-27T03:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Opening up a SAS data file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/399015#M278455</link>
      <description>&lt;P&gt;Awesome! Thank you! This helps a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 03:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Opening-up-a-SAS-data-file/m-p/399015#M278455</guid>
      <dc:creator>jsjoden</dc:creator>
      <dc:date>2017-09-27T03:43:59Z</dc:date>
    </item>
  </channel>
</rss>

