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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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