In reply to Caleb Mwamburi.

You can use the VECDIAG function to extract the main diagonal of a matrix. If that doesn't answer your question, please post your question (along with an example of what you have and want) to the SAS Support Community for IML.