<?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 How to automatically specify a different title for each graph when using ODS layout gridded? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533130#M22330</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I was wondering how you specify a different title for each plot when using &lt;STRONG&gt;ODS layout gridded&lt;/STRONG&gt; with &lt;STRONG&gt;proc sgplot&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize I can manually type in a different title, but I'd like an automatic way of doing it since I have many plots to display together. As you see in the main graph below, I have, for example, &lt;STRONG&gt;variablename=Dummy Var1&lt;/STRONG&gt; when I simply want &lt;STRONG&gt;Dummy Var1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4, running on EG 7.15. The graph and relevant code are below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS Results Graph.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26881i9721F9B7AC4C90B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS Results Graph.PNG" alt="SAS Results Graph.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data AllMVariables;
	length variablename $25 measure $10;
	infile datalines dlm=' ' dsd;
	input variablename $ measure $ macvalue measurey;
	datalines;
"Dummy Var1" "Boston" 1.62 0
"Dummy Var1" "Boston" 5.60 0
"Dummy Var1" "Denver" 1.70 10
"Dummy Var1" "Denver" 3.56 10
"Dummy Var1" "Denver" 2.16 20
"Dummy Var1" "Denver" 2.13 20
"Dummy Var1" "Denver" 2.12 20
"Dummy Var1" "Denver" 2.12 20
"Dummy Var1" "Denver" 2.09 20
"Dummy Var1" "Denver" 2.05 20
"Dummy Var1" "Denver" 2.02 20
"Dummy Var2 Lag4" "Boston" 1.62 0
"Dummy Var2 Lag4" "Boston" 5.60 0
"Dummy Var2 Lag4" "Denver" 1.80 10
"Dummy Var3 Lag4" "Denver" 3.56 10
"Dummy Var3 Lag4" "Denver" 2.05 20
"Dummy Var3 Lag4" "Denver" 3.02 20
"Dummy Var4" "Boston" 1.62 0
"Dummy Var4" "Boston" 5.60 0
"Dummy Var4" "Denver" 1.70 10
"Dummy Var4" "Denver" 2.05 20
"Dummy Var4" "Denver" 2.02 20
"Dummy Var5" "Boston" 1.62 0
"Dummy Var5" "Boston" 5.60 0
"Dummy Var5" "Denver" 1.80 10
"Dummy Var5" "Denver" 3.56 10
"Dummy Var5" "Denver" 3.55 10
"Dummy Var5" "Denver" 2.09 20
"Dummy Var5" "Denver" 2.05 20
"Dummy Var5" "Denver" 2.02 20
;
run;

goptions htitle=9pct htext=6pct;
options nodate nonumber;
title1 "Main Graph Title";
ods graphics / width=2.37in height=1.02in;
ods layout gridded columns=3 rows=4 advance=bygroup COLUMN_GUTTER=3pt style=[backgroundcolor=Gray fontfamily= "Calibri" fontweight = bold fontsize=8pt color=black];
ods region;

	/*for each variablename */
	proc sgplot data=AllMVariables uniform=group noautolegend;
		by variablename;
		scatter x=macvalue y=measurey / group=measure grouporder=reversedata;

		/* label variablename='';*/
		/* x2axis display=(noline noticks novalues) label=quote(variablename);*/
		xaxis display=none;
		yaxis display=none;
	run;

ods layout end;
ods powerpoint close;
quit;
;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2019 04:14:02 GMT</pubDate>
    <dc:creator>happy_mouth</dc:creator>
    <dc:date>2019-02-06T04:14:02Z</dc:date>
    <item>
      <title>How to automatically specify a different title for each graph when using ODS layout gridded?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533130#M22330</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I was wondering how you specify a different title for each plot when using &lt;STRONG&gt;ODS layout gridded&lt;/STRONG&gt; with &lt;STRONG&gt;proc sgplot&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize I can manually type in a different title, but I'd like an automatic way of doing it since I have many plots to display together. As you see in the main graph below, I have, for example, &lt;STRONG&gt;variablename=Dummy Var1&lt;/STRONG&gt; when I simply want &lt;STRONG&gt;Dummy Var1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4, running on EG 7.15. The graph and relevant code are below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS Results Graph.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26881i9721F9B7AC4C90B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS Results Graph.PNG" alt="SAS Results Graph.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data AllMVariables;
	length variablename $25 measure $10;
	infile datalines dlm=' ' dsd;
	input variablename $ measure $ macvalue measurey;
	datalines;
"Dummy Var1" "Boston" 1.62 0
"Dummy Var1" "Boston" 5.60 0
"Dummy Var1" "Denver" 1.70 10
"Dummy Var1" "Denver" 3.56 10
"Dummy Var1" "Denver" 2.16 20
"Dummy Var1" "Denver" 2.13 20
"Dummy Var1" "Denver" 2.12 20
"Dummy Var1" "Denver" 2.12 20
"Dummy Var1" "Denver" 2.09 20
"Dummy Var1" "Denver" 2.05 20
"Dummy Var1" "Denver" 2.02 20
"Dummy Var2 Lag4" "Boston" 1.62 0
"Dummy Var2 Lag4" "Boston" 5.60 0
"Dummy Var2 Lag4" "Denver" 1.80 10
"Dummy Var3 Lag4" "Denver" 3.56 10
"Dummy Var3 Lag4" "Denver" 2.05 20
"Dummy Var3 Lag4" "Denver" 3.02 20
"Dummy Var4" "Boston" 1.62 0
"Dummy Var4" "Boston" 5.60 0
"Dummy Var4" "Denver" 1.70 10
"Dummy Var4" "Denver" 2.05 20
"Dummy Var4" "Denver" 2.02 20
"Dummy Var5" "Boston" 1.62 0
"Dummy Var5" "Boston" 5.60 0
"Dummy Var5" "Denver" 1.80 10
"Dummy Var5" "Denver" 3.56 10
"Dummy Var5" "Denver" 3.55 10
"Dummy Var5" "Denver" 2.09 20
"Dummy Var5" "Denver" 2.05 20
"Dummy Var5" "Denver" 2.02 20
;
run;

goptions htitle=9pct htext=6pct;
options nodate nonumber;
title1 "Main Graph Title";
ods graphics / width=2.37in height=1.02in;
ods layout gridded columns=3 rows=4 advance=bygroup COLUMN_GUTTER=3pt style=[backgroundcolor=Gray fontfamily= "Calibri" fontweight = bold fontsize=8pt color=black];
ods region;

	/*for each variablename */
	proc sgplot data=AllMVariables uniform=group noautolegend;
		by variablename;
		scatter x=macvalue y=measurey / group=measure grouporder=reversedata;

		/* label variablename='';*/
		/* x2axis display=(noline noticks novalues) label=quote(variablename);*/
		xaxis display=none;
		yaxis display=none;
	run;

ods layout end;
ods powerpoint close;
quit;
;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 04:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533130#M22330</guid>
      <dc:creator>happy_mouth</dc:creator>
      <dc:date>2019-02-06T04:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically specify a different title for each graph when using ODS layout gridded?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533213#M22331</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nobyline;
title "This is My Title for #byval1";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p10gcmrmf83iaxn1ilrx4pra969n.htm&amp;amp;locale=en&amp;nbsp;" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p10gcmrmf83iaxn1ilrx4pra969n.htm&amp;amp;locale=en&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:28:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533213#M22331</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-06T13:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically specify a different title for each graph when using ODS layout gridded?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533407#M22336</link>
      <description>&lt;P&gt;Hi Paige,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I should have been more specific in my request. I need&amp;nbsp;the title for each graph to be unique. For instance, the tile for graph 1 should be &lt;STRONG&gt;Dummy Var1&lt;/STRONG&gt;, the title for graph 2 should be &lt;STRONG&gt;Dummy Var2&lt;/STRONG&gt;, and so on. With your method I get the title for the first graph as I wanted, but I get no title at all for each of the other graphs. (See below, for graph, and for the code where I added &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;title&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"#BYVAL1"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping to do this without having to type in each title separately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS Results Graph2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26914iA844521FE9A4F2FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS Results Graph2.PNG" alt="SAS Results Graph2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nobyline;

	/*for each variablename */
	proc sgplot data=AllMVariables uniform=group noautolegend;
		by variablename;
		scatter x=macvalue y=measurey / group=measure grouporder=reversedata;
 		title "#BYVAL1";
		xaxis display=none;
		yaxis display=none;
	run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Feb 2019 21:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533407#M22336</guid>
      <dc:creator>happy_mouth</dc:creator>
      <dc:date>2019-02-06T21:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically specify a different title for each graph when using ODS layout gridded?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533432#M22337</link>
      <description>&lt;P&gt;It should work, but I have never used ODS LAYOUT GRIDDED in this case, so I don't know why it didn't work. Does it work if, as an experiment, you eliminate ODS LAYOUT GRIDDED?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 22:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533432#M22337</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-06T22:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically specify a different title for each graph when using ODS layout gridded?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533448#M22338</link>
      <description>&lt;P&gt;Yes, the titling does work if I comment out ODS LAYOUT GRIDDED.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But unfortunately, I then get only one plot per page, rather than all of the plots in a grid on the same page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 23:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/533448#M22338</guid>
      <dc:creator>happy_mouth</dc:creator>
      <dc:date>2019-02-06T23:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically specify a different title for each graph when using ODS layout gridded?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/535372#M22383</link>
      <description>&lt;P&gt;Hi Paige,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up talking to tech support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They suggested that I&amp;nbsp;(in SAS EG) deselect all the Result Formats from Tools-&amp;gt;Options except PowerPoint, and set the Graph Format to PNG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solution worked then!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 19:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-specify-a-different-title-for-each-graph/m-p/535372#M22383</guid>
      <dc:creator>happy_mouth</dc:creator>
      <dc:date>2019-02-13T19:18:49Z</dc:date>
    </item>
  </channel>
</rss>

