BookmarkSubscribeRSS Feed
tejeshwar
Calcite | Level 5
Hi,

I am currently using Proc Report through ODS to get a certain data directly printed on to the outbox and send through mail. My Data looks like

ABC 10 1.2 46
BCD 11 2.4 23
A12 23 4.6 54

My question- Is there a way I can put a seperator BAR after 2 entry? or rather after certain records.

Thanks,
Tej
2 REPLIES 2
sfleming
Calcite | Level 5
You might investigate the COMPUTE and LINE statements in PROC REPORT. For example, to add 30 dashed lines between groups:

compute after ;
line 30*"-";
endcomp;

There are probably more aesthetic ways to use the LINE statement with ODS.
tejeshwar
Calcite | Level 5
Thank You,

I used the Line statement along with compute to get exactly what I wanted.

Tejeshwar

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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