The SAS Output Delivery System and reporting techniques

text splitting or wrapping within columns (no col headers)

Reply
Regular Contributor
Regular Contributor
Posts: 170

text splitting or wrapping within columns (no col headers)

Back again...a newbie at ODS so I am doing this baby steps-
At any rates is there to do a similar "split" within a column so that the text wraps to the next line-

Incidentally I use proc format for the observations so that my proc format statement is:

value $unitsvap
'10 ICC'="ICC:10 &ICCVAP / Days without a VAP"
...code...

What I would like is that it splits after the / into two lines.

Thank you all again for your tips and advice...
Lawrence
Super Contributor
Posts: 273

Re: text splitting or wrapping within columns (no col headers)

Take a look at this example from 'VAP to ...'
with an escape character you are able to use some facilities
like \n new line \_ unsecable blanc and so on see at

www2.sas.com/proceedings/forum2007/099-2007.pdf
written by a well known contributor of this discusson forum

[PRE]
proc format;
value $s
"M" = "really \n macho"
"F" = "uncredible \n vamp"
;
run;
ods escapechar="\";
ods listing close;
ods html file="d:\temp\line.htm" ;
title 'Special class' ;
proc freq data=sashelp.class;
tables sex;
format sex $s.;
run;
ods html close;
ods listing;

[/PRE]
Regular Contributor
Regular Contributor
Posts: 170

Re: text splitting or wrapping within columns (no col headers)

Andre;
Worked very well! Thank you!
Lawrence
Ask a Question
Discussion stats
  • 2 replies
  • 136 views
  • 0 likes
  • 2 in conversation