As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.
Here are some tips for How to share your SAS knowledge with your professional network.
Tips:Using the FLYOVER style attribute to display long text strings
|Does your nice-looking report occasionally have very long character values that dominate the screen real estate? If so, the flyover style attribute may be just what you need. In the example at right, proc report is used to generate a report. A compute block is used to check the length of the long character variable and if it is longer than some pre-determined length (e.g., 40 characters), only the first 40 characters are displayed and the rest of the string is displayed using the flyover attribute.
A few additional points about this example:
ods listing close; ods html file='\temp.html'; ods pdf file='\temp.pdf' notoc; options noquotelenmax; proc report data=sashelp.vslib nowd; columns libname path; compute path; if length(path) > 40 then do; /* only show first 40 chars, use flyover for remainder */ flyoverText = '...'||substr(path,41); path = substr(path,1,40)||'...'; call define(_col_,'style', 'style=[flyover="'||strip(flyoverText)||'"]'); end; /* only show first 40 chars, use flyover for remainder */ endcomp; run; ods _all_ close;