<?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: &amp;quot;ERROR: No data set open to look up variable&amp;quot; genmod proc. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128730#M260419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply! Yes it would have the two consecutive underscores. What is odd is that the very same code works fine with my old dataset (the same as now just without some corrections). I've also tried excluding the ref_no variable totally from the procedure but it makes no difference. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 13:03:06 GMT</pubDate>
    <dc:creator>UlrikkaRae</dc:creator>
    <dc:date>2013-10-31T13:03:06Z</dc:date>
    <item>
      <title>"ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128724#M260413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I don't know why I'm getting this message "ERROR: No data set open to look up variable" when I use the genmod proc. I HAVE specified the dataset an it works fine when using the dataset in other procedures (like the proc contents seen below).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sasexample3.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/4466_sasexample3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; What really confuses me is that the exact same code works when working with another dataset in another window. &lt;/P&gt;&lt;P&gt;Can anyone tell me what I'm doing wrong here? Is it to do with the code or the datset or...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards Emilie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 12:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128724#M260413</guid>
      <dc:creator>UlrikkaRae</dc:creator>
      <dc:date>2013-10-30T12:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128725#M260414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you run a freq on the variable ref__no_? It may be all missing. If the where clause results in no records it might cause that error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 14:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128725#M260414</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-10-30T14:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128726#M260415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following on that notion, is ref__no_ a character variable in the dataset?&amp;nbsp; If so, the where clause should change to where=(ref__no_ ne ' ').&amp;nbsp; Still, something isn't quite right.&amp;nbsp; However, since ref__no_ is the subject, if it is indeed missing, using the where clause can be dropped, as only those observations that have non-missing values will be used as subjects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 12:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128726#M260415</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-10-31T12:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128727#M260416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if it would cause the error, but just to rule it out, does the variable &lt;SPAN style="font-family: 'courier new', courier;"&gt;ref__no_&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;on the data set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;genuinely have two consecutive underscores between "ref" and "no", or should it be &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'courier new', courier;"&gt;ref_no_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; with one underscore between "ref" and "no"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Amir.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 12:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128727#M260416</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2013-10-31T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128728#M260417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I've tried a proc freq and a proc print and it looks like it should, including the ref_no variable. And I've tried with and without the WHERE statement, but the log either tells me "Response variables cannot be listed in the CLASS statement" (and I don't get what that means - what is a response variable?) or it just tells me:&lt;/P&gt;&lt;P&gt;"The SAS System stopped processing this step because of error" with no information on the actual error.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sasex4.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4474_sasex4.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;On another note, why is the guessingrow statement not working? Am I using it completely wrong here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 12:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128728#M260417</guid>
      <dc:creator>UlrikkaRae</dc:creator>
      <dc:date>2013-10-31T12:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128729#M260418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer. I've tried excluding the ref_no totally, but it still doesn't work: I get the following: "Response variables cannot be listed in the CLASS statement" or just "The SAS System stopped processing this step because of error" and sometimes the log even tells me "no dataset to look up variables"! Why suddenly that? It DOES have a dataset decribed for it!. I have tried reducing the code too, see answer to Ballard, but that doesn't help either. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128729#M260418</guid>
      <dc:creator>UlrikkaRae</dc:creator>
      <dc:date>2013-10-31T13:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128730#M260419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply! Yes it would have the two consecutive underscores. What is odd is that the very same code works fine with my old dataset (the same as now just without some corrections). I've also tried excluding the ref_no variable totally from the procedure but it makes no difference. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128730#M260419</guid>
      <dc:creator>UlrikkaRae</dc:creator>
      <dc:date>2013-10-31T13:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128731#M260420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About the guessing rows, think I just got it now that you can only use that in a proc import procedure, and not like I have done here. So forget that question &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128731#M260420</guid>
      <dc:creator>UlrikkaRae</dc:creator>
      <dc:date>2013-10-31T13:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128732#M260421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to provide a copy of the dataset?&amp;nbsp; At least a partial copy with the first 10 or so rows would enable everyone to address what is going on, I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 11:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128732#M260421</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-11-01T11:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128733#M260422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would love to share a copy, but as far as I can see I can't attach anything else than an image or a film here? Or can I? It's simply to large, the dataset, to take a photo of it - there are too many columns (about 50 of them...).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 23:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128733#M260422</guid>
      <dc:creator>UlrikkaRae</dc:creator>
      <dc:date>2013-11-01T23:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128734#M260423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To attach data, click the advanced editor on the top right hand side of the reply box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the log from the contents and proc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 16:30:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128734#M260423</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-11-02T16:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128735#M260424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you Reeza. Here it is, sample of the dataset attached and beneath the log for both the code shown in my first post (1) and the log for the same code but without the WHERE statement and the variable ref__no_ (2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="4484" alt="ex with where and ref_no.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4484_ex with where and ref_no.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;(2)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="4485" alt="ex without where and ref no.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4485_ex without where and ref no.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I think it's important to note that the code shown in my first post has worked fine untill I made an update of SAS from 9.1 to 9.4 and had to import the dataset again. Maybe it's reading the variables differently now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Nov 2013 10:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128735#M260424</guid>
      <dc:creator>UlrikkaRae</dc:creator>
      <dc:date>2013-11-03T10:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128736#M260425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imported the leptocopy.xls dataset, saving it in my work directory as ark1.&amp;nbsp; I had no problems running the first set of code in 9.4.&amp;nbsp; The second code section did throw an error - All variables in the SUBJECT effect must be listed in a CLASS statement - which is exactly what I would expect.&amp;nbsp; I think any problems lie in the import process, and not in the GENMOD code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 13:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128736#M260425</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-11-04T13:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128737#M260426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Steve for trying it out! I have now contacted sas technical support to try and find out how I overcome the problem of office 32bit on a 64bit operative system. It is said that this should help with the import wizard which will let me control how the variables are being comprehended by sas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me, what import method did you use? Did you use proc import, or the import wizard?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 15:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128737#M260426</guid>
      <dc:creator>UlrikkaRae</dc:creator>
      <dc:date>2013-11-12T15:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128738#M260427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the import wizard.&amp;nbsp; I suppose I could have saved the code (last step), but I was more worried about whether the error was in the GENMOD code than whether the data were not coming across.&amp;nbsp; I did this in a 64 bit SAS/64 bit windows environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 16:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128738#M260427</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-11-12T16:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128739#M260428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Steve. This has been very helpfull, cause it gives me some important clues. Your time has been much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 18:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/128739#M260428</guid>
      <dc:creator>UlrikkaRae</dc:creator>
      <dc:date>2013-11-12T18:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR: No data set open to look up variable" genmod proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/713815#M260429</link>
      <description>&lt;P&gt;I've got the same error, It was because the csv file was open in another application (excel), I closed excel and it worked fine&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 04:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-ERROR-No-data-set-open-to-look-up-variable-quot-genmod-proc/m-p/713815#M260429</guid>
      <dc:creator>hoss29</dc:creator>
      <dc:date>2021-01-25T04:32:09Z</dc:date>
    </item>
  </channel>
</rss>

