BookmarkSubscribeRSS Feed
Kim_Chantala
Returning User | Level 2

I am using PROC REPORT to format a report an am having trouble getting only the first line printed in a compute block to have a background color of gray to highlight that line.   I have attached the SAS code for PROC REPORT and an example from the program.   Any suggestions will be appreciated.  Thanks!

2 REPLIES 2
Tom
Super User Tom
Super User

How do you know it didn't work? You didn't put any actual text on the first line.

line "^S={fontweight=bold fontstyle=roman just=l backgroundcolor=white}";
Cynthia_sas
SAS Super FREQ

Hi:

  Without data, no one can run your program. I sort of did your COMPUTE block on SASHELP.CLASS and just hard-coded some text:

Cynthia_sas_0-1594600773594.png

 

  I took out the @ pointer controls that you used and made some other small modifications.

 

  Not sure what you were doing there with Line 2 in the compute block. I changed the background to light yellow so it would be visible.

 

Cynthia

 

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