<?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 dynamic measures in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-dynamic-measures/m-p/49696#M10358</link>
    <description>With your situation, there are choices to make, depending on your SAS programming preference, as follows:&lt;BR /&gt;
&lt;BR /&gt;
1) A macro can be used to reference your findings in DICTIONARY.COLUMNS and generate the SAS statements as required for your PROC REPORT execution, or &lt;BR /&gt;
&lt;BR /&gt;
2) you can also use SAS DATA step logic (again using the output of COLUMNS) to do PUT commands to a "TEMP" FILENAME allocation and then %INCLUDE that temporary file inline with your PROC REPORT code.&lt;BR /&gt;
&lt;BR /&gt;
The SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website has SAS-hosted documentation and also supplemental technical/conference papers on this type of topic.  A SEARCH facility is available at the website, and also you can consider using something like a Google advanced search (like the argument below):&lt;BR /&gt;
&lt;BR /&gt;
generate sas code using dictionary columns site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Some of the results I found for your interest are listed below:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
WHAT WOULD I DO WITHOUT PROC SQL AND THE MACRO LANGUAGE&lt;BR /&gt;
Jeff Abolafia, Rho, Inc., Chapel Hill, NC&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/031-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/031-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Using Metadata for Data Driven Programming&lt;BR /&gt;
Brian Varney, Trilogy Consulting, Kalamazoo, Michigan&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi25/25/cc/25p077.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi25/25/cc/25p077.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Sun, 28 Jun 2009 19:51:11 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-06-28T19:51:11Z</dc:date>
    <item>
      <title>proc report dynamic measures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-dynamic-measures/m-p/49695#M10357</link>
      <description>HI ,&lt;BR /&gt;
I made simple proc report like this:&lt;BR /&gt;
&lt;BR /&gt;
proc report DATA=M_HAIM.TRANSPOSE_REINSURANCE ;                         &lt;BR /&gt;
column  _NAME_  period,REINSURANCE_COMP , ( &amp;amp;measures  );&lt;BR /&gt;
define _NAME_ / order=data group 'measures' format=$M_H_row. ;&lt;BR /&gt;
define PERIOD/  order=data across 'PERIOD' NOZERO format=M_H_COLUMN. ;&lt;BR /&gt;
define REINSURANCE_COMP / across '';&lt;BR /&gt;
define "0"n  / sum format=comma12.2 'no- REINSURANCE_COMP' ;&lt;BR /&gt;
&lt;BR /&gt;
define A  / sum format=comma12.2 'A ';&lt;BR /&gt;
define C / sum format=comma12.2 'C ';&lt;BR /&gt;
define D  / sum format=comma12.2 'D ';&lt;BR /&gt;
define P / sum format=comma12.2 'P ';&lt;BR /&gt;
define RR / sum format=comma12.2 'RR ';&lt;BR /&gt;
&lt;BR /&gt;
rbreak after/summarize;&lt;BR /&gt;
compute after ;&lt;BR /&gt;
_NAME_='total';&lt;BR /&gt;
endcomp;&lt;BR /&gt;
run;    &lt;BR /&gt;
&lt;BR /&gt;
my problem is : the  measures are dynamic .&lt;BR /&gt;
in each run i can get more/less/different measures.&lt;BR /&gt;
&lt;BR /&gt;
using dictionary.columns  table l can bring all the columns into macro var,&lt;BR /&gt;
and then use it in the column statment.&lt;BR /&gt;
but i dont know what to do with  the define statment.....&lt;BR /&gt;
&lt;BR /&gt;
any suggestions?</description>
      <pubDate>Sun, 28 Jun 2009 18:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-dynamic-measures/m-p/49695#M10357</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2009-06-28T18:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc report dynamic measures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-dynamic-measures/m-p/49696#M10358</link>
      <description>With your situation, there are choices to make, depending on your SAS programming preference, as follows:&lt;BR /&gt;
&lt;BR /&gt;
1) A macro can be used to reference your findings in DICTIONARY.COLUMNS and generate the SAS statements as required for your PROC REPORT execution, or &lt;BR /&gt;
&lt;BR /&gt;
2) you can also use SAS DATA step logic (again using the output of COLUMNS) to do PUT commands to a "TEMP" FILENAME allocation and then %INCLUDE that temporary file inline with your PROC REPORT code.&lt;BR /&gt;
&lt;BR /&gt;
The SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website has SAS-hosted documentation and also supplemental technical/conference papers on this type of topic.  A SEARCH facility is available at the website, and also you can consider using something like a Google advanced search (like the argument below):&lt;BR /&gt;
&lt;BR /&gt;
generate sas code using dictionary columns site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Some of the results I found for your interest are listed below:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
WHAT WOULD I DO WITHOUT PROC SQL AND THE MACRO LANGUAGE&lt;BR /&gt;
Jeff Abolafia, Rho, Inc., Chapel Hill, NC&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/031-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/031-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Using Metadata for Data Driven Programming&lt;BR /&gt;
Brian Varney, Trilogy Consulting, Kalamazoo, Michigan&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi25/25/cc/25p077.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi25/25/cc/25p077.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 28 Jun 2009 19:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-dynamic-measures/m-p/49696#M10358</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-28T19:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc report dynamic measures</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-dynamic-measures/m-p/49697#M10359</link>
      <description>OK,&lt;BR /&gt;
THANKS ,&lt;BR /&gt;
I WILL TRY TO DO OPTION NUMBER 2</description>
      <pubDate>Mon, 29 Jun 2009 17:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-dynamic-measures/m-p/49697#M10359</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2009-06-29T17:17:38Z</dc:date>
    </item>
  </channel>
</rss>

