<?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: What would be the result and why? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975019#M378018</link>
    <description>&lt;P&gt;No.&amp;nbsp; It will NOT make a dataset named ONE (which normally means WORK.ONE unless have created USER libref or used the USER= option to pick a different libref).&lt;/P&gt;
&lt;P&gt;You can confirm by trying to look at the ONE dataset.&lt;/P&gt;
&lt;PRE&gt;7    proc contents data=one; run;
ERROR: File WORK.ONE.DATA does not exist.

NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.
&lt;/PRE&gt;</description>
    <pubDate>Sun, 14 Sep 2025 15:42:33 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-09-14T15:42:33Z</dc:date>
    <item>
      <title>What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975008#M378010</link>
      <description>&lt;P&gt;Assume that Sasuser.One does not exist and that the following SAS program is submitted at the beginning of a new SAS session:&lt;/P&gt;
&lt;PRE&gt;data sasuser.one;
x=1;
y=27;
output one;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 14:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975008#M378010</guid>
      <dc:creator>Nipun22</dc:creator>
      <dc:date>2025-09-14T14:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975009#M378011</link>
      <description>&lt;P&gt;You can find out what the result is by running the program. That will give you a quicker answer than by coming here and asking.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Then if you read the log, you can see the problem. Actually, there are two problems shown in the log. You cannot create a data set in library SASUSER, it is locked, it is read-only and nothing can be written to that library. You also have a data step error, the OUTPUT data set (ONE) is not the name of the DATA set you are trying to create (SASUSER.ONE). These two names must be the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, this works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
x=1;
y=27;
output one;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the output data set is the same as the name of the data set you are creating. This is required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even simpler:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
x=1;
y=27;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need to use the OUTPUT command in his situation. There are other situations where OUTPUT is required.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 14:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975009#M378011</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-09-14T14:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975010#M378012</link>
      <description>&lt;P&gt;SASUSER in a single machine install is writable and is where the users Profile settings are kept for SAS Display Manager.&lt;/P&gt;
&lt;P&gt;It is not a good idea to place user data sets there if writable in your install as update processes may replace the library or its contents.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 14:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975010#M378012</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-09-14T14:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975015#M378015</link>
      <description>yep that would obviously will cause an error but there must be some kind of output. so what is the logic behind that? my question is that only</description>
      <pubDate>Sun, 14 Sep 2025 15:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975015#M378015</guid>
      <dc:creator>Nipun22</dc:creator>
      <dc:date>2025-09-14T15:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975016#M378016</link>
      <description>&lt;P&gt;Not sure I understand what your question is.&amp;nbsp; There is no "output" because the step will not run because of the error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see this when you look at the LOG.&lt;/P&gt;
&lt;PRE&gt;1    data sasuser.one;
2    x=1;
3    y=27;
4    output one;
            ---
            455
ERROR 455-185: Data set was not specified on the DATA statement.

5    run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set SASUSER.ONE may be incomplete.  When this step was
         stopped there were 0 observations and 2 variables.
WARNING: Data set SASUSER.ONE was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;/PRE&gt;
&lt;P&gt;My log has that extra warning about not replacing the dataset because I already had a dataset with that name from 4 years ago.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1757863683046.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109946i264FFF489E8C11D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1757863683046.png" alt="Tom_0-1757863683046.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 15:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975016#M378016</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-14T15:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975018#M378017</link>
      <description>&lt;P&gt;I already mentioned that assume that sasuser.one dataset doesn't exist.&lt;BR /&gt;&lt;BR /&gt;the result will be an output dataset work.one with the variables x and y with 0 observations and wanna know why?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 15:40:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975018#M378017</guid>
      <dc:creator>Nipun22</dc:creator>
      <dc:date>2025-09-14T15:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975019#M378018</link>
      <description>&lt;P&gt;No.&amp;nbsp; It will NOT make a dataset named ONE (which normally means WORK.ONE unless have created USER libref or used the USER= option to pick a different libref).&lt;/P&gt;
&lt;P&gt;You can confirm by trying to look at the ONE dataset.&lt;/P&gt;
&lt;PRE&gt;7    proc contents data=one; run;
ERROR: File WORK.ONE.DATA does not exist.

NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.
&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 Sep 2025 15:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975019#M378018</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-14T15:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975020#M378019</link>
      <description>&lt;P&gt;If you want it to make ONE then include it in the DATA statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this step instead :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one two three;
  x=1;
  y=27;
  output one;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What do you expect to happen?&lt;/P&gt;
&lt;P&gt;Will it run?&lt;/P&gt;
&lt;P&gt;What dataset(s) will be created?&lt;/P&gt;
&lt;P&gt;How many observations?&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;8    data one two three;
9      x=1;
10     y=27;
11     output one;
12   run;

NOTE: The data set WORK.ONE has 1 observations and 2 variables.
NOTE: The data set WORK.TWO has 0 observations and 2 variables.
NOTE: The data set WORK.THREE has 0 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sun, 14 Sep 2025 15:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975020#M378019</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-14T15:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975021#M378020</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/420483"&gt;@Nipun22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I already mentioned that assume that sasuser.one dataset doesn't exist.&lt;BR /&gt;...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Whether a data step will compile and run does not depend on whether the datasets listed in the DATA statement exist or not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only impact if the dataset exists is that the data step will replace the existing dataset, assuming the step runs successfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: For nuances on when the dataset is not replaced but instead edited check out the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n0g9jfr4x5hgsfn17gtma5547lt1.htm" target="_self"&gt;MODIFY statement&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 16:04:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975021#M378020</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-14T16:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975022#M378021</link>
      <description>&lt;P&gt;Maxim 4 (short version): Try It.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This happens on SAS On Demand, which is fairly typcal for current client-server setups:&lt;/P&gt;
&lt;PRE&gt; 69         data sasuser.one;
 70         x=1;
 71         y=27;
 72         output one;
                   ___
                   455
 ERROR 455-185: Data set was not specified on the DATA statement.
 
 73         run;
 
 ERROR: Schreibzugriff für Member SASUSER.ONE.DATA verweigert.
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
&lt;/PRE&gt;
&lt;P&gt;You can see that no dataset is created at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, if we change the target to a location where write permission is given, this happens:&lt;/P&gt;
&lt;PRE&gt; 69         data home.one;
 70         x=1;
 71         y=27;
 72         output one;
                   ___
                   455
 ERROR 455-185: Data set was not specified on the DATA statement.
 
 73         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set HOME.ONE may be incomplete.  When this step was stopped there were 0 observations and 2 variables.
&lt;/PRE&gt;
&lt;P&gt;On inspection, there is a dataset ONE in library HOME, with two variables and no observations; no observations because no OUTPUT statement for HOME.ONE was given, and the one OUTPUT statement present in the code prevents the default OUTPUT that a DATA step usually does.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 16:13:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975022#M378021</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-09-14T16:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975024#M378022</link>
      <description>&lt;P&gt;this is one of the questions from the sas base practice exam.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nipun22_0-1757867199713.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109947iC0A64269154F0BE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nipun22_0-1757867199713.png" alt="Nipun22_0-1757867199713.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How would I understand it then?&lt;/P&gt;
&lt;P&gt;same code also showing access denied to the sasuser library in sas studio&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 16:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975024#M378022</guid>
      <dc:creator>Nipun22</dc:creator>
      <dc:date>2025-09-14T16:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975025#M378023</link>
      <description>&lt;P&gt;Looks like a question from a time way back when SASUSER was writable in most installations. But if SASUSER is writable, answer b is correct for the stated reasons.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 17:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975025#M378023</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-09-14T17:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975026#M378024</link>
      <description>sasuser library was writable in earlier times?</description>
      <pubDate>Sun, 14 Sep 2025 17:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975026#M378024</guid>
      <dc:creator>Nipun22</dc:creator>
      <dc:date>2025-09-14T17:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975027#M378025</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/420483"&gt;@Nipun22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;sasuser library was writable in earlier times?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes. It was on the mainframe where I started working with SAS, and we kept it that way when we migrated to UNIX.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 17:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975027#M378025</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-09-14T17:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975028#M378026</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/420483"&gt;@Nipun22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;sasuser library was writable in earlier times?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is a system option for controlling that, RSASUSER, which much be specified at session start.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 18:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975028#M378026</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-14T18:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975029#M378027</link>
      <description>&lt;P&gt;So it seems SAS will make the dataset(s) specified in the DATA statement (but not replace an existing one) even if the code causes a compile time error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the answer to the WHY? question is that SAS made a poor design decision early on and has kept it for compatibility reasons.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 18:19:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975029#M378027</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-14T18:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975031#M378028</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/420483"&gt;@Nipun22&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;sasuser library was writable in earlier times?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The SASUSER library is writable now if you choose to start SAS with the NORSASUSER option.&amp;nbsp; But if you are using some tool like Enterprise Guide or SAS/Studio to start your SAS sessions then that decision was made by whoever setup your application servers.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 18:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975031#M378028</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-14T18:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975032#M378029</link>
      <description>&lt;P&gt;So a poorly designed question.&amp;nbsp; They could have gotten to point across better by just using different member names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps they wanted to trick you by using the same member name?&amp;nbsp; If so then they tricked themselves because if you had set the system option USER to the value SASUSER then the step would run and write one observation.&amp;nbsp; Because in that case the single name ONE means SASUSER.ONE instead of the normal WORK.ONE.&amp;nbsp; So the OUTPUT statement is writing to the a dataset name in DATA statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see this by changing the value of the USER option, but if you session started with USER set to SASUSER you would not need the option statement.&lt;/P&gt;
&lt;PRE&gt;1    options user=sasuser;
2    data sasuser.one;
3      x=1;y=2;
4      output one;
5    run;

NOTE: The data set SASUSER.ONE has 1 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And note that it does not seem to be an EXECUTION time error.&amp;nbsp; The issue is not caused by executing the OUTPUT statement. You see that by making the output statement conditional.&amp;nbsp; There must be some grey area between compile time and actual execution that it is actually failing at.&lt;/P&gt;
&lt;PRE&gt;1    data sasuser.one;
2      x=1;y=2;
3      if 1=0 then output one;
                          ---
                          455
ERROR 455-185: Data set was not specified on the DATA statement.

4    run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set SASUSER.ONE may be incomplete.  When this step was
         stopped there were 0 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 18:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975032#M378029</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-14T18:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975076#M378037</link>
      <description>&lt;P&gt;Re:&amp;nbsp; your side note from&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;And note that it does not seem to be an EXECUTION time error.&amp;nbsp; The issue is not caused by executing the OUTPUT statement. You see that by making the output statement conditional.&amp;nbsp; There must be some grey area between compile time and actual execution that it is actually failing at.&lt;/P&gt;
&lt;PRE&gt;1    data sasuser.one;
2      x=1;y=2;
3      if 1=0 then output one;
                          ---
                          455
ERROR 455-185: Data set was not specified on the DATA statement.

4    run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set SASUSER.ONE may be incomplete.  When this step was
         stopped there were 0 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think the step is failing at compile time.&amp;nbsp; But also earlier in the compile time, SAS apparently creates the output datasets listed on the DATA statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 13:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975076#M378037</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-09-15T13:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: What would be the result and why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975080#M378039</link>
      <description>&lt;P&gt;What is actually created at compile time is the temporary .sas7bdat.lck file. And this file is renamed to .sas7bdat when the step terminates even in case of ERROR if no previous dataset exists.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 13:35:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-would-be-the-result-and-why/m-p/975080#M378039</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-09-15T13:35:05Z</dc:date>
    </item>
  </channel>
</rss>

