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 |
How to convert .xls file into CSV format?
How does Mr.Lanka Srinivas teach SAS? Are his accomplishments real? What are the future prospects for SAS?
how can u import .csv file in to SAS?tell Syntax?
7 Answers CitiGroup, Franklin Templeton,
What are SAS/ACCESS and SAS/CONNECT?
what is p-value
3 Answers Accenture, Quintiles, Sristek,
Describe crosslist option in tables statement?
There is a river notoriously known for it?s large crocodile population. With ease, how do you safely cross it?
Describe the types of SAS programming tasks that you performed like Tables? Listings? Graphics? Ad hoc reports? Other?
is it possible to generate sas datasets using proc print ???
1 Answers GSK GlaxoSmithKline,
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
What are types of transport files?
2 Answers PRA Health Sciences, Quintiles,
why is a stop statement needed for the point=option on a set statement? : Sas programming