You need to create an In List that it is to be later used in
a Where Clause that includes all the Regions that begin with
the letter A from the sashelp.shoes table. Using PROC SQL
with an into clause create the following string from the
sashelp.shoes table using the variable region
“AFRICA”,”ASIA”,…..
Answers were Sorted based on User's Feedback
Answer / vema reddy dwarampudi
Please add from clause in the above code
proc sql noprint;
select "'"||left(trim(Region))||"'" into :inlist separated
by ','
from sashelp.shoes
where Region like 'A%';
quit;
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vema reddy dwarampudi
proc sql noprint;
select "'"||left(trim(Region))||"'" into :inlist separated
by ','
where Region like 'A%';
quit;
| Is This Answer Correct ? | 1 Yes | 1 No |
· What are some good SAS programming practices for processing very large data sets?
What is the difference between informat and format statement?
what is fact table and factless table?
what are several options for creating reports in web report studio? : Sas-bi
name several ways to achieve efficiency in your program? : Sas programming
what is SAS/Graph?
What does PROC print, and PROC contents do?
What do the SAS log messages "numeric values have been converted to character" mean?
what is the main difference between rename and label? (don't say that they both perform the same function).
you have a data set like this. data qqq; input name $ total; cards; qq 22 ww 33 qq 22 ee 44 rr 33 ww 44 ; run; and you want output like this......... name total qq 22 ww 44 Do it by data set step.
Can you execute macro within another macro? : sas-macro
What are SAS/ACCESS and SAS/CONNECT?