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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 921 views
  • 1 like
  • 3 in conversation