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
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 |
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 |
WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS FUNCTION?
how do you derive descriptive statistics?
1 Answers Accenture, Quintiles,
There are 200 observations in a dataset, i want to pull out the observation no's 100, 150,180,190 by using Proc SQL? How you can get it?
How to convert a given date value into SAS date
9 Answers CitiGroup, Quintiles,
Hi All.I am looking for Good Institute who could Provide the online SAS BI+DI Training along with software.Primarily in Delhi/NCR or in Hyderabad Please help with name and contact number of concerned person!! Thanks in Advance! :)
what is intially documentation for a sas programmer?
what is program data vector? : Sas-administrator
How do you read in the variables that you need?
explain the use of % includes a statement in sas? : Sas-administrator
Please write codes to merge two datasets and keep every record in the first dataset.
Name statements that function at both compile and execution time?
What are types of transport files?
2 Answers PRA Health Sciences, Quintiles,