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...


what are system option ? give few examples ?
what are dataset options and dataset statements ?
if there is a keep option and keep statement ? which one is
executed first ?
Difference between a WHERE statement and IF statement ?
what is the advantage of using WHERE statement option on
the dataset ?



what are system option ? give few examples ? what are dataset options and dataset statements ? if ..

Answer / sushil nayak

1) System options are global instructions that affect the entire SAS session and control the way SAS performs operations. Once you invoke a system option, it remains in effect for all subsequent data and proc steps in a SAS job, unless you specify them. For example .. OPTIONS NODATE PAGESIZE=MAX LINSIZE=MAX NOCENTER; ..search SAS online doc to knw more options.

2)Dataset options are options that you code after dataset name,for example KEEP= DROP= WHERE= FIRSTOBS= OBS=..etc dataset statement are coded anywhere within the data and run statements..for example KEEP DROP WHERE RETAIN ..etc

3)If KEEP= and KEEP statement is coded then KEEP option gets executed 1st and then the statement.

4) The following are some of the differences between the IF and WHERE statement ::
a)IF works on newly created variable within the same DATASTEP(for example, variable created by reading a raw file), but WHERE would not work for newly created variable.

b) IF works on Automatic variable (_n_,first. , last.), but WHERE would not work for the same.

c)WHERE can be applied in PROC and DATASTEPS, but IF can be applied to DATASTEPS only.

d) IF does a char to num conversion or visa-versa while checking a condition (IF NEEDED), but WHERE would no cause ERROR, stating that variable being checked is incompatible variable.

There are other differences, would recommend searching sas online or sas sugi papers to knw more.

5) If a WHERE and IF can be applied with a datastep then WHERE should be choosen, reason being, the WHERE statement is more efficient than IF statement.

Is This Answer Correct ?    9 Yes 1 No

Post New Answer

More SAS Interview Questions

what is hierarchy flattening? : Sas-di

0 Answers  


what is sas metadata server? : Sas-di

0 Answers  


What are the new features included in the new version of SAS Programming Language?

0 Answers  


what is fact table and factless table?

1 Answers  


Which are SAS Windows Clients & SAS Java Clients

3 Answers   TCS,


how to extract data from SAP servers? Is like oracle servers or any other methods to extract please reply me.

1 Answers  


HOW MANY WAYS YOU CAN RETRIEVE THE DATA FROM ORACLE TABLES? WHAT IS ORACLE CLINICAL? HOW IT IS USEFUL?

3 Answers   Accenture, Novartis,


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

0 Answers   SAS,


how to import HTML files into SAS datasets?

3 Answers   HP,


How would you keep from overlaying the a SAS set with its sorted version?

4 Answers  


How would you code a merge that will keep only the observations that have matches from both sets.

5 Answers   Accenture, Bank Of America,


What is the difference between proportion and average?

0 Answers   KPMG,


Categories