DATA Step, Macro, Functions and more

proc report error

Accepted Solution Solved
Reply
Super Contributor
Posts: 398
Accepted Solution

proc report error

Hello:

 

I have an error message in the log while I run the codes below,   please help.  Thanks.

 

 

proc report data=have out=report headline headskip;

column Class Label Product;

define Class /group width=150 left;

define Label /group width=150 left;

define Product /group width=150 left;

run;

 

WARNING: A GROUP, ORDER, or ACROSS variable is missing on every observation.


Accepted Solutions
Solution
‎12-04-2017 03:34 PM
SAS Super FREQ
Posts: 9,423

Re: proc report error

Hi:
In addition to @KurtBremser's suggestion to run PROC FREQ, if you are expecting missing data in any GROUP or ORDER variable, you will also want to consult the PROC REPORT documentation to read about the MISSING option.

Note that you did not have an ERROR message -- you have a WARNING message -- you will not receive any output until you correctly add the MISSING option to your code.

In addition, options like HEADLINE, HEADSKIP and WIDTH are LISTING only options and are ignored by ODS HTML and other ODS destinations.

cynthia

View solution in original post


All Replies
Super User
Posts: 10,530

Re: proc report error

Maxim 3: Know your data.

Run proc freq on your variables to see which one has only missing values.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Solution
‎12-04-2017 03:34 PM
SAS Super FREQ
Posts: 9,423

Re: proc report error

Hi:
In addition to @KurtBremser's suggestion to run PROC FREQ, if you are expecting missing data in any GROUP or ORDER variable, you will also want to consult the PROC REPORT documentation to read about the MISSING option.

Note that you did not have an ERROR message -- you have a WARNING message -- you will not receive any output until you correctly add the MISSING option to your code.

In addition, options like HEADLINE, HEADSKIP and WIDTH are LISTING only options and are ignored by ODS HTML and other ODS destinations.

cynthia
Super Contributor
Posts: 398

Re: proc report error

Posted in reply to Cynthia_sas

Thanks, Cynthia.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 206 views
  • 1 like
  • 3 in conversation