BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi, I am useing ods pdf output from proc print. (sas 9.1)

I have text fields that are very long ($ 5000 length). I am losing data when I output these fields into pdf.

Please help.


Sk.
3 REPLIES 3
Cynthia_sas
SAS Super FREQ
I'm stumped. I made a dataset with a character variable that is 5304 bytes long and the dataset had other variables. I do not see any truncation in the PDF output file.

My character variable is composed of the poem, "Jabberwocky" plus some other text -- repeated to a length of 5304. So, my character string has spaces where PDF can wrap the line. Does your variable value have spaces, where PDF can try to wrap the line??

Your best bet might be to contact Tech Support. To find out how to contact them refer to this site:
http://support.sas.com/techsup/contact/index.html

Good luck!
cynthia
prholland
Fluorite | Level 6
Is there any format applied to the long fields? It may be worthwhile to add a FORMAT statement to the PROC PRINT step to reset formats to default, e.g.:

PROC PRINT DATA=dsn;
VAR col1 col2 longcol3;
FORMAT col1 col2 longcol3;
RUN;

........Phil Holland
deleted_user
Not applicable
thank you both for your reply. I adjusted the size of the cells (cellwidth and cellheight) and it is working now.

Sk

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 3 replies
  • 1204 views
  • 0 likes
  • 3 in conversation