From: maggi on
Please help me in solving this question

Data work.one;
a = 10;
run;

proc print data = work.one;
title1 ……..;
title2 ……..;
run;

However, title1 should be,

Hello World

(There are 15 spaces between the word “Hello” and “World”)

Title2 should be,

Hello


World

(There is a gap of 5 lines between the word “Hello” and “World”. Note
that you are not allowed to use title3, title4, title5…etc.)

Note that default result output of EG should be set to HTML.
From: Patrick on
Hope this paper will be of some help:
http://www.wuss.org/proceedings08/08WUSS%20Proceedings/papers/cod/cod07.pdf
From: Ya on
On Jul 9, 2:04 am, maggi <meghaofde...(a)gmail.com> wrote:
> Please help me in solving this question
>
> Data work.one;
> a = 10;
> run;
>
>             proc print data = work.one;
> title1 ……..;
> title2 ……..;
> run;
>
> However, title1 should be,
>
> Hello               World
>
> (There are 15 spaces between the word “Hello” and “World”)
>
> Title2 should be,
>
> Hello
>
> World
>
> (There is a gap of 5 lines between the word “Hello” and “World”. Note
> that you are not allowed to use title3, title4, title5…etc.)
>
> Note that default result output of EG should be set to HTML.

Use inline formatting:

ods html file="c:\temp\junk.html";
ODS ESCAPECHAR='^';

proc print data=sashelp.class;
title1 "Hello^{nbspace 15}World";
title2 "Hello^{newline 5}World";
run;

ods html close;

HTH

Ya