Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is prime numbers? how we can get plc write sas code?

Answer Posted / bala

***how we can get plc write sas code? ;
data prime;
input numbers @@;
datalines;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
47 48 49 50 51 52 53 54 55 56 57 58
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
76 77 78 79 80
;
run;


data p1(drop= p numbers);
set prime;
P=numbers;
if mod(P,1)= 0 and mod(P,P) = 0 and mod(P,2) ^= 0
and mod(P,3) ^= 0 and mod(P,5)^=0 and mod(P,7)^=0 then
Prime_numbers=P;
if P=3 or P=2 or P=5 or P=7 then Prime_numbers=P;
if not missing(prime_numbers);
put prime_numbers;
run;

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you limit the variables written to output dataset in data step?

1315


Describe what are the different levels of administrative users in sas? : sas-grid-administration

1035


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

1188


WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

2795


What is the difference between where and if statement?

1112


Describe the function and untility of the most difficult SAS macro that you have written.

2211


what is data access? : Sas-di

1137


What are the table names in oracle database...?

2749


how to remove duplicates using proc sql?

1146


I have a dataset concat having variable a b & c. How to rename a b to e & f?

1014


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

1074


Describe the ways in which you can create macro variables?

1189


Can you explain the process of calendar?

1113


Mention how to limit decimal places for the variable using proc means?

1111


To what type of programms have you used scratch macros?

2566