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

proc sql noprint;
select "'"||left(trim(Region))||"'" into :inlist separated
by ','
where Region like 'A%';
quit;

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention how to limit decimal places for the variable using proc means?

643


Explain data step in SAS

631


What is proc sort?

719


what is data integration? : Sas-di

612


explain the concepts and capabilities of business object? : Sas-bi

540






What is the order of application for output data set options, input data set options and SAS statements?

1080


In ARRAY processing, what does the DIM function do?

711


Can you explain the process of calendar?

640


How do you add a number to a macro variable? : sas-macro

545


what is SAS OPTIMIZATION?

1817


What is a macro routine?

2104


Which command is used to perform sorting in sas program?

597


how does sas handle missing values in functions? : Sas programming

601


What areas of SAS are you most interested in?

1062


if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

546