<?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: Is it possible to include sequentially numbered titles for plots? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/944013#M25033</link>
    <description>Give it an initial value 7 by RETAIN statement, as the URL posted by Tom.&lt;BR /&gt;&lt;BR /&gt;data temp;&lt;BR /&gt;set temp;&lt;BR /&gt;by age;&lt;BR /&gt;retain n 7;&lt;BR /&gt;n+first.age;&lt;BR /&gt;run;</description>
    <pubDate>Mon, 16 Sep 2024 00:25:52 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-09-16T00:25:52Z</dc:date>
    <item>
      <title>Is it possible to include sequentially numbered titles for plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/943955#M25023</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using by group processing to create a number of separate plots. SAS creates sequentially numbered file names with ODS listing and ODS graphics statements. I can also create dynamic titles according to the by group by following the tips from&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2021/02/22/byvar-byval-keywords-sas-titles.html;" target="_self"&gt;a great blog post&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I am required to title each plot with a sequential number (e.g., Figure 2.01: Example Title#1; Figure 2.02: Example Title#2, etc.). Is there some way to create sequentially numbered titles when using by group processing? I have tried searching for relevant keywords with no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reading!&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2024 20:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/943955#M25023</guid>
      <dc:creator>samp945</dc:creator>
      <dc:date>2024-09-14T20:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to include sequentially numbered titles for plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/943964#M25025</link>
      <description>Why not create a GROUP variable in which there are 1,2,3 series number and using the skill you refered to ?&lt;BR /&gt;&lt;BR /&gt;proc sort data=sashelp.class out=temp;&lt;BR /&gt;by age weight;&lt;BR /&gt;run;&lt;BR /&gt;data temp;&lt;BR /&gt; set temp;&lt;BR /&gt; by age;&lt;BR /&gt; n+first.age;&lt;BR /&gt;run;&lt;BR /&gt;option nobyline;&lt;BR /&gt;title "Title##byval1";&lt;BR /&gt;proc sgplot data=temp;&lt;BR /&gt;by n;&lt;BR /&gt;series x=weight y=height;&lt;BR /&gt;run;</description>
      <pubDate>Sun, 15 Sep 2024 02:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/943964#M25025</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-15T02:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to include sequentially numbered titles for plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/943969#M25026</link>
      <description>&lt;P&gt;Very clever! I am able to use both #ByVal1 (the main by group category name) and #ByVal2 (the figure number) in the plot title.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am already familiar with first.variable and last.variable, but can you point me toward documentation for the N+ strategy you used? I don't know what it is called or quite understand how it would be used in other applications.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2024 03:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/943969#M25026</guid>
      <dc:creator>samp945</dc:creator>
      <dc:date>2024-09-15T03:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to include sequentially numbered titles for plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/943970#M25027</link>
      <description>Here&lt;BR /&gt;n+first.age;&lt;BR /&gt;is the identity with&lt;BR /&gt;if first.age then n+1;</description>
      <pubDate>Sun, 15 Sep 2024 03:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/943970#M25027</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-15T03:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to include sequentially numbered titles for plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/943994#M25029</link>
      <description>&lt;P&gt;Thanks! What if I would like to begin the numbering at a specific number instead of 1? For example, if I want "n" to begin at 8? &lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2024 15:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/943994#M25029</guid>
      <dc:creator>samp945</dc:creator>
      <dc:date>2024-09-15T15:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to include sequentially numbered titles for plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/944003#M25031</link>
      <description>&lt;P&gt;That is a SUM statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1dfiqj146yi2cn1maeju9wo7ijs.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1dfiqj146yi2cn1maeju9wo7ijs.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2024 20:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/944003#M25031</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-09-15T20:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to include sequentially numbered titles for plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/944013#M25033</link>
      <description>Give it an initial value 7 by RETAIN statement, as the URL posted by Tom.&lt;BR /&gt;&lt;BR /&gt;data temp;&lt;BR /&gt;set temp;&lt;BR /&gt;by age;&lt;BR /&gt;retain n 7;&lt;BR /&gt;n+first.age;&lt;BR /&gt;run;</description>
      <pubDate>Mon, 16 Sep 2024 00:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-include-sequentially-numbered-titles-for-plots/m-p/944013#M25033</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-16T00:25:52Z</dc:date>
    </item>
  </channel>
</rss>

