<?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: File is not a SAS data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497057#M131622</link>
    <description>&lt;P&gt;Look at the beginning of the file and see if it looks like a SAS dataset.&amp;nbsp; Compare it to the beginning of the file that works.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
 infile "%sysfunc(pathname(data))/other_file.sas7bdat" recfm=f lrecl=80 obs=3 ;
 input;
 list;
run;

data _null_;
 infile "%sysfunc(pathname(data))/file_name.sas7bdat" recfm=f lrecl=80 obs=3 ;
 input;
 list;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Sep 2018 16:39:17 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-09-19T16:39:17Z</dc:date>
    <item>
      <title>Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497030#M131603</link>
      <description>&lt;P&gt;I'm trying to access '\\server\folder\file_name.sas7bdat', but I'm getting a data set&amp;nbsp;error.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname data '\\server\folder';&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc contents data=data._all_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output&lt;/P&gt;&lt;P&gt;ERROR: File DATA.FILE_NAME.DATA is not a SAS data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The properties of the file says it is a SAS Data Set (.sas7bdat), so I'm not sure what's going on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Added libname statement&amp;nbsp;and filepath.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 16:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497030#M131603</guid>
      <dc:creator>publicSynechism</dc:creator>
      <dc:date>2018-09-19T16:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497034#M131605</link>
      <description>&lt;P&gt;You might show the libname statement you used to create the DATA library where you placed the data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 15:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497034#M131605</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-19T15:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497041#M131609</link>
      <description>&lt;P&gt;Other SAS data sets in this&amp;nbsp;library do not generate this error.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 16:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497041#M131609</guid>
      <dc:creator>publicSynechism</dc:creator>
      <dc:date>2018-09-19T16:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497042#M131610</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216525"&gt;@publicSynechism&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Other SAS data sets in this&amp;nbsp;library do not generate this error.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That doesn't make sense. Your code actually is referencing a library not a data set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data = &lt;FONT size="5" color="#993366"&gt;&lt;STRONG&gt;data._all_&lt;/STRONG&gt; &lt;/FONT&gt;;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To access a data set perhaps try and explicitly referencing it?&lt;/P&gt;
&lt;P&gt;If this doesn't work, please post your full log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=data.file_name;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Sep 2018 16:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497042#M131610</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-19T16:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497044#M131611</link>
      <description>&lt;P&gt;For this log, I used proc contents on two separate files.&lt;/P&gt;&lt;P&gt;\\server\folder\file_name.sas7bdat&lt;/P&gt;&lt;P&gt;\\server\folder\other_file.sas7bdat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; data &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'\\server\folder'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;contents&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=data.other_file;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;contents&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=data.file_name;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 libname data&lt;/P&gt;&lt;P&gt;1 ! '\\server\folder;&lt;/P&gt;&lt;P&gt;NOTE: Libref DATA was successfully assigned as follows:&lt;/P&gt;&lt;P&gt;Engine: V9&lt;/P&gt;&lt;P&gt;Physical Name:&lt;/P&gt;&lt;P&gt;\\server\folder&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3 proc contents data=data.other_file;&lt;/P&gt;&lt;P&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;/P&gt;&lt;P&gt;NOTE: Data file DATA.OTHER_FILE.DATA is in a format that is native to another host, or the file&lt;/P&gt;&lt;P&gt;encoding does not match the session encoding. Cross Environment Data Access will be used, which&lt;/P&gt;&lt;P&gt;might require additional CPU resources and might reduce performance.&lt;/P&gt;&lt;P&gt;4 run;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.66 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.56 seconds&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;6 proc contents data=data.file_name;&lt;/P&gt;&lt;P&gt;ERROR: File DATA.FILE_NAME.DATA is not a SAS data set.&lt;/P&gt;&lt;P&gt;7 run;&lt;/P&gt;&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.03 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 16:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497044#M131611</guid>
      <dc:creator>publicSynechism</dc:creator>
      <dc:date>2018-09-19T16:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497045#M131612</link>
      <description>&lt;P&gt;The real log will usually indicate something that would tell why this doesn't work. It could be you have spaces in the name, it could be case sensitive. Try renaming the file to a name that's all lower case and try that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216525"&gt;@publicSynechism&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;For this log, I used proc contents on two separate files.&lt;/P&gt;
&lt;P&gt;\\server\folder\file_name.sas7bdat&lt;/P&gt;
&lt;P&gt;\\server\folder\other_file.sas7bdat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; data &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'\\server\folder'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;contents&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=data.other_file;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;contents&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=data.file_name;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 libname data&lt;/P&gt;
&lt;P&gt;1 ! '\\server\folder;&lt;/P&gt;
&lt;P&gt;NOTE: Libref DATA was successfully assigned as follows:&lt;/P&gt;
&lt;P&gt;Engine: V9&lt;/P&gt;
&lt;P&gt;Physical Name:&lt;/P&gt;
&lt;P&gt;\\server\folder&lt;/P&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;P&gt;3 proc contents data=data.other_file;&lt;/P&gt;
&lt;P&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;/P&gt;
&lt;P&gt;NOTE: Data file DATA.OTHER_FILE.DATA is in a format that is native to another host, or the file&lt;/P&gt;
&lt;P&gt;encoding does not match the session encoding. Cross Environment Data Access will be used, which&lt;/P&gt;
&lt;P&gt;might require additional CPU resources and might reduce performance.&lt;/P&gt;
&lt;P&gt;4 run;&lt;/P&gt;
&lt;P&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;/P&gt;
&lt;P&gt;real time 0.66 seconds&lt;/P&gt;
&lt;P&gt;cpu time 0.56 seconds&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;5&lt;/P&gt;
&lt;P&gt;6 proc contents data=data.file_name;&lt;/P&gt;
&lt;P&gt;ERROR: File DATA.FILE_NAME.DATA is not a SAS data set.&lt;/P&gt;
&lt;P&gt;7 run;&lt;/P&gt;
&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;/P&gt;
&lt;P&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;/P&gt;
&lt;P&gt;real time 0.03 seconds&lt;/P&gt;
&lt;P&gt;cpu time 0.03 seconds&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 16:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497045#M131612</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-19T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497048#M131614</link>
      <description>&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; data &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'\\server\folder'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;contents&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=data.otherfile;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;contents&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=data.filename;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;8 libname data&lt;/P&gt;&lt;P&gt;8 ! '\\server\folder';&lt;/P&gt;&lt;P&gt;NOTE: Libref DATA was successfully assigned as follows:&lt;/P&gt;&lt;P&gt;Engine: V9&lt;/P&gt;&lt;P&gt;Physical Name:&lt;/P&gt;&lt;P&gt;\\server\folder&lt;/P&gt;&lt;P&gt;9&lt;/P&gt;&lt;P&gt;10 proc contents data=data.otherfile;&lt;/P&gt;&lt;P&gt;NOTE: Data file DATA.OTHERFILE.DATA is in a format that is native to another host, or the file&lt;/P&gt;&lt;P&gt;encoding does not match the session encoding. Cross Environment Data Access will be used, which&lt;/P&gt;&lt;P&gt;might require additional CPU resources and might reduce performance.&lt;/P&gt;&lt;P&gt;11 run;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.16 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.10 seconds&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;13 proc contents data=data.filename;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: File DATA.FILENAME.DATA is not a SAS data set.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;14 run;&lt;/P&gt;&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.03 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 16:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497048#M131614</guid>
      <dc:creator>publicSynechism</dc:creator>
      <dc:date>2018-09-19T16:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497050#M131616</link>
      <description>&lt;P&gt;Yeah, unfortunately it's only stating it's not a SAS data set. Both files are of the same format and from the same source (supposedly). Not sure why the one works and the other does not.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 16:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497050#M131616</guid>
      <dc:creator>publicSynechism</dc:creator>
      <dc:date>2018-09-19T16:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497051#M131617</link>
      <description>&lt;P&gt;The message seems pretty clear. That file with the .sas7bdat extension is NOT a SAS dataset. It is either corrupted or it is some other type of file that just has the wrong extension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 16:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497051#M131617</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-19T16:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497053#M131618</link>
      <description>&lt;P&gt;It must be.&amp;nbsp;Just wanted&amp;nbsp;to make sure I wasn't&amp;nbsp;overlooking something.&amp;nbsp;I'll contact the group that prepared the dataset. Thank you everyone for their input.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 16:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497053#M131618</guid>
      <dc:creator>publicSynechism</dc:creator>
      <dc:date>2018-09-19T16:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497057#M131622</link>
      <description>&lt;P&gt;Look at the beginning of the file and see if it looks like a SAS dataset.&amp;nbsp; Compare it to the beginning of the file that works.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
 infile "%sysfunc(pathname(data))/other_file.sas7bdat" recfm=f lrecl=80 obs=3 ;
 input;
 list;
run;

data _null_;
 infile "%sysfunc(pathname(data))/file_name.sas7bdat" recfm=f lrecl=80 obs=3 ;
 input;
 list;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Sep 2018 16:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497057#M131622</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-19T16:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497100#M131640</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216525"&gt;@publicSynechism&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It must be.&amp;nbsp;Just wanted&amp;nbsp;to make sure I wasn't&amp;nbsp;overlooking something.&amp;nbsp;I'll contact the group that prepared the dataset. Thank you everyone for their input.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unfortunately there are some individuals that are in the habit of confusing things by giving files extensions that do not actually match the content, though I usually see that in regards to files used with Excel. These folks think that naming a CSV (or html or xml or …)&amp;nbsp;file with XLS or XLSX extension is okay because Excel then opens the file. Perhaps someone did that in this case with a text file or other file format without realizing that the header information in the file is "different".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck and I hope you can get a usable data set.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 19:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497100#M131640</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-19T19:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497103#M131643</link>
      <description>&lt;P&gt;So apparently some software upgrade caused the SAS dataset to be corrupted during file transfer. As to the specifics of that, I do not know, but importing a CSV version of the file was successful. Thank you to everyone for troubleshooting with me. Thanks Tom, I'll try that in the future if I run into a similar problem.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 19:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497103#M131643</guid>
      <dc:creator>publicSynechism</dc:creator>
      <dc:date>2018-09-19T19:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497117#M131649</link>
      <description>&lt;P&gt;It could be that the offending SAS dataset was created under a different operating system, then just moved to a new SAS server using a file copy. This could produce the symptoms you are seeing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 20:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497117#M131649</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-19T20:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497120#M131651</link>
      <description>&lt;P&gt;Interesting. What is it about&amp;nbsp;the data set or the OS&amp;nbsp;that&amp;nbsp;causes that problem?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 20:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497120#M131651</guid>
      <dc:creator>publicSynechism</dc:creator>
      <dc:date>2018-09-19T20:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497362#M131803</link>
      <description>&lt;P&gt;Try to repair this dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets library=data;
repair have;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Sep 2018 13:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/497362#M131803</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-20T13:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/783468#M249811</link>
      <description>&lt;P&gt;I have run into exactly the same issue as the original post. And it can't be an issue of it not being a sas data set. I built the data set it is referring to in sas (it refers to a work file). Code that referenced a library that worked last night is generating this error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: File DORA2.COUNSELOR.DATA is not a SAS data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see past results in this data base. It just won't let me build new tables. I even built a new libname and it won't let me use that.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 21:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/783468#M249811</guid>
      <dc:creator>noetsi</dc:creator>
      <dc:date>2021-12-01T21:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error: File is not a SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/783478#M249816</link>
      <description>&lt;P&gt;Please don't add a new problem to an existing post. You can always add a link to existing post from your new one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also when you are posting error messages, also include the SAS statements generating them, otherwise we are just guessing what you are doing to cause the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possible cause for the corruption of a SAS dataset is lack of disk space to completely create it. Another possibility is faulty disk storage.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 22:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-File-is-not-a-SAS-data-set/m-p/783478#M249816</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-12-01T22:31:02Z</dc:date>
    </item>
  </channel>
</rss>

