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


Please Help Members By Posting Answers For Below Questions

what versions of sas have you used (on which platforms)? : Sas programming

584


What is a method to debug and test your SAS program?

717


Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager

1612


What is the difference between SAS functions and procedures?

655


why is a stop statement needed for the point=option on a set statement? : Sas programming

585






Explain what Proc glm does?

635


What is the command used to find missing values?

593


What is PROC in SAS?

604


What is the difference between %put and symbolgen? : sas-macro

669


What does the trace option do?

664


Mention the category in which sas informats are placed?

624


Of all your work, where have you been the most successful?

4201


Mention what are the data types does SAS contain?

695


What do the PUT and INPUT functions do?

777


How will you generate test data with no input data?

563