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 Marvelous SAS experts,

I have to achieve the following effect as the header of my document, with text on the left and the image on the right. The image will span two lines.

--------------------------------------------------------------------------------------------------

University Report                                                           {University logo image}

Period 2008-2013                                                          {logo image continues}

--------------------------------------------------------------------------------------------------

I've been researching for two days. I use title statements as follows but it shows the image above the text lines. This is a waste of the space.

ods escapechar='~';

title;

title1 j=right "~S={preimage='&filepath.logo.jpeg'}";

title2 j=left height=2 font='Arial' "University Report" ;

title3 j=left height=2 font='Arial' "&period";

Is there a way to the image and the text on the same lines?

Thank you.

Yao

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  You do not mention your destination of interest. RTF, PDF, HTML???

cynthia

Here's an example using HTML see the code and output in the screenshot.


logo_examp.png

View solution in original post

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:

  You do not mention your destination of interest. RTF, PDF, HTML???

cynthia

Here's an example using HTML see the code and output in the screenshot.


logo_examp.png
Carrotbing
Calcite | Level 5

Hi Cynthia,

Thank you for the solution. I tried the html output, which worked.

However, when I try it on rtf, my output destination, it didn't work. Is there anyway to make it work in rtf?

Much appreciated!

Yao

Carrotbing
Calcite | Level 5

Hi Cynthia,

I don't what I did wrong. But the second time that I tried it. The code that you gave me worked with rtf as well.

Thank you.

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