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


i have a null dataset with 20 variables. i want to upload the
variables which contain name like a or k or anything in
another dataset.how can we create the dataset?

Answers were Sorted based on User's Feedback



i have a null dataset with 20 variables. i want to upload the variables which contain name like a ..

Answer / xxx

proc print data=DSN;
var a: k:;
run;

Is This Answer Correct ?    6 Yes 1 No

i have a null dataset with 20 variables. i want to upload the variables which contain name like a ..

Answer / sasuser

Ans: I didn't understood the question clearly. What I
understood is , the person wants to copy selected variables
from a dataset(which has no observations) to a different
dataset.The following is the solution:
proc sql;
create table want
like emptydataset (keep=n: a:)
;
quit;
Note:emptydataset does not contain any obs.
Let me know, If my solution is wrong.

Is This Answer Correct ?    1 Yes 2 No

i have a null dataset with 20 variables. i want to upload the variables which contain name like a ..

Answer / alok karan

data _null_ new;
set  qqq;
where name like "q%" or name like "w%";
put name total;
run;
proc print data=new;
run;

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More SAS Interview Questions

How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?

0 Answers  


how can u join the two tables without using proc sql Joins and nested queries ?

6 Answers   IBM,


Do you use PROC REPORT or PROC TABULATE? Which do you prefer? Explain.

3 Answers  


Name statements that function at both compile and execution time?

1 Answers  


what is the difference between infile and input? : Sas-administrator

0 Answers  


what other sas products have you used and consider yourself proficient in using? : Sas programming

0 Answers  


What is the Program Data Vector (PDV) and What are its functions?

9 Answers  


What do you feel about hardcoding?

4 Answers   Oracle,


How would you code a merge that will keep only the observations that have matches from both sets?

5 Answers  


explain the key concept of sas? : Sas-administrator

0 Answers  


SAS using companies in chennai

1 Answers  


How many data types are there in SAS?

0 Answers  


Categories