In reply to Marc de la Barrera.

Yes, you can do that. The first sentence in this article contains a link to the documentation. The first example in the doc answers your question. You can also read the article, "Define functions with optional parameters in SAS/IML."