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

Hi,

I want to display text in region containers in a pdf-document. It workes fine with ods text = "..."; but since I wanted to have bullet point lists I switched to proc report. Now I face some new problems:

data text;

text =
"exercitation ullamco laboris ^{style [font_weight=bold]nisi ut aliquid ex ea commodi} consequat. Quis aute " ||

"^{newline}^{newline}" ||

"This works: ^{thispage} von ^{lastpage}";

...

proc report

data = text nowindows noheader;

columns text;

define text / display style=[width=22cm];

1. The data (text) is provided through an ms excel file. I import this file to a data set. Next I write the text with proc report to the odf file. Is this the best way?

2. I can not use inline formatting in proc report with the ods escape character. Part of the text to display:

"exercitation ullamco laboris ^{style [font_weight=bold]nisi ut aliquid ex ea commodi} consequat. Quis aute "

Is there a way to format single words within the text in proc report? In case not (or no practical way): What is a decent alternative?

Id be really happy to get any help because searching the internet did not help me 😞

Cheers, Tobi

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

How about this:

data text;

text ="exercitation ullamco laboris ~S={font_weight=bold}nisi ~S={}ut aliquid ex ea commodi";

run;

ods escapechar='~';

ods pdf file='x.pdf' style=sasweb;

proc report

data = text nowindows noheader;

columns text;

define text / display style=[width=22cm];

run;

ods pdf close;

Xia Keshan

View solution in original post

2 REPLIES 2
Ksharp
Super User

How about this:

data text;

text ="exercitation ullamco laboris ~S={font_weight=bold}nisi ~S={}ut aliquid ex ea commodi";

run;

ods escapechar='~';

ods pdf file='x.pdf' style=sasweb;

proc report

data = text nowindows noheader;

columns text;

define text / display style=[width=22cm];

run;

ods pdf close;

Xia Keshan

Tobias_N
Calcite | Level 5

Thanks! This is a very easy fix.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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