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

how to read the variables in sas? : Sas-administrator

641


Why and when do you use proc sql?

850


explain the function of substr in sas? : Sas-administrator

660


What do you know about sas data set?

687


Of all your work, where have you been the most successful?

4304






To what type of programms have you used scratch macros?

2235


What function CATX syntax does?

777


What is the difference between SAS functions and procedures?

765


How you can read the variables that you need?

749


What is maximum storage capability of SAS?

989


What are the functions used for character handling?

746


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

1752


Which are the statements whose placement in the data step is critical?

870


For clinical entire study how many tables will create approx?

1615


for report generation which one you used proc report or data_null_?

6836