Cynthia,
I included the documentation on Flow to let reader know that I was aware of this option and that, as you observed, is for the LISTING destination.
I should have given more details: Times New Roman, 10 pt, with
class table from output
/ frame = hsides
rules = groups
cellpadding = 2.0pt
cellspacing = 0.5pt
borderwidth = 1.0pt
background = color_list( "BGT" )
;
I am still weak on TEMPLATEs, so I am not sure if the above applies to report. It is legacy code that I obtained and 2.0 pt padding seems undesirable.
I padded the variable value with blank spaces (PDF and RTF destinations). I found that when wrapping occurs, then the INDENT does not apply to the subsequent lines (as you show below). Instead, I manually inserted:
if row_1 = " Subject had a clinically significant protocol deviation during the induction phase"
then row_1 = " Subject had a clinically significant protocol deviation during^n the induction phase" ;
Note that my ODS ESCAPECHAR = "^" and three spaces follow "^n". The issue is that we might have listings of hundreds of pages. I stumbled onto http://www.pharmasug.org/proceedings/2012/CC/PharmaSUG-2012-CC22.pdf
"A Macro to Indent and Hyphenate Lengthy Text in PROC REPORT" by Stanley Yuen
Note that Regex can get us pretty far:
12528 data _null_ ;
12529 length x $ 200 ;
12530 x = " three little pigs" ;
12531 x = prxchange( "s/(.*)(?:\s+)([\S]*)$/$1^n%sysfunc(repeat( %str( ) , 2 ))$2/o" , 1 , trim( x )) ;
12532 put x $char40. ;
12533 run ;
three little^n pigs
(With some flexibility, with the number of spaces ready to be replaced by a macro variable, complicating the code.)
Bummer, as you observed in a previous post, we'd need to use   since we are in HTML land so the leading three spaces are gone...
The macro would to break on spaces, or if we allow, in words (using a hyphen), would not be that complicated.
The big issue is length. I spent some time reading about fonts because some asked me to predict how many characters would fit in a given column/table. Fascinating, if you can believe it, but I like books and did not mind reading about printing presses (carrying over from my childhood when I found an old newpaper in New Hampshire that had those "funny" s's that look similar to f's with a base and no line in the middle. The only thing that I can think of at the moment is to use the least narrow and the widest (M?) characters to find a conservative length, but we have not guarantee other bytes, like symbols will not appear in the value.
Thank you,
Kevin
... View more