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...


in data set200 observation how to take 110,150,170 using sql procedure?

Answers were Sorted based on User's Feedback



in data set200 observation how to take 110,150,170 using sql procedure?..

Answer / anji

Proc sql;
create table ab as select * from SASHELP.class where monotonic() in (10,12,14);
quit;

Is This Answer Correct ?    14 Yes 1 No

in data set200 observation how to take 110,150,170 using sql procedure?..

Answer / ashish

Hey , your anwer is almost right but the only correction is
we derived the count variable by using monotonic() function
so that we have to use "calculated count" in where
statement or we can also use HAVING in palce of WHERE..

PROC SQL;
CREATE TABLE TEST AS SELECT
*,
MONOTONIC() AS COUNT
FROM TEST1
HAVING COUNT IN (110,150,170);
QUIT;

Is This Answer Correct ?    4 Yes 3 No

in data set200 observation how to take 110,150,170 using sql procedure?..

Answer / ram

We have number of options to select or retrieve the data
data part_of;
/*do slice = 100,200,300,400,550,600,700,800,900;*/
do slice = 100 to 900;
set example_1 point=slice;
output;
end;
stop;
run;
Proc Sql;
Select *,monotonic ()as c from example_1
group by date having c in (110,150,170,190);
quit;
Proc Sql;
Select *from example_1
group by date having date in (100,150,180,190);
quit;

Is This Answer Correct ?    1 Yes 0 No

in data set200 observation how to take 110,150,170 using sql procedure?..

Answer / alok karan

proc sql;
select *,monotonic()as obs from alok.countries
where calculated obs in(1,4,8,7,21,23)
;
quit;

Is This Answer Correct ?    1 Yes 0 No

in data set200 observation how to take 110,150,170 using sql procedure?..

Answer / naveen

proc sql;
select *
from qqq
where Height in(69);
quit;

Is This Answer Correct ?    0 Yes 2 No

in data set200 observation how to take 110,150,170 using sql procedure?..

Answer / pranoy

PROC SQL;
CREATE TABLE TEST AS SELECT
*,
MONOTONIC() AS COUNT
FROM TEST1
WHERE COUNT IN (110,150,170);
QUIT;

Is This Answer Correct ?    2 Yes 5 No

in data set200 observation how to take 110,150,170 using sql procedure?..

Answer / naveen

proc sql;
select *
from
where obs, in(11, 23,44);
quit;

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SAS Interview Questions

Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT

0 Answers  


How do dates work in SAS data?

0 Answers  


Describe crosslist option in tables statement?

0 Answers  


What is the difference between proportion and average?

0 Answers   KPMG,


What is the difference between a PROC step and a DATA step?

14 Answers   Accenture, HSBC,


do you prefer proc report or proc tabulate? Why? : Sas programming

0 Answers  


How can sas program be validated?

0 Answers  


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

0 Answers  


wat is sas? is a package or programming language?

4 Answers  


The Lion King is hosting an animal conference. All the animals in the world attend except one. Which animal does not attend?

6 Answers   Oracle,


how to shift the rows to cols? eg: i have like field1 field2 field3 10 20 20 this should be displayed as field1 10 field2 20 field3 30 (without the obs col) how do this?can i use transpose or tell me suitable way to do this?

3 Answers   CMC,


How to convert a numeric variable to a character variable?

0 Answers  


Categories