I'm trying to use proc template to create a template with a bunch of dynamic variables. Those variables work fine when I use them in most places, but when I try to use one in tickdisplaylist=(<DYNAMIC VARIABLE HERE>), it errors out and tells me it's expected a quoted string. In my sgrender call, I've tried quoting, not-quoting, embedding all of my quoted labels inside one big set of quotes, etc, but have not had success getting proc template to use my dynamic variable inside this option. Does anyone have any thoughts? define statgraph GRPHNM;
dynamic PLOT1_VISITS PLOT_UNIT PLOT1_YVAL PLOT1_XVAL PLOT2_YVAL PLOT_GROUPS;
begingraph / datacolors = (&CLRSCALE) datacontrastcolors = (&CLRSCALE_CON.);
/*entrytitle "Test plot for &PARMTOPLOT";*/
layout lattice / rows = 1 columns = 2 rowgutter = 0 columngutter = 2 columnweights = (0.66 0.34);
/*** Standard plot ***/
layout overlay / xaxisopts=(linearopts=( viewmin = -2.5 viewmax = 26.5
tickvaluelist=(0 24) tickdisplaylist=("Baseline" "Week 24")
)
display=(LINE TICKVALUES)
)
yaxisopts=(label = PLOT_UNIT labelattrs=(size = 8pt) labelposition = TOP);
scatterplot y=PLOT1_YVAL x= PLOT1_XVAL / group = PLOT_GROUPS jitter = AUTO
groupdisplay = CLUSTER grouporder = &GORDER clusterwidth = 0.75
markerattrs=(size = 4 symbol = CIRCLEFILLED)
datatransparency = 0.3
;
...MORE PLOTS HERE...
endlayout; ....CONTINUED...
... View more