what is prime numbers? how we can get plc write sas code?
Answer Posted / nandu
A small correction in the above one.
Data samp;
input number1 @@;
cards;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
;
run;
data samp2;
set samp;
number2=number1 ;
if mod(number1,1) eq 0 and mod(number1,number2) eq 0
and (mod(number1,2) ne 0 and mod(number1,3) ne 0 and mod(number1,5) ne 0 and mod(number1,7) ne 0 and mod(number1,9) ne 0) then output ;
run;
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What makes sas stand out to be the best over other data analytics tools?
Given an unsorted data set, how to read the last observation to a new data set?
How do you use the do loop if you don’t know how many times you should execute the do loop?
What are the special input delimiters used in SAS?
explain what is data set in sas? : Sas-administrator
what are the considerations when picking a SAS/STAT procedure?
what is star schema? : Sas-di
How does proc sql work?
Name some categories in sas 9? : sas-grid-administration
Can you explain the process of calendar?
Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com
I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com
how does sas handle missing values in functions? : Sas programming
What are the statements that are executed only?
What is the difference between one to one merge and match merge? Give an example.