BookmarkSubscribeRSS Feed
odmhx
Calcite | Level 5
I am having trouble aligning the line to the left as a result of the group compute block.

my code:

compute before company/style={just=left};
line 'Company: ' +1 compcode $5.;
endcomp;

The output still shows the line in the center.

Could anyone help me?

Thanks a lot...
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi:
style={just=left} will not work in all destinations. For example, it will probably work in HTML, RTF or PDF destinations, but will not work in the LISTING destination (the output window or listing window). It probably won't work for ODS CSV and I'm not sure whether it will work for TAGSETS.EXCELXP.

If you are using the LISTING destination and you want to start your string 'Company' at the far left, experiement with column pointer control:
[pre]
line @3 'Company' .... ;
[/pre]

You might have to change the @3 to a different number, but you should be able to get the string where you want it in the LISTING window. Other ODS destinations will ignore the @3 column pointer control and use the STYLE= override.

How to do what you want really depends on the ODS destination where you want to send the output.

cynthia
odmhx
Calcite | Level 5
> Hi:
> style={just=left} will not work in all
> destinations. For example, it will probably work in
> HTML, RTF or PDF destinations, but will not work in
> the LISTING destination (the output window or
> listing window). It probably won't work for ODS CSV
> and I'm not sure whether it will work for
> TAGSETS.EXCELXP.
>
> If you are using the LISTING destination and you want
> to start your string 'Company' at the far left,
> experiement with column pointer control:
> [pre]
> line @3 'Company' .... ;
> re]
>
> You might have to change the @3 to a different
> number, but you should be able to get the string
> where you want it in the LISTING window. Other ODS
> destinations will ignore the @3 column pointer
> control and use the STYLE= override.
>
> ow to do what you want really depends on the ODS
> destination where you want to send the output.
>
> ynthia


Thank you, Cynthia! I tried column pointer but it didn't work maybe because I have the system options of center. I was trying to have report in the center, but the first few lines of group info (not the heading) in the left most column. Now I changed the center to nocenter.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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