<?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 ## SAS Proc step error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-step-error/m-p/482732#M125096</link>
    <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to run the simple SAS base program statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data males sasuser.females;&lt;BR /&gt;Set sashelp.class;&lt;BR /&gt;If sex = 'M' then output males;&lt;BR /&gt;If sex = 'F' then output females;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;proc print data = males;&lt;BR /&gt;var name age;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data = sasuser.females;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please find the attached error ,could you please correct the mistake?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: SAS initialization used:&lt;BR /&gt;real time 0.97 seconds&lt;BR /&gt;cpu time 0.59 seconds&lt;/P&gt;&lt;P&gt;1 data males sasuser.females;&lt;BR /&gt;2 Set sashelp.class;&lt;BR /&gt;3 If sex = 'M' then output males;&lt;BR /&gt;4 If sex = 'F' then output females;&lt;BR /&gt;-------&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;455&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR 455-185: Data set was not specified on the DATA statement.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;5 Run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.MALES may be incomplete. When this step was stopped there were 0&lt;BR /&gt;observations and 5 variables.&lt;BR /&gt;WARNING: The data set SASUSER.FEMALES may be incomplete. When this step was stopped there&lt;BR /&gt;were 0 observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;6 proc print data = males;&lt;BR /&gt;7 var name age;&lt;BR /&gt;8 run;&lt;/P&gt;&lt;P&gt;NOTE: No observations in data set WORK.MALES.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;9 proc print data = sasuser.females;&lt;BR /&gt;10 run;&lt;/P&gt;&lt;P&gt;NOTE: No observations in data set SASUSER.FEMALES.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jul 2018 09:04:23 GMT</pubDate>
    <dc:creator>sasbrakesh</dc:creator>
    <dc:date>2018-07-31T09:04:23Z</dc:date>
    <item>
      <title>## SAS Proc step error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-step-error/m-p/482732#M125096</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to run the simple SAS base program statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data males sasuser.females;&lt;BR /&gt;Set sashelp.class;&lt;BR /&gt;If sex = 'M' then output males;&lt;BR /&gt;If sex = 'F' then output females;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;proc print data = males;&lt;BR /&gt;var name age;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data = sasuser.females;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please find the attached error ,could you please correct the mistake?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: SAS initialization used:&lt;BR /&gt;real time 0.97 seconds&lt;BR /&gt;cpu time 0.59 seconds&lt;/P&gt;&lt;P&gt;1 data males sasuser.females;&lt;BR /&gt;2 Set sashelp.class;&lt;BR /&gt;3 If sex = 'M' then output males;&lt;BR /&gt;4 If sex = 'F' then output females;&lt;BR /&gt;-------&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;455&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR 455-185: Data set was not specified on the DATA statement.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;5 Run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.MALES may be incomplete. When this step was stopped there were 0&lt;BR /&gt;observations and 5 variables.&lt;BR /&gt;WARNING: The data set SASUSER.FEMALES may be incomplete. When this step was stopped there&lt;BR /&gt;were 0 observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;6 proc print data = males;&lt;BR /&gt;7 var name age;&lt;BR /&gt;8 run;&lt;/P&gt;&lt;P&gt;NOTE: No observations in data set WORK.MALES.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;9 proc print data = sasuser.females;&lt;BR /&gt;10 run;&lt;/P&gt;&lt;P&gt;NOTE: No observations in data set SASUSER.FEMALES.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 09:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-step-error/m-p/482732#M125096</guid>
      <dc:creator>sasbrakesh</dc:creator>
      <dc:date>2018-07-31T09:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: ## SAS Proc step error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-step-error/m-p/482736#M125098</link>
      <description>&lt;P&gt;A single-stage dataset name will always point to WORK (or USER, if such a library is defined). Therefore female is taken as WORK.FEMALE, and is different from SASUSER.FEMALE. You just need to be consistent in naming your datasets in the data and output statements.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 09:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-step-error/m-p/482736#M125098</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-31T09:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: ## SAS Proc step error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-step-error/m-p/482840#M125136</link>
      <description>&lt;P&gt;See something not quite the same here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 data males &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;sasuser.females&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;2 Set sashelp.class;&lt;BR /&gt;3 If sex = 'M' then output males;&lt;BR /&gt;4 If sex = 'F' then output &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;females&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW using the SASUSER library is often not the best idea as SAS uses that library and contents may be affected by upgrades and/or reinstallation. If you want a permanent library assign your own so that you have control over where it is and what happens.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 14:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Proc-step-error/m-p/482840#M125136</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-31T14:40:43Z</dc:date>
    </item>
  </channel>
</rss>

