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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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