<?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: How to label the content of an output file from proc means .... in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/439421#M23166</link>
    <description>&lt;P&gt;Thanks for pointing to the appropriate syntax. Nevertheless, reading the documentation (&lt;A href="http://support.sas.com/documentation/cdl/en/ledsoptsref/69751/PDF/default/ledsoptsref.pdf" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/ledsoptsref/69751/PDF/default/ledsoptsref.pdf&lt;/A&gt;) it seems to me that this is a dead-end. I see no way to enter a 'label' variable into the data set using data set options. That is what I need, and what my stupid data step code provides. Please correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless you can point to a better solution, I presume that my stupid code is the simplest alternative.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best&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;</description>
    <pubDate>Thu, 22 Feb 2018 19:36:39 GMT</pubDate>
    <dc:creator>oyho</dc:creator>
    <dc:date>2018-02-22T19:36:39Z</dc:date>
    <item>
      <title>How to label the content of an output file from proc means ....</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/437959#M23092</link>
      <description>&lt;P&gt;so that summaries from different files can be merged into one file. Procedures with a model statement have a labelling possibility, but what is the 9.4.-trick in proc means?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;oyho&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 13:19:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/437959#M23092</guid>
      <dc:creator>oyho</dc:creator>
      <dc:date>2018-02-16T13:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to label the content of an output file from proc means ....</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/437974#M23093</link>
      <description>&lt;P&gt;Have you examined the OUTPUT statement within PROC MEANS?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 14:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/437974#M23093</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-16T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to label the content of an output file from proc means ....</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/437977#M23094</link>
      <description>&lt;P&gt;The trick is to read the manual?&amp;nbsp; Come back with any specific questions, showing test data/required output, what code you have tried etc.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 14:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/437977#M23094</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-16T14:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to label the content of an output file from proc means ....</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/438056#M23104</link>
      <description>Yes, I have.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is said that label statements can be applied, period, but not how.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I tried:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;output out = summary0_&amp;amp;d / label = 'panel&amp;amp;d' ; /* syntax error */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;output out = summary0_&amp;amp;d label = 'panel&amp;amp;d'; /* syntax error */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;output out = summary0_&amp;amp;d / autolabel ; /* no syntax error, but no label in the file either */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What works of course is the stupid solution: to add the labelling variable in a separate data step (see code below). My post is asking for a more elegant way --- which I presume exists.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%macro panel_stat;&lt;BR /&gt;&lt;BR /&gt;%do d = 0 %to &amp;amp;n_panel;&lt;BR /&gt;&lt;BR /&gt;proc means data = panel0_&amp;amp;d noprint;&lt;BR /&gt;&lt;BR /&gt;var psqt psqt_aav psqt_aav2 aav aav2 t_panel yhat_sum yhat_midl1-yhat_midl&amp;amp;n_prod;&lt;BR /&gt;&lt;BR /&gt;output out = summary0 ;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data summary0_&amp;amp;d;&lt;BR /&gt;&lt;BR /&gt;set summary0;&lt;BR /&gt;&lt;BR /&gt;panel = &amp;amp;d;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;%end;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data summary0_&amp;amp;bas_aar;&lt;BR /&gt;&lt;BR /&gt;merge summary0_0-summary0_&amp;amp;n_panel;&lt;BR /&gt;&lt;BR /&gt;by panel;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc export data = summary0_&amp;amp;bas_aar&lt;BR /&gt;&lt;BR /&gt;OUTFILE = "summary0_&amp;amp;bas_aar"&lt;BR /&gt;&lt;BR /&gt;DBMS = xlsx&lt;BR /&gt;&lt;BR /&gt;REPLACE;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;BR /&gt;%panel_stat;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Feb 2018 19:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/438056#M23104</guid>
      <dc:creator>oyho</dc:creator>
      <dc:date>2018-02-16T19:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to label the content of an output file from proc means ....</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/438062#M23105</link>
      <description>&lt;P&gt;if you are using a data set option to provide a label for a data set the syntax is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;datasetname (label="quoted text")&lt;/P&gt;
&lt;P&gt;dataset options have to appear within () and all of them within the same outer pair.&lt;/P&gt;
&lt;P&gt;datasetname (keep= var1 var2 var3 rename=(var2=something) where=(var1 in (1 2 3)) label="quoted text" )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 20:18:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/438062#M23105</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-16T20:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to label the content of an output file from proc means ....</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/439421#M23166</link>
      <description>&lt;P&gt;Thanks for pointing to the appropriate syntax. Nevertheless, reading the documentation (&lt;A href="http://support.sas.com/documentation/cdl/en/ledsoptsref/69751/PDF/default/ledsoptsref.pdf" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/ledsoptsref/69751/PDF/default/ledsoptsref.pdf&lt;/A&gt;) it seems to me that this is a dead-end. I see no way to enter a 'label' variable into the data set using data set options. That is what I need, and what my stupid data step code provides. Please correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless you can point to a better solution, I presume that my stupid code is the simplest alternative.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best&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;</description>
      <pubDate>Thu, 22 Feb 2018 19:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/439421#M23166</guid>
      <dc:creator>oyho</dc:creator>
      <dc:date>2018-02-22T19:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to label the content of an output file from proc means ....</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/440776#M23222</link>
      <description>&lt;P&gt;How about using BY processing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data all_panels;
set panel0_: indsname=_p;
panel = _p;
run;

proc means data=all_panels;
by panel notsorted;
var...;
output out=all_summary;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Feb 2018 05:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/440776#M23222</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-02-28T05:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to label the content of an output file from proc means ....</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/440951#M23228</link>
      <description>Thanks for constructive answer, which I mark as solved. Actually, my case is not solved by this because the panels are overlapping, but I didn't tell you.&lt;BR /&gt;&lt;BR /&gt;oyho</description>
      <pubDate>Wed, 28 Feb 2018 17:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-label-the-content-of-an-output-file-from-proc-means/m-p/440951#M23228</guid>
      <dc:creator>oyho</dc:creator>
      <dc:date>2018-02-28T17:00:51Z</dc:date>
    </item>
  </channel>
</rss>

