Professional Documents
Culture Documents
Observations
Chapter 9
HOMEWORK
❑ Show that you have learnt the use of this function by writing a
small SAS program that involves using SUBSTRING function on
a small example data set you create yourself. The data set must
NOT be taken from any SAS help documentation.
❑ List all SAS character functions and state what tasks may be
performed with them. Description of tasks must be very brief.
SAS data set used in examples
Examples of conditions:
❑ City = ‘Rome’
Example of actions:
When condition in the IF clause if true, SAS performs action specified
in the THEN clause.
ELSE action;
Creating a series of mutually exclusive
conditions
Note the use of brackets in above program. Also note the double quotes
Abbreviating numeric comparisons
If variablename