Whenever you're ready, walk me through how you'd approach this.
Explain how character and numeric functions and macro variables fit into your SAS programming.