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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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