Hello all ,
Then you need to move the code which creates out macro variable to the main program also??
More to the point what is this "&out._visit1" anyways? Looks like you are trying to merge two variables which is a really bad idea. Keep visit as a visit variable, then put this "&out." in another variable.
Well moving my graph program to formats program is not feasible . Regarding your question
More to the point what is this "&out._visit1" anyways?
I am grading my visit as per order needed on X-axis and using the Numerical value . Then using the format of the Visit2 as the Label of Tick mark
"Well moving my graph program to formats program is not feasible ." - I am not talking about moving your graph program anywhere, I am talking about moving the code which creates the Out macro variable to the format program, i.e. define the macro before it is used.
"I am grading my visit as per order needed on X-axis and using the Numerical value . Then using the format of the Visit2 as the Label of Tick mark " - possible a mis-understanding here. The value in the dataset should be numeric, so you get the correct ordering, then you have the formatted data in the output per the format.
Its really hard to follow what you want. As a note, for lab graph outputs, normally it would look something like, visit (i.e. visit 1, visit 2 etc.) on the xaxis, value on the y axis, and a sub-header showing the parameter, unit, gender, normal range etc. So have one graph per by group so the axis ranges are smaller and easier to see points.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.