Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.

Answers were Sorted based on User's Feedback



Hi I have list of products in a dataset, which are classified by other name for eg:- there is a p..

Answer / 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

Hi I have list of products in a dataset, which are classified by other name for eg:- there is a p..

Answer / sheetal

above answer is correct. Just need to correct syntax
errors. Following is the corrected code,

proc sql;
update [dataset_name]
set [wine_name_field] = "Red Wine" where [wine_name_field]
="Malambo Shiraz Malbec 750ML(0388)";
quit;

Is This Answer Correct ?    2 Yes 0 No

Hi I have list of products in a dataset, which are classified by other name for eg:- there is a p..

Answer / harsh

You can use HASH lookup for this. Performnace will depend
on the data size.

Is This Answer Correct ?    0 Yes 0 No

Hi I have list of products in a dataset, which are classified by other name for eg:- there is a p..

Answer / 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

More SAS Interview Questions

What do the mod and int function do? : Sas programming

0 Answers  


What is a post baseline?

1 Answers  


Mention how to limit decimal places for the variable using proc means?

0 Answers  


You have a data set of 100 observations,how can you restrict the output so that the output has only data from row no. 10 to row no. 20

9 Answers  


Hi, I need to create a SAS Map of USA using SAS Graphs(Proc Gmap).The data i have dosent contain any co-ordinates of USA cities or counties or states, and the zip codes are diffrent in the data i have from the zip code in the Maps.US dataset in the Maps Library for SAS MAPS. the data i have is a sales report. i have to generate the maps according to the states,cities aligned in the sales data, HELP Appriciated

1 Answers  


How to create list output for cross-tabulations in proc freq?

0 Answers  


Name few SAS functions?

0 Answers  


When you will use nowd option in report???

6 Answers   Accenture,


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

0 Answers  


Are you involved in writing the inferential analysis plan? Tables specfications?

0 Answers  


how do the in= variables improve the capability of a merge? : Sas programming

0 Answers  


How do you debug macros?

3 Answers   Accenture,


Categories