BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Carrotbing
Calcite | Level 5

Hello fabulous SAS experts,

I have a 11 line footer, which is a problem because I cannot use footnote statement. So I tried to use the compute block and line statement in proc report procedure as follows:

computer after _page_;

line "Learning Outcomes: are the knowledge, skills, and values we expect students to achieve upon graduation.";

endcomp;

What should I do if I want to bold "Learning Outcomes" and italicize "knowledge", "skills", and "values" in the output?

Any help would be much appreciated!

Yao

c

1 ACCEPTED SOLUTION

Accepted Solutions
Carrotbing
Calcite | Level 5

Okay, I got it after some struggle.

ods escapechar='~';

proc report ...;

compute after _page_;

line@1 "~{style [font_weight=bold] SLO:} ~{style [fontstyle=italic] SLO} stands for student learning outcomes.";

endcomp;

This produces a line with both bold and italics as in:

SLO: SLO stands for student learning outcomes.

Thanks everyone for helping.

Yao

View solution in original post

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:

  You can bold the whole line using a simple STYLE= override, but to only italicize certain words within a text string, you will need to use ODS ESCAPECHAR and in-line formatting. There have been many previous postings on the topic in the forum. I'm sure you can find them if you search.

cynthia

Carrotbing
Calcite | Level 5

Okay, I got it after some struggle.

ods escapechar='~';

proc report ...;

compute after _page_;

line@1 "~{style [font_weight=bold] SLO:} ~{style [fontstyle=italic] SLO} stands for student learning outcomes.";

endcomp;

This produces a line with both bold and italics as in:

SLO: SLO stands for student learning outcomes.

Thanks everyone for helping.

Yao

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 3 replies
  • 946 views
  • 3 likes
  • 3 in conversation