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

What is a macro routine?

2089


What is the SAS data set?

667


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

556


Explain the difference between informat and format with an example.

671


what has been your most common programming mistake? : Sas programming

547






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

543


What is the difference between SAS functions and procedures?

647


describe about metadata object? : Sas-di

612


How do you convert basic cube to transaction cube and transaction cube to basic cube?

1759


What is Linear Regression?

676


how do you test for missing values? : Sas programming

570


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

3887


What is substr function?

610


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

568


Can you suggest us materials for sdtm mapping?

4026