BookmarkSubscribeRSS Feed
greveam
Quartz | Level 8

Hi,

 

When I submit the same proc template code below in proc sgrender with and without the format contf., obsid is left aligned when I don't apply the format but is right aligned when I apply the format (without changing any code in proc template). How can I left align obsid when I apply the format in proc sgrender?

 

proc sgrender data=combined template=combined;
format obsid contf.;
*format obsid contf.;
run;

 

proc template;
define statgraph combined;
begingraph;
layout lattice / columns=2 columnweights=(0.6 0.4) rowdatarange=union columngutter=10px;
rowaxes;
rowaxis / display=(tickvalues) tickvalueattrs=(size=8);
endrowaxes;
layout overlay / walldisplay=none xaxisopts=(linearopts=(viewmin=.5 viewmax=2 tickvaluelist=(.5 1 1.5 2))
griddisplay=on display=(line ticks tickvalues));
innermargin / align=left;
axistable y=ObsId_char value=obsid / showmissing=false valuehalign=left headerlabel='Subgroup'
HEADERLABELATTRS=(size=8) valueattrs=(size=8)
labelattrs=(size=8) pad=(right=1pct) indentweight=indent;
endinnermargin;

.......(partial code)

 

Thanks,

Anders

4 REPLIES 4
DanH_sas
SAS Super FREQ

Any way you can show us a picture of what you're seeing?

DanH_sas
SAS Super FREQ

What happens if you remove the INDENTWEIGHT option?

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1442 views
  • 0 likes
  • 2 in conversation