In PROC PRINT, can you print only variables that begin with
the letter “A”?
Answers were Sorted based on User's Feedback
Answer / hsong001
Use the idea of variable list (varlist) wildcard :
e.g.,
proc print data=xxx ;
var A: ;
run ;
This will list all variables start with letter A.
| Is This Answer Correct ? | 16 Yes | 6 No |
Answer / henry
proc print data=sashelp.class;
var height weight;
where upcase(substr(name,1,1))='A';
run;
| Is This Answer Correct ? | 1 Yes | 3 No |
PROC PRINT DATA = X;
WHERE SUBSTR(NAME,1,1) = 'A';
RUN;
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / naveen
proc sql;
select *
from qqq
where name contains "A";
quit;
| Is This Answer Correct ? | 0 Yes | 4 No |
Answer / sunil chilaka
Dear fndz to print only variables that begin with
the letter "A" we can use
keep=option
| Is This Answer Correct ? | 2 Yes | 7 No |
Differentiate input and infile.
What is SAS Information Map Studio and its purpose ?
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
What are the uses of sas?
If a variable contains letters or special characters, can it be numeric data type?
If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?
Describe what are the different levels of administrative users in sas? : sas-grid-administration
What is your weekness? I am confuse what to say about this question. so can u give some answer which can be yur strenght.
What is PROC in SAS?
What is the differnce between SDTM 3.1.2 to 3.1.1 version
Explain how merging helps to combine data sets.
What is the Program Data Vector (PDV)? What are its functions?