<?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: proc report for all the columns in a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-for-all-the-columns-in-a-dataset/m-p/539514#M148674</link>
    <description>&lt;P&gt;You don't specify any, defaults are an awesome thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by sex;

proc report data=class;
by sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you don't specify any, it defaults to all variables, similar to PROC REPORT.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/222166"&gt;@bhu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Assuming dataset table1 has field1, how can I use proc contents inside proc report? Or is there any way to display all the columns of the dataset without actually specifying the field names?&lt;/P&gt;
&lt;P&gt;PROC REPORT data=table1 nowd split='\' nocenter;&lt;BR /&gt;COLUMN&lt;BR /&gt;(&lt;BR /&gt;proc contents data = table1 varnum short;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;
&lt;P&gt;)&lt;BR /&gt;by fieldname1;&lt;BR /&gt;TITLE1 "Comparison";&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 23:00:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-02-28T23:00:08Z</dc:date>
    <item>
      <title>proc report for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-for-all-the-columns-in-a-dataset/m-p/539512#M148672</link>
      <description>&lt;P&gt;Assuming dataset table1 has field1, how can I use proc contents inside proc report? Or is there any way to display all the columns of the dataset without actually specifying the field names?&lt;/P&gt;&lt;P&gt;PROC REPORT data=table1 nowd split='\' nocenter;&lt;BR /&gt;COLUMN&lt;BR /&gt;(&lt;BR /&gt;proc contents data = table1 varnum short;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;&lt;P&gt;)&lt;BR /&gt;by fieldname1;&lt;BR /&gt;TITLE1 "Comparison";&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 22:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-for-all-the-columns-in-a-dataset/m-p/539512#M148672</guid>
      <dc:creator>bhu</dc:creator>
      <dc:date>2019-02-28T22:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc report for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-for-all-the-columns-in-a-dataset/m-p/539513#M148673</link>
      <description>This helped me:&lt;BR /&gt;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;select name into :var_list separated by " " from sashelp.vcolumn where libname="WORK" and memname="TABLE1";&lt;BR /&gt;quit;&lt;BR /&gt;PROC REPORT data=table1 nowd split='\' nocenter;&lt;BR /&gt;COLUMN&lt;BR /&gt;&amp;amp;var_list.;&lt;BR /&gt;by fieldname1;&lt;BR /&gt;TITLE1 "Comparison";&lt;BR /&gt;RUN;</description>
      <pubDate>Thu, 28 Feb 2019 22:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-for-all-the-columns-in-a-dataset/m-p/539513#M148673</guid>
      <dc:creator>bhu</dc:creator>
      <dc:date>2019-02-28T22:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc report for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-for-all-the-columns-in-a-dataset/m-p/539514#M148674</link>
      <description>&lt;P&gt;You don't specify any, defaults are an awesome thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by sex;

proc report data=class;
by sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you don't specify any, it defaults to all variables, similar to PROC REPORT.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/222166"&gt;@bhu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Assuming dataset table1 has field1, how can I use proc contents inside proc report? Or is there any way to display all the columns of the dataset without actually specifying the field names?&lt;/P&gt;
&lt;P&gt;PROC REPORT data=table1 nowd split='\' nocenter;&lt;BR /&gt;COLUMN&lt;BR /&gt;(&lt;BR /&gt;proc contents data = table1 varnum short;&lt;BR /&gt;&amp;nbsp;run;&lt;/P&gt;
&lt;P&gt;)&lt;BR /&gt;by fieldname1;&lt;BR /&gt;TITLE1 "Comparison";&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 23:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-for-all-the-columns-in-a-dataset/m-p/539514#M148674</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-28T23:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc report for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-for-all-the-columns-in-a-dataset/m-p/539516#M148675</link>
      <description>&lt;P&gt;Awesome Reeza. Thank you a lot for such an easy solution. I have changed the accepted solution to your reply.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 23:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-for-all-the-columns-in-a-dataset/m-p/539516#M148675</guid>
      <dc:creator>bhu</dc:creator>
      <dc:date>2019-02-28T23:05:52Z</dc:date>
    </item>
  </channel>
</rss>

