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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 4 replies
  • 903 views
  • 0 likes
  • 2 in conversation