Hi Aditya,
Please check my code below where I derived two new flags , flag1 and flag2 , flag1 is populated as 1 when there is a spelling mistake and flag2 is populated when there is no complete text like missing ADITYA, so please check and let me know if it meets your requirement.
data have;
input text &:$200.;
cards;
ADTYA
SASUSR
EG
SASUSER EG
;
data want;
set have;
if prxmatch('m/ADITYA|SASUSER|EG/oi',text)=0 then flag1=1;
if prxmatch('m/ADITYA SASUSER EG/oi',text)=0 then flag2=1;
run;
... View more