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

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