Desktop productivity for business analysts and programmers

wrap text in sas eg

Reply
N/A
Posts: 0

wrap text in sas eg

Hi,
how do i wrap text in my text output using list data task in SAS EG Message was edited by: Sunil Gandhi
SAS Super FREQ
Posts: 8,716

Re: wrap text in sas eg

Hi:
The procedure that get generated behind the scenes of the List Data task is PROC PRINT. The only way to wrap a long text field using PROC PRINT is with the CELLWIDTH style attribute, as described in these forum postings:

http://support.sas.com/forums/thread.jspa?messageID=7442ᴒ
http://support.sas.com/forums/thread.jspa?messageID=7435ᴋ
http://support.sas.com/forums/thread.jspa?messageID=7403ᳫ (Example 1)

If you are creating a TXT file (LISTING destination output) with PROC PRINT, however, then the CELLWIDTH style attribute will NOT work -- because the LISTING destination does NOT use ODS style attributes.

The forum posting for #7403 has some sample code (Example 1) that you can use to see the difference between using a format with PROC PRINT and using the FLOW option with PROC REPORT.

cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 248 views
  • 0 likes
  • 2 in conversation