Hello all,
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 a great blog post.
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.
Thanks for reading!
Very clever! I am able to use both #ByVal1 (the main by group category name) and #ByVal2 (the figure number) in the plot title.
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.
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?
run;
That is a SUM statement.
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1dfiqj146yi2cn1maeju9wo7ijs.htm
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.