BookmarkSubscribeRSS Feed
ManojPappula
Calcite | Level 5

I have a variable of length 1040. I have to display it in Crosstab or List table.Added the variable to Crosstab or List table displaying as data not available. How can i show that variable.

2 REPLIES 2
Astounding
PROC Star
Use PROC REPORT with the WRAP option.
Cynthia_sas
Diamond | Level 26

If you are getting LINESIZE errors like this:
ERROR: The width of <variable name> is not between 1 and 256.
       Adjust the column width or linesize.

Then you need to issue:
ODS LISTING CLOSE;
before your job runs.

The LISTING window is limited to LINESIZE. PROC REPORT, as suggested will display longer values -- you don't need the WRAP option if you use an ODS destination like HTML, PDF or RTF.

Here's an example:
lotta_chars.png

In this example, LONGVAR1 was over 1100 characters and LONGVAR2 was over 1400 characters.

 

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

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 870 views
  • 1 like
  • 3 in conversation