The SAS Output Delivery System and reporting techniques

ods with proc freq

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 17
Accepted Solution

ods with proc freq

 

ods output onewayfreqs=onefreq (drop=f_name f_sex);
proc freq data=sashelp.class;
tables name sex;
run;
ods output close;

 

here i've run the program ...

log shown like this..

 

WARNING: The variable f_sex in the DROP, KEEP, or RENAME list has never been referenced

 

in that onefreq dataset i don't need f_name, f_sex variables so that i used code like this...

tell me the way to avoid this warning..

Attachment

Accepted Solutions
Solution
‎03-19-2018 07:51 AM
SAS Super FREQ
Posts: 508

Re: ods with proc freq

Posted in reply to rajeshV89

You could avoid the warning by dropping the variables in a subsequent data step.

 

FREQ is making the first data set based on the first tabled variable.

Then it makes the second data set based on the second tabled variable.

At this phase it reconciles the different variables in the first and send data sets and combines them into one.

At the first step, it does not know about the second part, so you get a warning.

View solution in original post


All Replies
Occasional Contributor
Posts: 17

Re: ods with proc freq

Posted in reply to rajeshV89

 

in this warning it mentioned f_sex only but i've given f_name and f_sex in drop option...

 

sas didn't considered f_name varaiable here?

 

but ouput dataset doesn't contains both of the variables..

Solution
‎03-19-2018 07:51 AM
SAS Super FREQ
Posts: 508

Re: ods with proc freq

Posted in reply to rajeshV89

You could avoid the warning by dropping the variables in a subsequent data step.

 

FREQ is making the first data set based on the first tabled variable.

Then it makes the second data set based on the second tabled variable.

At this phase it reconciles the different variables in the first and send data sets and combines them into one.

At the first step, it does not know about the second part, so you get a warning.

Occasional Contributor
Posts: 17

Re: ods with proc freq

Posted in reply to WarrenKuhfeld

thanks for ur answer...

 

i got to know the process the proc freq does...

 

again thanks..

☑ This topic is solved.

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

Discussion stats
  • 3 replies
  • 183 views
  • 0 likes
  • 2 in conversation