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 2025: Call for Content

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!

Submit your idea!

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
  • 1123 views
  • 0 likes
  • 2 in conversation