<?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 Call Define in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Call-Define/m-p/37601#M9585</link>
    <description>CALL DEFINE is a routine specific to the COMPUTE block of PROC REPORT.  As an executable function it allows the user to apply characteristics, in this case a style attribute, differentially.  The first arg tells where to apply the attribute.  In this case for the _ROW_.</description>
    <pubDate>Fri, 19 Nov 2010 22:55:12 GMT</pubDate>
    <dc:creator>ArtC</dc:creator>
    <dc:date>2010-11-19T22:55:12Z</dc:date>
    <item>
      <title>Proc Report Call Define</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Call-Define/m-p/37600#M9584</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am totally new at using proc report.  I came across this code and I don't understand how this "CALL DEFINE" works:&lt;BR /&gt;
&lt;BR /&gt;
COMPUTE DropOrderID;&lt;BR /&gt;
            IF SUBSTR(DropOrderID,4,2)='00' &lt;BR /&gt;
            THEN CALL DEFINE(_ROW_, "style", "STYLE=[BACKGROUND=#C4C9F4]");&lt;BR /&gt;
        ENDCOMP;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I know it prints a blue color for every new DropOrderID.  But "CALL DEFINE" is not a SAS function, is it?&lt;BR /&gt;
It is part of the proc report below.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ODS PDF STYLE=printer BOOKMARKLIST=HIDE  FILE="&amp;amp;OUTPUT_DIR\POST_MOD_FULL_WATERFALL2.PDF";&lt;BR /&gt;
    ODS NOPROCTITLE;&lt;BR /&gt;
	TITLE  FONT=COURIER HEIGHT=12PT J=CENTER "POST MOD CAMPAIGN &amp;amp;campaign_name.";&lt;BR /&gt;
	TITLE2 FONT=COURIER HEIGHT=10PT J=CENTER 'TMT WATERFALL';&lt;BR /&gt;
	PROC REPORT DATA=POST_MOD_FULL_WATERFALL HEADLINE CONTENTS='' NOWD;&lt;BR /&gt;
		COLUMN DropOrderID DropDescription Loans Balance Percent;&lt;BR /&gt;
		DEFINE 	DropOrderID			/ DISPLAY WIDTH=8   FORMAT=$8. 			' Drop ID';&lt;BR /&gt;
		DEFINE 	DropDescription / DISPLAY WIDTH=120 FORMAT=$120. ' Drop Description';&lt;BR /&gt;
		DEFINE 	Loans				/ DISPLAY WIDTH=12  FORMAT=COMMA9.  	' Count    ';&lt;BR /&gt;
		DEFINE  Balance				/ DISPLAY WIDTH=12  FORMAT=COMMA9.  	' Balance  ';&lt;BR /&gt;
		DEFINE  Percent				/ DISPLAY WIDTH=12  FORMAT=PERCENT6.2 	' Percent  ';&lt;BR /&gt;
        COMPUTE DropOrderID;&lt;BR /&gt;
            IF SUBSTR(DropOrderID,4,2)='00' &lt;BR /&gt;
            THEN CALL DEFINE(_ROW_, "style", "STYLE=[BACKGROUND=#C4C9F4]");&lt;BR /&gt;
        ENDCOMP;&lt;BR /&gt;
    RUN;&lt;BR /&gt;
    FOOTNOTE3 ;&lt;BR /&gt;
ODS PDF CLOSE;</description>
      <pubDate>Fri, 19 Nov 2010 22:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Call-Define/m-p/37600#M9584</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-11-19T22:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Call Define</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Call-Define/m-p/37601#M9585</link>
      <description>CALL DEFINE is a routine specific to the COMPUTE block of PROC REPORT.  As an executable function it allows the user to apply characteristics, in this case a style attribute, differentially.  The first arg tells where to apply the attribute.  In this case for the _ROW_.</description>
      <pubDate>Fri, 19 Nov 2010 22:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Call-Define/m-p/37601#M9585</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-11-19T22:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Call Define</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Call-Define/m-p/37602#M9586</link>
      <description>Thank you for the information, ArtC!   The code makes much more sense to me now. Thanks!</description>
      <pubDate>Mon, 22 Nov 2010 16:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Call-Define/m-p/37602#M9586</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2010-11-22T16:15:00Z</dc:date>
    </item>
  </channel>
</rss>

