<?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 - Apply same style in CALL DEFINE for multiple columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812745#M320689</link>
    <description>Hi:&lt;BR /&gt;  If you are changing the entire ROW to be the same, then you can use _ROW_ (without quotes) as the first argument to CALL DEFINE. But the COMPUTE AFTER is changing the summary line. Will style(summary) do what you want in the PROC REPORT statement?&lt;BR /&gt;Cynthia</description>
    <pubDate>Wed, 11 May 2022 17:44:18 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2022-05-11T17:44:18Z</dc:date>
    <item>
      <title>PROC Report - Apply same style in CALL DEFINE for multiple columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812731#M320681</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know if there is a more efficient way of doing this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data = a ; 

columns var1 var2 var3 var4 ....; 
define var1 / display ; 
define var2 / display ; 
define var3 /display ; &lt;BR /&gt;... ; 

rbreak after / summarize ;
... ; 
compute after ; 
call define ('var1','style','style={bordertopcolor=lightgrey borderbottomcolor=lightgrey}') ; 
call define ('var2','style','style={bordertopcolor=lightgrey borderbottomcolor=lightgrey}') ; 
call define ('var2','style','style={bordertopcolor=lightgrey borderbottomcolor=lightgrey}') ;&lt;BR /&gt;run&amp;nbsp;;&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Instead of writing 3x "call define ...." for each variable, i would like to know if i can do it only one time but for the 3 variables/columns. (Just these 3, i have many other columns)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 17:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812731#M320681</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-05-11T17:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report - Apply same style in CALL DEFINE for multiple columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812735#M320683</link>
      <description>&lt;P&gt;A small macro could work here.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 17:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812735#M320683</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-11T17:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report - Apply same style in CALL DEFINE for multiple columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812745#M320689</link>
      <description>Hi:&lt;BR /&gt;  If you are changing the entire ROW to be the same, then you can use _ROW_ (without quotes) as the first argument to CALL DEFINE. But the COMPUTE AFTER is changing the summary line. Will style(summary) do what you want in the PROC REPORT statement?&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 11 May 2022 17:44:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812745#M320689</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-05-11T17:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report - Apply same style in CALL DEFINE for multiple columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812805#M320713</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I don’t want to change the entire row. I have 10 columns and i just want this instruction for the first 3 columns.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Wed, 11 May 2022 20:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812805#M320713</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-05-11T20:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report - Apply same style in CALL DEFINE for multiple columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812956#M320775</link>
      <description>Hi:&lt;BR /&gt;  What you show is the only way to do it with 3 CALL DEFINE statements. Using macro code or a DO loop would also work, but would make the code more complex. &lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 12 May 2022 13:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Apply-same-style-in-CALL-DEFINE-for-multiple-columns/m-p/812956#M320775</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-05-12T13:28:33Z</dc:date>
    </item>
  </channel>
</rss>

