<?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: question about reporting formatted andf unformatted values in same report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/question-about-reporting-formatted-andf-unformatted-values-in/m-p/59766#M7160</link>
    <description>Hi:&lt;BR /&gt;
  PROC REPORT would probably be your best bet. You can use a variable to create a second report item with an "alias" for referencing on the report:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  column name gender gender=ugend age;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                      &lt;BR /&gt;
and then in your DEFINE statements, you can have:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  define gender / display f=gfmt. 'Formatted value';&lt;BR /&gt;
  define ugend / display  'Unformatted';&lt;BR /&gt;
[/pre] &lt;BR /&gt;
                                                               &lt;BR /&gt;
This is a neat feature of PROC REPORT because the format is applied on the DEFINE statement instead of in a FORMAT statement. In this example, the variable GENDER is used once on the report with a format and then the alias, UGEND, is GENDER used a second time on the report, but WITHOUT a format.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 29 Jul 2009 14:45:08 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-07-29T14:45:08Z</dc:date>
    <item>
      <title>question about reporting formatted andf unformatted values in same report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/question-about-reporting-formatted-andf-unformatted-values-in/m-p/59763#M7157</link>
      <description>Hi, I have a reporting requirement to print BOTH the formatted and unformatted values side by side in a report.&lt;BR /&gt;
&lt;BR /&gt;
For example:&lt;BR /&gt;
&lt;BR /&gt;
Gender FEMALE 2&lt;BR /&gt;
&lt;BR /&gt;
Is there a straightforward way to accomplish this? TIA.</description>
      <pubDate>Wed, 29 Jul 2009 12:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/question-about-reporting-formatted-andf-unformatted-values-in/m-p/59763#M7157</guid>
      <dc:creator>frisco</dc:creator>
      <dc:date>2009-07-29T12:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: question about reporting formatted andf unformatted values in same report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/question-about-reporting-formatted-andf-unformatted-values-in/m-p/59764#M7158</link>
      <description>The answer will depend on how you expect to generate the report, that being with PROC PRINT, PROC REPORT, PROC SQL (or another procedure) or a DATA step?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 29 Jul 2009 13:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/question-about-reporting-formatted-andf-unformatted-values-in/m-p/59764#M7158</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-07-29T13:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: question about reporting formatted andf unformatted values in same report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/question-about-reporting-formatted-andf-unformatted-values-in/m-p/59765#M7159</link>
      <description>Most likely REPORT or PRINT.</description>
      <pubDate>Wed, 29 Jul 2009 13:29:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/question-about-reporting-formatted-andf-unformatted-values-in/m-p/59765#M7159</guid>
      <dc:creator>frisco</dc:creator>
      <dc:date>2009-07-29T13:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: question about reporting formatted andf unformatted values in same report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/question-about-reporting-formatted-andf-unformatted-values-in/m-p/59766#M7160</link>
      <description>Hi:&lt;BR /&gt;
  PROC REPORT would probably be your best bet. You can use a variable to create a second report item with an "alias" for referencing on the report:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  column name gender gender=ugend age;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                      &lt;BR /&gt;
and then in your DEFINE statements, you can have:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  define gender / display f=gfmt. 'Formatted value';&lt;BR /&gt;
  define ugend / display  'Unformatted';&lt;BR /&gt;
[/pre] &lt;BR /&gt;
                                                               &lt;BR /&gt;
This is a neat feature of PROC REPORT because the format is applied on the DEFINE statement instead of in a FORMAT statement. In this example, the variable GENDER is used once on the report with a format and then the alias, UGEND, is GENDER used a second time on the report, but WITHOUT a format.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 29 Jul 2009 14:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/question-about-reporting-formatted-andf-unformatted-values-in/m-p/59766#M7160</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-07-29T14:45:08Z</dc:date>
    </item>
  </channel>
</rss>

