<?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: ODS Proc Report labels in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Report-labels/m-p/16107#M3443</link>
    <description>Thanks Cynthia&lt;BR /&gt;
&lt;BR /&gt;
You are awesome!&lt;BR /&gt;
&lt;BR /&gt;
Drew</description>
    <pubDate>Wed, 08 Apr 2009 08:02:57 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-04-08T08:02:57Z</dc:date>
    <item>
      <title>ODS Proc Report labels</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Report-labels/m-p/16105#M3441</link>
      <description>I am using the following code to create new variables but am having trouble creating the label/column header.&lt;BR /&gt;
&lt;BR /&gt;
This is a monthly table - each month a new column is appended with that month's data. I am capturing the variable names and labels in macro variables and then using these to create new variables. The label name is a number, signifying the year and month ie this month's column is 200903. When I try to put the macro variable with this value as a column header, I get an error. Code as below.&lt;BR /&gt;
&lt;BR /&gt;
	   	proc contents data=reports.times_&amp;amp;yyyymm. out=work.contents noprint;&lt;BR /&gt;
		run;&lt;BR /&gt;
&lt;BR /&gt;
		data _null_;&lt;BR /&gt;
		    set WORK.contents (where=(name ne "metric")); &lt;BR /&gt;
		    call symput('var'||compress(_N_),compress(name));&lt;BR /&gt;
		    call symput('label'||compress(_N_),compress(label));&lt;BR /&gt;
		    call symput('n',compress(_N_));&lt;BR /&gt;
		run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
		proc report data = reports.times_&amp;amp;yyyymm. NOWINDOWS NOCENTER MISSING &lt;BR /&gt;
		style(column)={font_size=10pt}&lt;BR /&gt;
		style(header)={font_size=10pt};&lt;BR /&gt;
		title;&lt;BR /&gt;
		title1 "Report 21";&lt;BR /&gt;
		footnote;&lt;BR /&gt;
		column metric _:;&lt;BR /&gt;
		%do i=1 %to &amp;amp;n;&lt;BR /&gt;
			column var&amp;amp;i;&lt;BR /&gt;
			define metric/display;&lt;BR /&gt;
			define &amp;amp;&amp;amp;var&amp;amp;i/display noprint;&lt;BR /&gt;
			define var&amp;amp;i/computed;&lt;BR /&gt;
			compute var&amp;amp;i/CHARACTER length=30 &lt;B&gt;"&amp;amp;&amp;amp;label&amp;amp;i"&lt;/B&gt;;&lt;BR /&gt;
				if index(metric,'LGD')&amp;gt;0&lt;BR /&gt;
				or index(metric,'PD')&amp;gt;0&lt;BR /&gt;
				or metric='Sum EL / Sum Pre-Severity EL' then var&amp;amp;i=put(&amp;amp;&amp;amp;var&amp;amp;i,&amp;amp;formb);&lt;BR /&gt;
				else var&amp;amp;i=put(&amp;amp;&amp;amp;var&amp;amp;i,&amp;amp;forma);&lt;BR /&gt;
			endcomp;&lt;BR /&gt;
		%end;			&lt;BR /&gt;
		run;&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Tue, 07 Apr 2009 14:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Report-labels/m-p/16105#M3441</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-07T14:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Proc Report labels</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Report-labels/m-p/16106#M3442</link>
      <description>Hi:&lt;BR /&gt;
  The label string goes on the DEFINE statement for the variable, NOT on the COMPUTE statement.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 07 Apr 2009 15:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Report-labels/m-p/16106#M3442</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-04-07T15:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Proc Report labels</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Report-labels/m-p/16107#M3443</link>
      <description>Thanks Cynthia&lt;BR /&gt;
&lt;BR /&gt;
You are awesome!&lt;BR /&gt;
&lt;BR /&gt;
Drew</description>
      <pubDate>Wed, 08 Apr 2009 08:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Proc-Report-labels/m-p/16107#M3443</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-08T08:02:57Z</dc:date>
    </item>
  </channel>
</rss>

