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


Please Help Members By Posting Answers For Below Questions

What is the role of sas grid administrator? : sas-grid-administration

828


What are the functions used for character handling?

644


To what type of programms have you used scratch macros?

2142


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

680


Explain append procedure?

636






What is the difference between the proc sql and data step?

663


What is the role of unrestrictive users? : sas-grid-administration

571


Mention the difference between ceil and floor functions in sas?

648


What is the difference between %local and %global? : sas-macro

668


What is the work of tranwrd function?

668


what techniques and/or procs do you use for tables? : Sas programming

573


what is slowly changing dimension? : Sas-di

626


How many data types are there in SAS?

634


what is metadata? : Sas-bi

600


What does proc print, and proc contents are used for?

611