<?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 order of reports in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-order-of-reports/m-p/446458#M20633</link>
    <description>Yes, but if I put this&lt;BR /&gt;&lt;BR /&gt;compute after _page_ /&lt;BR /&gt;style={background=CX0088EE foreground=black font_weight=bold};&lt;BR /&gt;&lt;BR /&gt;if( region = 1 ) then&lt;BR /&gt;call define( _ROW_, "GRSEG", "work.gseg.gchart" );&lt;BR /&gt;else if (region = 2 ) then&lt;BR /&gt;call define( _ROW_, "GRSEG", "work.gseg.gchart1" );&lt;BR /&gt;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;Doesn't work</description>
    <pubDate>Sat, 17 Mar 2018 15:59:00 GMT</pubDate>
    <dc:creator>david_18</dc:creator>
    <dc:date>2018-03-17T15:59:00Z</dc:date>
    <item>
      <title>proc report order of reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-order-of-reports/m-p/446114#M20628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created this proc report, and I have a problem because the gplot that insert goes in firts page of the BY and then put the table. T'his report is in ods pdf, and the bookmark is in gplot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need put the table first and then de gplot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data=meses contents='';&lt;BR /&gt;title "CUOTA POR MESES" ;&lt;BR /&gt;title2 '#byval1';&lt;BR /&gt;by REGION;&lt;BR /&gt;column CADENAS &amp;amp;ano3. Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre REGION;&lt;BR /&gt;FORMAT &amp;amp;ano3. Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre 5.1;&lt;BR /&gt;LABEL Enero='ENE' Febrero='FEB' Marzo='MAR' Abril='ABR' Mayo='MAY' Junio='JUN' Julio='JUL'&lt;BR /&gt;Agosto='AGO' Septiembre='SEP' Octubre='OCT' Noviembre='NOV' Diciembre='DIC';&lt;BR /&gt;define cadenas/display page contents='' ;&lt;BR /&gt;define REGION /group noprint;&lt;BR /&gt;break after REGION /contents='' page ;&lt;BR /&gt;FORMAT REGION REGFMT.;&lt;BR /&gt;compute cadenas;&lt;BR /&gt;if cadenas in ("TVE", "Mediaset", "Grupo A3", "AUT", "AUT PRIV", "TEMATICAS PAGO" , "Otras Cadenas", "NO IDENTIFICADO" ) then&lt;BR /&gt;call define(_row_,"style","style={background=AliceBlue}");&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute before _page_ /&lt;BR /&gt;style={background=CX0088EE foreground=black font_weight=bold};&lt;/P&gt;&lt;P&gt;if( region = 1 ) then&lt;BR /&gt;call define( _ROW_, "GRSEG", "work.gseg.gchart" );&lt;BR /&gt;else if (region = 2 ) then&lt;BR /&gt;call define( _ROW_, "GRSEG", "work.gseg.gchart1" );&lt;/P&gt;&lt;P&gt;endcomp;&lt;BR /&gt;FOOTNOTE h=5pt f=arial 'COPYRIGHT KANTAR MEDIA';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tray change&amp;nbsp;&lt;SPAN&gt;compute before _page_ / for&amp;nbsp;compute after _page_ / but it doesn't work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 11:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-order-of-reports/m-p/446114#M20628</guid>
      <dc:creator>david_18</dc:creator>
      <dc:date>2018-03-16T11:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc report order of reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-order-of-reports/m-p/446238#M20630</link>
      <description>&lt;P&gt;Perhaps you want the gplot output in a compute after _page_ block? This is a guess without data to test.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 15:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-order-of-reports/m-p/446238#M20630</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-16T15:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc report order of reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-order-of-reports/m-p/446458#M20633</link>
      <description>Yes, but if I put this&lt;BR /&gt;&lt;BR /&gt;compute after _page_ /&lt;BR /&gt;style={background=CX0088EE foreground=black font_weight=bold};&lt;BR /&gt;&lt;BR /&gt;if( region = 1 ) then&lt;BR /&gt;call define( _ROW_, "GRSEG", "work.gseg.gchart" );&lt;BR /&gt;else if (region = 2 ) then&lt;BR /&gt;call define( _ROW_, "GRSEG", "work.gseg.gchart1" );&lt;BR /&gt;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;Doesn't work</description>
      <pubDate>Sat, 17 Mar 2018 15:59:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-order-of-reports/m-p/446458#M20633</guid>
      <dc:creator>david_18</dc:creator>
      <dc:date>2018-03-17T15:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc report order of reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-order-of-reports/m-p/446484#M20634</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Although "GRSEG" in a CALL DEFINE as the 2nd argument appears to work in some instances, it is not documented as an argument in the PROC REPORT documentation: &lt;A href="http://go.documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1b1be5822k8nnn1s1ucv8fvpg3d.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://go.documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1b1be5822k8nnn1s1ucv8fvpg3d.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt; --therefore, behavior is unreliable if this is an undocumented feature or artifact from previous versions of SAS. When I use GRSEG as the 2nd argument in a COMPUTE BEFORE, it does appear to work. However, if I use GRSEG as the 2nd argument in a COMPUTE AFTER, it does NOT work for PDF, as shown below (although it does work for HTML):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grseg_work_HTML_not_PDF.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19259iC5A6A2E7AD940BA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="grseg_work_HTML_not_PDF.png" alt="grseg_work_HTML_not_PDF.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand, if I make a .PNG file from my GCHART step and store that PNG file in C:\temp (where I will write both the HTML and PDF output), and then use "STYLE" as the 2nd argument with PREIMAGE=, the image insertion works in PDF and in HTML, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="style_not_grseg.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19260i91D038E6647FD62D/image-size/large?v=v2&amp;amp;px=999" role="button" title="style_not_grseg.png" alt="style_not_grseg.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to continue exploring your GRSEG approach, then I would recommend working with Tech Support to find out whether this is a valid argument for all destinations or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, using STYLE in the CALL DEFINE, seems to behave the way you want. I recommend making sure your image is the right size to fit in the cell or row where you want to place it. For another example of using images based on a particular cell value, please see the example on page 14-15 of this&amp;nbsp;&lt;A href="http://www2.sas.com/proceedings/forum2007/099-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/099-2007.pdf&lt;/A&gt; paper. Although the paper does show mostly using inline formatting with ODS ESCAPECHAR, it also shows a user-defined format to insert an image based on a cell value. Look at the DEFINE statement for PRODUCT. It has preimage in a TITLE statement to put the big logo at the very top of the page, but then places an image in every cell, based on the value of the PRODUCT variable:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image_with_format_report.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19261iAC9BC32A349CC336/image-size/large?v=v2&amp;amp;px=999" role="button" title="image_with_format_report.png" alt="image_with_format_report.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Hope this gives you an alternative to using "GRSEG" in your CALL DEFINE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 20:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-order-of-reports/m-p/446484#M20634</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-03-17T20:34:50Z</dc:date>
    </item>
  </channel>
</rss>

