HI ,
Here is a sample codiing.
I have two line statements.
what I need is the first line statment to be different font size from the below line statment and the font to be bold'
Is it possible to have differnet line statments to be different font attributes?
thanks very much for your help in advance
ods listing close;
ods pdf file ='c:\temp\test.pdf';
proc report data=sashelp.class nowd;
column age name height weight;
define age / order;
compute after _page_/
style={font_size=14pt font_face=Arial foreground=cyan
font_weight=bold just=l};
line ' I want this line font size and need to bold';
line ' I want this line with different font size and non bold font';
endcomp;
run;
ods _all_ close;
Thanks
regards
Tony.
Have a look at the Inline formatting supported by ODS, SAS(R) 9.4 Output Delivery System: User's Guide, Third Edition
Here is some sample code
Hi Bruno
Thanks very much for getting back so soon, I really appreciate but I couldn't get what I expect.
I am runnng SAS 8.2.
When I run this code, I get the folloiwng output for Line statment.
^{style [font_weight=bold]I want this line font size and need to bold}
^{style [font_size=14pt foreground=cyan]I want this line with different font size and non bold font}
Thanks
Well I do not remember whether the Inline formatting was already available with SAS8.2 you might find some user group papers talking about this subject.
Have a look here SAS Technical Support Services and Policies you are using a really old version it would make sense to go for a newer version.
Hi,
ODS ESCAPECHAR was available in late version 8, but the syntax was different. Instead of what Bruno used in his code with a "function-like" style override using ODS ESCAPECHAR and in-line formatting, the original syntax was a bit different. For one thing, it wasn't like a function call and for another, you couldn't nest style overrides. But I have many examples of the original style ODS ESCAPECHAR in this 2007 Global Forum paper on ESCAPECHAR: http://www2.sas.com/proceedings/forum2007/099-2007.pdf, which has comparisons to the "new" syntax. So you can work backwards from the new to the original syntax.
cynthia
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.