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 are the prime responsibilities of data integration administrator? : Sas-di
What is the maximum and minimum length of macro variable
How do you test for missing values?
What is the basic structure of a sas program?
Give e an example of..
What system options would you use to help debug a macro? : sas-macro
Describe crosslist option in tables statement?
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.
What are the functions used for character handling?
Tell me more about the parameters in macro? : sas-macro
What is substr function?
What does the RUN statement do?
what are input dataset and output dataset options? : Sas programming
what is program data vector? : Sas-administrator
Explain the purpose of substr functions in sas programming.