<?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 -Want to see a field two times-with format and without in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Want-to-see-a-field-two-times-with-format-and/m-p/477021#M122794</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=tbl2  headline split='#' spacing=1 nowd
style(report)={cellpadding=1 cellspacing=1}
style(header)={font_size=2  font_weight=MEDIUM  font_face=david  background=cx99ccaa}
style(column)={font_size=1}; 
columns  branch branch=branch2 sales;
define branch/ display 
	"Branch"  center;
define branch2/ display 
	"Branch unformatted" format=best. center;
define sales/  order order=internal descending
	"SALES 2018";
Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 10:21:16 GMT</pubDate>
    <dc:creator>MichaelLarsen</dc:creator>
    <dc:date>2018-07-11T10:21:16Z</dc:date>
    <item>
      <title>Proc Report -Want to see a field two times-with format and without</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Want-to-see-a-field-two-times-with-format-and/m-p/477016#M122790</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; Data tbl;
 input branch sales;
 cards;
 1  10
 2  20
 3  30
 4  40
 ;
 run;


 proc format;
value FFMT 
1='North'
2='South'
3='East'
4='West';
Run;


Data tbl2;
set tbl;
FORMAT branch FFMT.;
Run;


proc report data=tbl2  headline split='#' spacing=1 nowd
style(report)={cellpadding=1 cellspacing=1}
style(header)={font_size=2  font_weight=MEDIUM  font_face=david  background=cx99ccaa}
style(column)={font_size=1}; 
columns  branch sales;
define branch/ display 
	"Branch"  center;
define sales/  order order=internal descending
	"SALES 2018";
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want &amp;nbsp;that in the proc report&amp;nbsp;field branch will appear 2 times: In one column as a formatted value (south,north,east,west)&lt;/P&gt;&lt;P&gt;In second column as a non formatted value( 1,2,3,4)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 09:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Want-to-see-a-field-two-times-with-format-and/m-p/477016#M122790</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-07-11T09:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report -Want to see a field two times-with format and without</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Want-to-see-a-field-two-times-with-format-and/m-p/477021#M122794</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=tbl2  headline split='#' spacing=1 nowd
style(report)={cellpadding=1 cellspacing=1}
style(header)={font_size=2  font_weight=MEDIUM  font_face=david  background=cx99ccaa}
style(column)={font_size=1}; 
columns  branch branch=branch2 sales;
define branch/ display 
	"Branch"  center;
define branch2/ display 
	"Branch unformatted" format=best. center;
define sales/  order order=internal descending
	"SALES 2018";
Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 10:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Want-to-see-a-field-two-times-with-format-and/m-p/477021#M122794</guid>
      <dc:creator>MichaelLarsen</dc:creator>
      <dc:date>2018-07-11T10:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report -Want to see a field two times-with format and without</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Want-to-see-a-field-two-times-with-format-and/m-p/477024#M122797</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data tbl;
 input branch sales;
 cards;
 1  10
 2  20
 3  30
 4  40
 ;
 run;


 proc format;
value FFMT 
1='North'
2='South'
3='East'
4='West';
Run;

proc report data=tbl  headline split='#' spacing=1 nowd
style(report)={cellpadding=1 cellspacing=1}
style(header)={font_size=2  font_weight=MEDIUM  font_face=david  background=cx99ccaa}
style(column)={font_size=1}; 
columns  branch branch2 sales;
define branch/ display 
	"Branch"  center;
define branch2 / computed format=FFMT.;
define sales/  order order=internal descending
	"SALES 2018";
compute branch2;
	branch2=branch;
endcomp;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jul 2018 10:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Want-to-see-a-field-two-times-with-format-and/m-p/477024#M122797</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-07-11T10:23:46Z</dc:date>
    </item>
  </channel>
</rss>

