Why my SAS doesn't have CMISS function?
It appeared in version 9.2 I think.
It appeared in version 9.2 I think.
Or you made a mistake somewhere else in the code or usage.
Post the full code/log and your SAS version.
2142 data txn_contactlesscmiss;
2143 set db2dw.acarddet;
2144 where dTran between '01JAN2017'd and '28FEB2017'd
2145 and (cPOSMode in ('07')
2146 or (cPOSMode in ('90','02')
2147 and cmiss(cToken, cPvder, idTReq) = 0));
ERROR: Function/subroutine CMISS not found
2148 run;I think this part of the log file you're looking for.
If you have low version sas. there is an alternative way.
data x;
input (a b c) ($);
cards;
w e .
s f d
;
run;
data want;
set x;
array x{*} $ _character_;
n_miss=cmiss(of x{*});
/*alternative way*/
_n_miss=0;
do i=1 to dim(x);
if missing(x{i}) then _n_miss+1;
end;
if _n_miss=1 then put 'xxx';
run;
proc print;run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.