BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello experts-
In my dataset, I have a simple variable with 4 values of 1,2,3,4. While there will never be missing data, often not all values will appear in the actual data. However, I would like all values to appear in the report column, with a 0 freq count showing in the cell.

How can I force all this? Here is the define statement I am using:

define eval / across order=freq descending format=evaltyp.
center width=30 spacing=4 left "Evaluation Result";

Thanks !
Francine
College of American Pathologists
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
Assuming that your user-defined format has all the values, then you probably just need to add the PRELOADFMT option to your DEFINE statement:

[pre]
define eval / across order=freq descending format=evaltyp. preloadfmt
center width=30 spacing=4 left "Evaluation Result";
[/pre]

You'd also need to have [pre]
OPTIONS MISSING=0;
PROC REPORT ....;
RUN;
[/pre]

or else you'll get a . for the missing.

cynthia
deleted_user
Not applicable
Cynthia,
thank you very much. This is a perfect fix for my problem.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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