BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,
how do i wrap text in my text output using list data task in SAS EG Message was edited by: Sunil Gandhi
1 REPLY 1
Cynthia_sas
SAS Super FREQ
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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1561 views
  • 0 likes
  • 2 in conversation