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
How do you convert basic cube to transaction cube and transaction cube to basic cube?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
What is connection profile? : sas-grid-administration
what are input dataset and output dataset options? : Sas programming
what is sas database server? : Sas-di
State the difference between INFORMAT and FORMAT ?
If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro
AE datasets names? how many types?
How would you identify a macro variable? : sas-macro
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
what is sas metadata server? : Sas-di
what are _numeric_ and _character_ and what do they do? : Sas programming
what is enterprise guide? What is the use of it? : Sas programming
Explain the difference between informat and format with an example.
Name and describe few sas character functions that are used for data cleaning in brief.