BookmarkSubscribeRSS Feed
Amy
Calcite | Level 5 Amy
Calcite | Level 5
I imported a data file from Epi Info into SAS and have 3 variables which are basically long answers to open-ended questions. The warning message that I get for these 3 variables when I run PROC PRINT is: data too long for column "variable name"; truncated to 98 characters to fit. How can I to increase the column width to max 255 in order to view the full response? I've tried format and infile statements but without any luck.
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
This is not an ODS or BASE Reporting (PRINT, REPORT, TABULATE) question. If you are reading the data, then a LENGTH statement might be what you need, if your issues are with PROC PRINT, then the OPTIONS statement may be what you need. If you use ODS HTML, then you are generally not bound by LINESIZE when using PROC PRINT to list a dataset.
[pre]
options ls=255 nocenter;

ods html file='OE.html' style=sasweb;
proc print data=bigfile;
title 'open ended comments';
run;
ods html close;
[/pre]

If you want more help with this issue, you may find more timely help by contacting Tech Support.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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