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


Please Help Members By Posting Answers For Below Questions

What are the prime responsibilities of data integration administrator? : Sas-di

591


What is the maximum and minimum length of macro variable

658


How do you test for missing values?

1062


What is the basic structure of a sas program?

602


Give e an example of..

1850






What system options would you use to help debug a macro? : sas-macro

645


Describe crosslist option in tables statement?

715


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.

1803


What are the functions used for character handling?

649


Tell me more about the parameters in macro? : sas-macro

596


What is substr function?

626


What does the RUN statement do?

856


what are input dataset and output dataset options? : Sas programming

567


what is program data vector? : Sas-administrator

617


Explain the purpose of substr functions in sas programming.

569