BookmarkSubscribeRSS Feed
Doug____
Pyrite | Level 9

I have a situation where I needed to set up SGPLOT with 9.2 (TS2M3) using GTL. These code blocks (GTL) are processed prior to plot execution. The issue I'm having is that doing the plot this way causes unicode symbols in the variable labels (as macro variables) to be rendered literally when they appear in the legend. I've tried to use legend labels as macro variables but this did not work either as they do not resolve. Any suggestions?

6 REPLIES 6
Reeza
Super User
I'm not sure what you mean. You're using GTL but having trouble with unicode symbol rendering in the final template? Is unicode supported in 9.2?
Doug____
Pyrite | Level 9

Yes it is but it renders it as a literal when I have to preprocess the template code and there are macro variables that create the legend labels.

 

In our system we create item stores when the program initially runs then another program we call sections creates the final outputs using item stores. Basically the guts of the table and its titles and footnotes are separate objects.

Reeza
Super User
I *think* you may be mixing macro and dynamic variables in GTL. Once you compile the template the macro variables resolve and they won't change again even if you call the template. If you set it as a Dynamic variable you can get it to resolve.
Doug____
Pyrite | Level 9

Ok so in the code the variables are subgrpx1, 2, and 3 (macro variables). If I declare them as MVAR and use DYNAMIC in the same code block the following warning is issued:

WARNING: Symbol has already been declared as another type: subgrpx1.

 

 

 

Reeza
Super User
Can you post some code and/or a picture that illustrates your issue. Trying to follow without code or an image is difficult.
Cynthia_sas
SAS Super FREQ
And, another suggestion is that all the graph folks hang out in the forum for ODS GRAPHICS -- since this is specific to ODS GRAPHICS and since you are asking about SAS 9.2, the only people who may know the answer to your question quickly are probably over in that forum. Suggest you post your question there, possibly with some simplified code that uses a SASHELP dataset to illustrate your question.
cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1516 views
  • 0 likes
  • 3 in conversation