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 / ragg

here is the code for your question.
proc sql;
select *
from sashelp.shoes
where Region like 'A%';
quit;
it will list out all letters starting with 'A'in region variable.

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sas metadata repository? : Sas-bi

706


How to convert a numeric variable to a character variable?

721


What is the difference between SAS functions and procedures?

765


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

638


What is the sas data set? : sas-grid-administration

669






Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1329


how to do user inputs and command line arguments in sas?

2519


what is sas and what are the functions? : Sas-administrator

620


what is change analysis in sas di ? : Sas-di

686


what is hierarchy flattening? : Sas-di

719


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

1858


explain about various caches available in data integrator? : Sas-di

676


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

719


explain the key concept of sas? : Sas-administrator

654


How to limit decimal places for the variable using proc means?

699