<?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: Stuck on running a Data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808063#M318619</link>
    <description>&lt;P&gt;It is possible that you submitted code without a RUN; statement and that did not include any procedure or other statement after the data step that tells SAS to imply that a run was implied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint: if you write code end procedures with the appropriate Run; or Quit; statement when needed. It will save many headaches in the long run. The bit that SAS will usually figure out what to do from syntax fails when nothing follows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or show us the code of the data step and what follows.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Apr 2022 17:24:56 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-04-15T17:24:56Z</dc:date>
    <item>
      <title>Stuck on running a Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808061#M318617</link>
      <description>Yesterday when I ran my code, everything worked fine. Today things haven’t been working normally. When I ran the code to establish my libraries, variables, etc. everything ran fine. Now, when I try to run any of the data steps, it says that it’s “Running DATA step”, but it’s not moving on from that or producing results (and the Log is blank).&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to fix this???&lt;BR /&gt;&lt;BR /&gt;TIA!</description>
      <pubDate>Fri, 15 Apr 2022 17:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808061#M318617</guid>
      <dc:creator>Cruiser13</dc:creator>
      <dc:date>2022-04-15T17:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on running a Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808063#M318619</link>
      <description>&lt;P&gt;It is possible that you submitted code without a RUN; statement and that did not include any procedure or other statement after the data step that tells SAS to imply that a run was implied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint: if you write code end procedures with the appropriate Run; or Quit; statement when needed. It will save many headaches in the long run. The bit that SAS will usually figure out what to do from syntax fails when nothing follows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or show us the code of the data step and what follows.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 17:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808063#M318619</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-15T17:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on running a Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808064#M318620</link>
      <description>&lt;P&gt;The most common precipitant of this behavior in my experience is when I submit code for a single data step and forget to append a "RUN;" statement.&amp;nbsp; The fix is to follow up with a "RUN;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, if in the same SAS session, I follow this up with another "incomplete" DATA step, the first one will run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 17:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808064#M318620</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-04-15T17:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on running a Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808065#M318621</link>
      <description>I have run; statements at the end of each step.&lt;BR /&gt;&lt;BR /&gt;Here’s an example of the first data step that won’t move on from running:&lt;BR /&gt;&lt;BR /&gt;Data zip2;&lt;BR /&gt;Set code.zip1;&lt;BR /&gt;Where year in (2015 2016 2017 2018 2019);&lt;BR /&gt;If number = 1234 then city = ‘City Name’;&lt;BR /&gt;Run;</description>
      <pubDate>Fri, 15 Apr 2022 17:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808065#M318621</guid>
      <dc:creator>Cruiser13</dc:creator>
      <dc:date>2022-04-15T17:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on running a Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808080#M318631</link>
      <description>&lt;P&gt;Without seeing the code you are running, it's impossible to tell where the error lies.&amp;nbsp; It could be a missing closed quote, for example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data zip2;
  set code.zip1;
  where year in (2015 2016 2017 2018 2019);
  if number = 1234 then city = ‘City Name;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now "run;" becomes part of the value being assigned to CITY.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a general strategy, though, I would start with a fresh session.&amp;nbsp; Where the non-running code begins, replace it with:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set code.zip1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If this step runs, you know the problem is in the DATA step.&amp;nbsp; If this step doesn't run, you know the problem lies in the earlier code that establishes your libraries, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 18:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808080#M318631</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-04-15T18:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on running a Data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808088#M318638</link>
      <description>&lt;P&gt;One of the reasons to include code is because it very often shows the problem.&lt;/P&gt;
&lt;P&gt;And we have a winner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="5"&gt;If number = 1234 then city = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;‘&lt;/STRONG&gt;&lt;/FONT&gt;City Name&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;’&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;You are not using quotes that SAS understands. The "curly" quotes are likely the cause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS expects quotes to look like &lt;STRONG&gt;&lt;FONT size="6" color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 19:50:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stuck-on-running-a-Data-step/m-p/808088#M318638</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-15T19:50:58Z</dc:date>
    </item>
  </channel>
</rss>

