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

Have you used macros? For what purpose you have used? : sas-macro

547


how can you import .csv file in to sas? : Sas programming

625


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1215


Name any two sas spawners? : sas-grid-administration

548


Do you need to rearrange the order of the data for the report?

1825






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

570


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

787


Hi, If anyone has base SAS certification dumps, please share.

1379


how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?

2281


How does proc sql work?

605


what are validation tools that are used in sas? : Sas-administrator

583


what is metadata? : Sas-bi

588


What is the function of output statement in a SAS Program?

600


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

1568


Mention the difference between ceil and floor functions in sas?

631