SELECT construct is used instead of IF statements - SAS

SELECT construct is used instead of IF statements

- When there is a long series of mutually existing conditions
- And comparison is numeric
- Because the CPU time is reduced by using SELECT.

SELECT GROUP:

Select: Beginning of the SELECT GROUP.
When: Identifies SAS statements meant for execution when a condition is true
Otherwise (optional): A statement is specified if no WHEN condition is met.
End: Ends a SELECT group.
How to code a merge? - SAS
Step 1: Define three datasets in DATA step, Assign values of IN statement to different variables for two datasets.......
What is Program Data Vector (PDV)? What are its functions? - SAS
What is Program Data Vector (PDV)? - PDV is a logical area in the memory, SAS creates a dataset one observation at a time.......
How to put SAS time variable with a leading zero for hours 1-9? - SAS
SAS time variable - Use a combination of Z and MMSS formats......
Post your comment