BookmarkSubscribeRSS Feed
johnng
Calcite | Level 5

I notice that there is an option called FW to control thefield width.

If I am not going to print the output to pdf, I canvisualize the difference via the Output View.

However, if I print the output to pdf using ODS, it seemsthe field width is locked and it cannot be changed.

So, I would like to know if it is possible to change thefield width in the pdf format as well.

Furthermore, is it possibleto change the field width independent to the font size of the report, such as 300pt?

2 REPLIES 2
Andre
Obsidian | Level 7

John

See in following pgm others possibilities to obtain some large result from proc means !

HTH

Andre

ods output summary=test;

proc means data=sashelp.class fw=30 ;

var age weight;

run;

ods output close;

data test;

longval= 123456789.236;

set test;

run;

options orientation=landscape;

ods pdf file="d:\temp\largewidth.pdf" style=journal;

proc print data=test;

var longval vname_age age_n;

var age_mean /style={font_size=3pt } ;

var age_stddev age_min age_max;

var weight_mean / style={font_size=7pt};

format_numeric_  30.15;

run;

ods pdf close;

Andre
Obsidian | Level 7

of course,

ods pdf file="d:\temp\largewidth.pdf" style=journal;

proc print data=test style(column)=[width=300];

run;

ods pdf close;

is also working but the result in matter of column width is uniform

Andre

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