DATA Step, Macro, Functions and more

cmiss(of _all_)

Reply
Respected Advisor
Posts: 4,173

cmiss(of _all_)

Hi

Why equals "cmiss(of _all_)" to the number of missing variables plus 1. (SAS 9.2 TS Level 2M3, X64 VSPRO).

data have;
a=1;b=.; c='x'; output;
a=.;b=.; c=' '; output;
a=.;b=.; c='x'; output;
run;

data test;
set have;
x= cmiss(of _all_);
put x=;
run;

Thanks
Patrick Message was edited by: Patrick
Respected Advisor
Posts: 3,799

Re: cmiss(of _all_)

set have;
x= cmiss(of _all_);

everything from HAVE + X.

Think about it.
Respected Advisor
Posts: 4,173

Re: cmiss(of _all_)

Posted in reply to data_null__
.... oh!?

Thanks data _null_; I wouldn't have thought about this.
Ask a Question
Discussion stats
  • 2 replies
  • 1162 views
  • 0 likes
  • 2 in conversation