<?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 MEANS - ERROR: Neither the PRINT option nor a valid output statement has been given in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/MEANS-ERROR-Neither-the-PRINT-option-nor-a-valid-output/m-p/898051#M354950</link>
    <description>&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Create a macro variable called “list” that represents the following variables when referenced: dbirwt nprevist wtgain;&amp;nbsp; &lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL&gt;
&lt;OL&gt;
&lt;LI&gt;Create a dataset called “four” from “main” keeping only those variables in this list.&amp;nbsp; Use the macro variable you created to do accomplish this.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Next find the means for these same variables using the macro variable.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/OL&gt;
&lt;P&gt;Unfinished Code&lt;/P&gt;
&lt;P&gt;*Lab 12 – Problem 1;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;I got correct for this.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%let list = dbirwt nprevist wtgain;&lt;/P&gt;
&lt;P&gt;data four;&lt;BR /&gt;set lab.main;&lt;BR /&gt;keep &amp;amp;list;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;title "Using a Macro variable list";&lt;/P&gt;
&lt;P&gt;proc means data=four mean;&lt;BR /&gt;var &amp;amp;list;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but for 2nd problem I am getting error&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Use the dataset called “four” from the problem above and the macro variable call “list”, from the same problem&lt;/STRONG&gt;&lt;/LI&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Run a Proc Means for all these variables and save the results of this procedure into a new SAS data set called “Save” in the Lab library.&amp;nbsp; &lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/OL&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Add the option noprint right after data= lab.one;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Unfinished Code&lt;/P&gt;
&lt;P&gt;*Lab 12 – Problem 2;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;my finished code is&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;title "Using a Macro variable list";&lt;/P&gt;
&lt;P&gt;proc means data=lab.four noprint;&lt;BR /&gt;var &amp;amp;list;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;but I am getting error as&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ERROR: Neither the PRINT option nor a valid output statement has been given.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Where am I doing wrong??&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 11 Oct 2023 08:26:01 GMT</pubDate>
    <dc:creator>Markanti</dc:creator>
    <dc:date>2023-10-11T08:26:01Z</dc:date>
    <item>
      <title>MEANS - ERROR: Neither the PRINT option nor a valid output statement has been given</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MEANS-ERROR-Neither-the-PRINT-option-nor-a-valid-output/m-p/898051#M354950</link>
      <description>&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Create a macro variable called “list” that represents the following variables when referenced: dbirwt nprevist wtgain;&amp;nbsp; &lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL&gt;
&lt;OL&gt;
&lt;LI&gt;Create a dataset called “four” from “main” keeping only those variables in this list.&amp;nbsp; Use the macro variable you created to do accomplish this.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Next find the means for these same variables using the macro variable.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/OL&gt;
&lt;P&gt;Unfinished Code&lt;/P&gt;
&lt;P&gt;*Lab 12 – Problem 1;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;I got correct for this.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%let list = dbirwt nprevist wtgain;&lt;/P&gt;
&lt;P&gt;data four;&lt;BR /&gt;set lab.main;&lt;BR /&gt;keep &amp;amp;list;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;title "Using a Macro variable list";&lt;/P&gt;
&lt;P&gt;proc means data=four mean;&lt;BR /&gt;var &amp;amp;list;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but for 2nd problem I am getting error&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Use the dataset called “four” from the problem above and the macro variable call “list”, from the same problem&lt;/STRONG&gt;&lt;/LI&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Run a Proc Means for all these variables and save the results of this procedure into a new SAS data set called “Save” in the Lab library.&amp;nbsp; &lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/OL&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Add the option noprint right after data= lab.one;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Unfinished Code&lt;/P&gt;
&lt;P&gt;*Lab 12 – Problem 2;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;my finished code is&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;title "Using a Macro variable list";&lt;/P&gt;
&lt;P&gt;proc means data=lab.four noprint;&lt;BR /&gt;var &amp;amp;list;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;but I am getting error as&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ERROR: Neither the PRINT option nor a valid output statement has been given.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Where am I doing wrong??&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Oct 2023 08:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MEANS-ERROR-Neither-the-PRINT-option-nor-a-valid-output/m-p/898051#M354950</guid>
      <dc:creator>Markanti</dc:creator>
      <dc:date>2023-10-11T08:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: I am unable to solve this help me</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MEANS-ERROR-Neither-the-PRINT-option-nor-a-valid-output/m-p/898056#M354952</link>
      <description>&lt;P&gt;Use the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p04vbvpcjg2vrjn1v8wyf0daypfi.htm" target="_blank" rel="noopener"&gt;OUTPUT Statement&lt;/A&gt;&amp;nbsp;of PROC MEANS to create a dataset.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 06:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MEANS-ERROR-Neither-the-PRINT-option-nor-a-valid-output/m-p/898056#M354952</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-11T06:34:05Z</dc:date>
    </item>
  </channel>
</rss>

