Hi I have list of products in a dataset,
which are classified by other name for eg:- there is a
product A> Malambo Shiraz Malbec 750ML(0388) which is a Red
wine.Now i need to generate a report where it shows if this
product appears then it should b displayed as red
wine,similarly for other products and other classification.
I dont wan use proc format.
Answer Posted / chandrakanth
please do not post complex answers if it can be done in very very simple.
data=dataset name;
set source dataset name;
if productA="Malambo Shiraz Malbec 750ML(0388)" then productA='Red Wine';
proc print data=dataset name;
run;
let me know if i am wrong
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the basic syntax of a sas program?
what is SAS OPTIMIZATION?
what is null hypothesis? why do you consider that?
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
What can be the size of largest dataset in SAS?
What will calendar procedure do?
How do you control the number of observations and/or variables read or written?
what is study design in while working with SAS? what are screening variables in SAS?
What are the prime responsibilities of data integration administrator? : Sas-di
Explain data_null_?
What are the different versions of sas that you have used until now? : sas-grid-administration
Mention the category in which sas informats are placed?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
Do you need to know if there are any missing values?
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.