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

Explain proc univariate?

0 Answers  


what does .. meant in sas macros

3 Answers   D&B,


How would you define the end of a macro?

0 Answers  


what has been your most common programming mistake? : Sas programming

0 Answers  


Please write codes to merge two datasets and keep every record in the first dataset.

1 Answers  


WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

0 Answers   Satyam,


what is SAS/Graph?

1 Answers   CitiGroup, NTPC,


What is Transaction...? And what are Comment, Roll back n Save point..?

2 Answers  


what is the prob plot in clinical domain

1 Answers   TCS,


What are exact SAS Base contents..?N what r SAS Tools..?

1 Answers  


differnce between 8.2 and 9.1.3

1 Answers  


if reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record

4 Answers   HSBC,


Categories