In reply to Stanford Mwasongwe.

You can ask programming questions at the SAS Support Communities. An expert there will probably suggest that you click on the link to the documentation in the first line of the article. The section "Example 2: Using DO Groups" shows how to process more than one statement for each WHEN condition.