<?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: BY variable does not appear in pdf with STARTPAGE=NO statement in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336193#M18024</link>
    <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;Unfortunately, this did not solve my issue. The title-statement works when put in the SGPLOT-procedure rather than above as suggested, however, it only causes the BY-value to appear on the top of each page and not on each individual graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Tina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2017 14:20:14 GMT</pubDate>
    <dc:creator>TNYBO</dc:creator>
    <dc:date>2017-02-27T14:20:14Z</dc:date>
    <item>
      <title>BY variable does not appear in pdf with STARTPAGE=NO statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/335361#M18017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the BY statement with SGPLOT and I want my plots to appear in a pdf file with 3 graphs in each line, which I managed with the ODS statement below. However, when I do this, I no longer get the BY variable as a title above each graphs. Strangely, some of the graphs actually has the variable starting with ID=6 and all subsequent +4 (10, 14, 18, etc). I am using SAS Enterprise Guide 7.1.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods pdf file='C:\test.pdf' startpage=no columns=3;&lt;BR /&gt;proc sgplot data=reshape noautolegend;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;by ID;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; scatter x=treat y=m / yerrorlower=lower&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yerrorupper=upper&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; markerattrs=(color=black symbol=CircleFilled)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; errorbarattrs=(color=black);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; title1 'Log2 means with std. error bars';&lt;BR /&gt;xaxis label='uM HOCl (x10^2)';&lt;BR /&gt;yaxis label='Normalised Abundance (log2)';&lt;BR /&gt;run;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am open to any suggestions to circumvent this issue. Thanks in advance.&lt;/P&gt;&lt;P&gt;Tina&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 17:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/335361#M18017</guid>
      <dc:creator>TNYBO</dc:creator>
      <dc:date>2017-02-23T17:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: BY variable does not appear in pdf with STARTPAGE=NO statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/335483#M18018</link>
      <description>&lt;P&gt;Could you try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
options nobyline;
ods pdf file='C:\test.pdf' startpage=no columns=3;
title "ID= #byval1  ";
proc sgplot data=reshape noautolegend;    
by ID;
.............&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Feb 2017 02:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/335483#M18018</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-24T02:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: BY variable does not appear in pdf with STARTPAGE=NO statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336193#M18024</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;Unfortunately, this did not solve my issue. The title-statement works when put in the SGPLOT-procedure rather than above as suggested, however, it only causes the BY-value to appear on the top of each page and not on each individual graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Tina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 14:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336193#M18024</guid>
      <dc:creator>TNYBO</dc:creator>
      <dc:date>2017-02-27T14:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: BY variable does not appear in pdf with STARTPAGE=NO statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336208#M18026</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; By default, the titles should be "inside" the boundary of the graph. If you have turned that off by accident, you can always use the GTITLE option on the ODS PDF statement to get that turned back on. For example, see the example below. It is a simple scatter plot using SASHELP.CLASS, but does show the BY information and the title on every graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7474i3AD03A92A681CBAD/image-size/original?v=1.0&amp;amp;px=-1" alt="use_gtitle.png" title="use_gtitle.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 14:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336208#M18026</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-02-27T14:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: BY variable does not appear in pdf with STARTPAGE=NO statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336260#M18030</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response, it was very helpful. It seems the GTITLE option does not quite do the trick in SAS v.7.1, but I will check with our IT-department if we have the SAS v.9 at our faculty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, I have simply removed the STARTPAGE=NO, since the COLUMNS statement allows me to have multiple graphs on one page without losing the BY line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tina&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 16:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336260#M18030</guid>
      <dc:creator>TNYBO</dc:creator>
      <dc:date>2017-02-27T16:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: BY variable does not appear in pdf with STARTPAGE=NO statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336305#M18031</link>
      <description>Hi, When you say "SAS 7.1" you must mean Enterprise Guide 7.1. Enterprise Guide 7.1 is typically communicating with SAS 9.4. So I'm not entirely sure what you mean when you say that "GTITLE" does not "do the trick" -- you MUST specify GTITLE on the ODS PDF statement. It will not generally be used in Enterprise Guide with SASReport default output in the same way I showed with my PDF output.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 27 Feb 2017 19:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336305#M18031</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-02-27T19:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: BY variable does not appear in pdf with STARTPAGE=NO statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336576#M18037</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it is Enterprise Guide 7.1. Hmm, strangely, it does not work for me the way it should. Here is the code I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / reset=all width=200px height=300px imagefmt=gif;                                                                             
options orientation=landscape date nonumber;
ods pdf file='\\C:\test.pdf'  columns=5 gtitle;
                                                              
proc sgplot data=reshape noautolegend;    
by ID;
   scatter x=treat y=m / yerrorlower=lower                                                                                            
                           yerrorupper=upper                                                                                            
                           markerattrs=(color=black symbol=CircleFilled)
			   errorbarattrs=(color=black);                                                                
   title1 'Log2 means with std. error bars'; 
xaxis label='uM HOCl (x10^2)'; 
yaxis label='Normalised Abundance (log2)';
run;                              
ods pdf close;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And my pdf output looks like this. So the BY line does not appear inside the graph as it did in your example. I also tried to put the GTITLE in a statement by itself, so I had&amp;nbsp; ODS PDF GTITLE; which did give the exact same result. And I tried turning ODS GRAPHICS on, but that also didn't change anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7491iB8084354E5145C15/image-size/original?v=1.0&amp;amp;px=-1" alt="SAS PDF output.jpg" title="SAS PDF output.jpg" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 14:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336576#M18037</guid>
      <dc:creator>TNYBO</dc:creator>
      <dc:date>2017-02-28T14:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: BY variable does not appear in pdf with STARTPAGE=NO statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336709#M18045</link>
      <description>Hi:&lt;BR /&gt;  I am not sure why your title is outside the boundary of each graph, but on one hand, I do like yours better with just one title above all 5 graphs. However, only Tech support can replicate your environment. I ran my example in SAS 9.4 M3. I did not use EG, but with ODS statements, whether you use EG or not should not have an impact on the output. It should be the same...if your version of SAS is the same as my version of SAS. It almost looks like you have an ODS LAYOUT someplace to put the title above all 5 columns. This is a question for Tech Support, I think.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 28 Feb 2017 20:30:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BY-variable-does-not-appear-in-pdf-with-STARTPAGE-NO-statement/m-p/336709#M18045</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-02-28T20:30:30Z</dc:date>
    </item>
  </channel>
</rss>

