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
explain the main difference between the nodup and nodupkey options? : Sas-administrator
Which command is used to save logs in the external file?
What are the different servers in sas? : sas-grid-administration
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
What is the role of administrative users? : sas-grid-administration
To what type of programms have you used scratch macros?
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
how to debug and test the sas program? : Sas-administrator
What is the basic syntax of a sas program?
What is the difference between order and group variable in proc report?
What do the SAS log messages "numeric values have been converted to character" mean?
What is the use of the %include statement?
What can you learn from the SAS log when debugging?