ods escapechar='^' ;
title '^demographic^details' ;
proc report data=sashelp.class nowd;
column name sex age height; run;
I want to create 2 titles with single statement .I have tried above program but it is not working.
ods escapechar='^' ;
title '^demographic^details' ;
title2 'my second title line'
proc report data=sashelp.class nowd;
column name sex age height; run;
@thanikondharish wrote:
ods escapechar='^' ;
title '^demographic^details' ;
proc report data=sashelp.class nowd;
column name sex age height; run;
I want to create 2 titles with single statement .I have tried above program but it is not working.
Escapechar to have any effect is going to need a function or style element in some.
Perhaps you are looking for
ods escapechar='^' ; title 'demographic^{newline}details' ; proc report data=sashelp.class nowd; column name sex age height; run;
@thanikondharish wrote:
ods escapechar='^' ;
title '^demographic^details' ;
proc report data=sashelp.class nowd;
column name sex age height; run;
I want to create 2 titles with single statement .I have tried above program but it is not working.
Depends on the output destination.
Hi:
Your program above is not correct. you need more than just the ^ ESCAPECHAR you need the NEWLINE function:
title 'demographic^{newline 1}details' ;
But, also, this will work in RTF, PDF and HTML. Will not work in CSV, ODS EXCEL or ODS TAGSETS.EXCLEXP. So it really depends on your destination of interest, which you did NOT show. The ^ by itself is NOT a newline or line feed or carriage return instruction.
Cynthia
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.