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”,…..
Answer Posted / 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 |
Post New Answer View All Answers
How many data types are there in SAS?
What is the difference between order and group variable in proc report?
What is proc sort?
what is the purpose of _error_? : Sas programming
What is factor analysis?
what is treatment emergent events and treatment emregent adverse event
What are the default statistics for means procedure?
Give some ways by which you can define the variables to produce the summary report (using proc report)?
Tell e how how dealt with..
Have you ever used the SAS Debugger?
Explain proc sort?
What is the basic structure of the SAS base program?
how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
where to use sas business intelligence? : Sas-bi
How can sas program be validated?