BookmarkSubscribeRSS Feed
hari1109
Fluorite | Level 6
Hi Friends,

Is there any way to increase the quoted string length to fit the string in a single title statement. i am trying to put a quoted string in single title statement with center justification but it is appearing in two lines with center justification. However if i change the font size of 8pt the quoted string i am getting the string in a single line but i want quoted string with font size 11 pt. Is there any we can get the quoted strng in title. By the by i am using the maximum line size option.

Here is the exmaple

TITLE2 J=L FONT=ARIAL BOLD HEIGHT=11PT "NUMBER" J=CENTER FONT=ARIAL BOLD HEIGHT=11PT "&tit2.";
LEFT CENTER
output : NUMBER STUDENTS WITH PAYMENT GREATER THAN
$10,000
LEFT CENTER
Required : NUMBER STUDENTS WITH PAYMENT GREATER THAN $10,000.

Thank you.
3 REPLIES 3
barheat
Fluorite | Level 6
The title does not seem that long to present a problem. You don't mention the output destination. Are you creating PDF, RTF (Word) or something else (a graph title) ?

You could simply replace GREATER THAN with the ">" symbol. Depending on the output you could turn the output to landscape.
hari1109
Fluorite | Level 6
i am creating a pdf output and what i mentioned in the example is the quoted string as title2 in the pdf output.

Thank you.
Cynthia_sas
SAS Super FREQ
Hi:
I believe what you're seeing is described in this Tech Support note:
http://support.sas.com/kb/24/492.html

There are several workarounds mentioned. Your font reduction technique is one of them.

Basically, the note explains that the problem exists because of how SAS and ODS are dealing with the 2 strings in the TITLE2 statement (the string for J=L and the string for J=C).

cynthia

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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