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

Under what circumstances would you code a SELECT construct
instead of IF statements?

Answer Posted / sonu

The SELECT statement begins a SELECT group. SELECT groups contain WHEN statements that identify SAS statements that are executed when a particular condition is true. Use at least one WHEN statement in a SELECT group. An optional OTHERWISE statement specifies a statement to be executed if no WHEN condition is met. An END statement ends a SELECT group.
Null statements that are used in WHEN statements cause SAS to recognize a condition as true without taking further action. Null statements that are used in OTHERWISE statements prevent SAS from issuing an error message when all WHEN conditions are false.
Using Select-When improves processing efficiency and understandability in programs that needed to check a series of conditions for the same variable.
Use IF-THEN/ELSE statements for programs with few statements.
Using a subsetting IF statement without a THEN clause could be dangerous because it would process only those records that meet the condition specified in the IF clause.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2557


how does sas handle missing values in procs? : Sas programming

1235


What is the basic structure of the SAS base program?

1304


What is the purpose of _character_ and _numeric_?

1050


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2327


List down the reasons for choosing sas over other data analytics tools.

1264


What is a pdv and what are its functions?

1132


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1774


What is the difference between match merge and one to one merge?

1236


Mention some common errors that are usually committed in sas programming.

1033


How does the internal authentication work in sas? : sas-grid-administration

1113


Explain the main difference between the sas procedures and functions? : Sas-administrator

1060


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

1049


Can you explain the process of calendar?

1108


What are the difference between the sas data step and sas procs?

1173