<?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 opening SAS data set in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681481#M79461</link>
    <description>&lt;P&gt;How are you opening your data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using code so you can see the errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname yourData 'path to folder';

data want;
set yourData.dataSetName;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What do you get when you run the following?&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/326526"&gt;@raivester&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I received a SAS date set file. When I double clicked the file, I got the error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Unable to open the table TMP4.FILE_NAME. TMP4.file_name cannot be opened. Do you want to select a different table to open?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I moved the file to a different folder in a different directory, I had no issues. Any ideas why this happened?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Sep 2020 19:48:45 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-09-03T19:48:45Z</dc:date>
    <item>
      <title>Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681466#M79458</link>
      <description>&lt;P&gt;I received a SAS date set file. When I double clicked the file, I got the error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Unable to open the table TMP4.FILE_NAME. TMP4.file_name cannot be opened. Do you want to select a different table to open?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I moved the file to a different folder in a different directory, I had no issues. Any ideas why this happened?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 19:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681466#M79458</guid>
      <dc:creator>raivester</dc:creator>
      <dc:date>2020-09-03T19:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681467#M79459</link>
      <description>&lt;P&gt;Actually--the file does NOT open.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 19:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681467#M79459</guid>
      <dc:creator>raivester</dc:creator>
      <dc:date>2020-09-03T19:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681472#M79460</link>
      <description>&lt;P&gt;1) By what code/tool you tried to open the file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Is it a sas data set or an external file?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; What is your sas environment? (SAS EG / SAS STUDIO / ...) and&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; What OS are you using -&amp;nbsp; (windows / unix or linox / other)?&lt;/P&gt;
&lt;P&gt;2) If it is a sas data set, maybe it is damaged and&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Did you assigned a libname, named tmp4, to the directory where to&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; you copied the file?&lt;/P&gt;
&lt;P&gt;3) Is the file created in a different sas environment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 19:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681472#M79460</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-09-03T19:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681481#M79461</link>
      <description>&lt;P&gt;How are you opening your data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using code so you can see the errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname yourData 'path to folder';

data want;
set yourData.dataSetName;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What do you get when you run the following?&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/326526"&gt;@raivester&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I received a SAS date set file. When I double clicked the file, I got the error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Unable to open the table TMP4.FILE_NAME. TMP4.file_name cannot be opened. Do you want to select a different table to open?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I moved the file to a different folder in a different directory, I had no issues. Any ideas why this happened?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 19:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681481#M79461</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-03T19:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681519#M79462</link>
      <description>&lt;P&gt;I don't think this is the problem, but just to rule things out, would you please run this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC 	OPTIONS	OPTION=DLDMGACTION;
RUN;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If, when you run the above, you find the option is set to FAIL or ABORT, you may wish to consider other options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SAS encounters a damaged dataset, it will take the action specified by the DLDMGACTION.&amp;nbsp; I typically use REPAIR.&amp;nbsp; If the option is set to REPAIR, SAS will automatically try to repair a damaged dataset including rebuilding indices and constraints. You could have a performance problem if SAS tries to rebuild an index on a very large dataset, so for production jobs, one has to consider the trade offs.&amp;nbsp; &amp;nbsp;For batch jobs, I typically use&amp;nbsp;NOINDEX which means that SAS will repair the dataset but not rebuild any indices or constraints.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 22:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681519#M79462</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-09-03T22:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681597#M79465</link>
      <description>&lt;P&gt;Maybe that directory don't have right to read or access . Talk to your OS Admin.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 13:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681597#M79465</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-09-04T13:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681606#M79466</link>
      <description>&lt;P&gt;If you are running SAS on Unix make sure the filename is all lowercase.&amp;nbsp; If you ask SAS to open&amp;nbsp;&lt;SPAN&gt;TMP4.FILE_NAME it will look for a file name file_name.sas7bdat in the directory that the TMP4 libref is pointing to.&amp;nbsp; If you are running on Unix the filesystem is case sensitive so if the file is named File_Name.sas7bdat or FILE_NAME.sas7bdat then it will not be found.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 12:20:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/681606#M79466</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-04T12:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/895586#M82942</link>
      <description>&lt;P&gt;Hi Raivester! I've encountered a similar problem and the dataset cannot open regardless. Were you able to get around it?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 15:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/895586#M82942</guid>
      <dc:creator>Wonder94</dc:creator>
      <dc:date>2023-09-24T15:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/895588#M82943</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/454512"&gt;@Wonder94&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Raivester! I've encountered a similar problem and the dataset cannot open regardless. Were you able to get around it?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since the original poster never responded three years ago I doubt they will respond now.&amp;nbsp; Open a new thread and include the details or what you are doing.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 15:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/895588#M82943</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-24T15:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/909739#M83204</link>
      <description>&lt;P&gt;Same here! I will write here as the issue gets solved for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanking you,&lt;/P&gt;
&lt;P&gt;Yours sincerely,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 09:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/909739#M83204</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2023-12-27T09:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/909743#M83205</link>
      <description>&lt;P&gt;The problem is solved partially for me because I know why the problem is occurring.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running a programme in batch mode, which is creating multiple outputs. Now this programme is using a format which is a dynamic format getting created and being used from data. The dataset is not opening because the format is not getting loaded. The workaround for now for me is to run the programme and then open the dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But yes, the issue is because a format is not getting loaded. It is a dynamic format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So solution is not to use dynamic format (format getting created from data) and to use static values in the format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanking you,&lt;/P&gt;
&lt;P&gt;Yours sincerely,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 10:04:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/909743#M83205</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2023-12-27T10:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/909744#M83206</link>
      <description>&lt;P&gt;To rearticulate the problem:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The dataset contains a variable which has a format. This format is user defined. As this format (user defined) is not available to SAS (it is available only in that programme), the dataset is not opening.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it is opening when the programme is run before, because then this user defined format becomes available to SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 10:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/909744#M83206</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2023-12-27T10:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/909756#M83207</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nofmterr;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;allows you to open a dataset where you don't have the format available at the moment.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 12:35:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/909756#M83207</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-12-27T12:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/909816#M83214</link>
      <description>&lt;P&gt;Ok. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 10:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/909816#M83214</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2023-12-28T10:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error opening SAS data set</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/910189#M83215</link>
      <description>&lt;P&gt;This is working!&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;options nofmterr;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;is working absolutely fine &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks once again!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanking you,&lt;/P&gt;
&lt;P&gt;Yours sincerely,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 06:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-opening-SAS-data-set/m-p/910189#M83215</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2024-01-03T06:14:02Z</dc:date>
    </item>
  </channel>
</rss>

