Hi all,
I'm trying to make a dinamic report with a variable number of graphics (1-6) (SAS Base 9.2)
Each graph with a variable number of axes y (1 or 2) and variable number of series to represent (each one with a different color and symbol).
My ideawas to use "proctemplate"and make amacro that isrepeatedas many times asgraphicstorepresent using "layoutoverlay", because itself automatically adjusts the dimensions of the graphs according to the number of these have to represent
But Ithink this isnot posible to make a loop with an "if" sentence into de proc template, additionally do not know if you can assign a different color and symbol for each data series....
I've also thought about making a macro and repeat n times one "proc sgplot" with conditions inside but looks like I is not doing well.
I'm actually a little lost .... if you could give me a little light would appreciate it.
Thanks a lot
Please attach your current program and data.
Sorry by my delay.
I´ve been out for personal ítems.
I´ve not the program, they have been brief tests, and I 'm a little stuck in the momento.
If you can help me to choose the best way of doing it .
The idea is to use variables and use the smallest possible code with Base SAS 9.2
In this example there are 4 graphics in the report but it can be from 1 until 6 graphs.
Each of them or one or two axis.
The series of each them must have a color line and symbol diferent
Thanks for all. I´m in a hurry.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.