Hello SAS Support Communities,
Hello,
SAS Technical Support helped me out. Here's the solution:
God bless and best regards,
Jadallah
It's unlikely that someone is going to solve the whole business problem for you. If you want answers from the community then you'll have to do the analysis and ask simplified technical questions for sub-problems you can't resolve.
Hello,
SAS Technical Support helped me out. Here's the solution:
God bless and best regards,
Jadallah
Hi all,
SAS Technical Support helped out! Here's the code:
data dissert1.new11;
set dissert1.new10;
array temp (*) _Auditor_During_Restated_Period _Auditor_During_Restated_Period0 _Auditor_During_Restated_Period1 _Auditor_During_Restated_Period2;
totalnum=n(_Auditor_During_Restated_Period, _Auditor_During_Restated_Period0, _Auditor_During_Restated_Period1, _Auditor_During_Restated_Period2);
count=0;
do i= 1 to dim(temp)-1;
if i=1 then count=1;
if totalnum=1 and temp(i) ne . then do;
newaudit=temp(i);
leave;
end;
if temp(i)=temp(i+1) then count+1;
if count=totalnum then do;
newaudit=temp(i);
leave;
end;
end;
run;
God bless and best regards,
Jadallah
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.