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
Diamond | Level 26
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1782 views
  • 0 likes
  • 2 in conversation