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 / saurabh
Hi.
I don t know any specific reason why yu dont wan to use
proc format. It would be better if you use that as there
would be probably some more wines in the market where u can
apply this format of red wine....
Anyways I think you can try this.
* the content in brackets have to come from your program
proc sql;
update [dataset_name];
set [wine_name_field] = "Red Wine" where [wine_name_field]
="Malambo Shiraz Malbec 750ML(0388)";
exit;
let me know in case u require something else.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is SAS? What are the functions does it performs?
Are you involved in writing the inferential analysis plan? Tables specifications?
Which are the statements whose placement in the data step is critical?
What are the data types that sas contain?
how to change the execute of macro
Can you execute macro within another macro? : sas-macro
Describe crosslist option in tables statement?
How do you delete duplicate observations in sas?
what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming
how to read the variables in sas? : Sas-administrator
How would you identify a macro variable?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
Can you execute a macro within a macro? Describe. : sas-macro
Differentiate between format and informat? : sas-grid-administration
What is the basic syntax style in SAS?