Selecting the number of components for PLS is a bit trickier than for PCA. For instance, one reason is that quantities such as "explained variance" are more complex since you have both the $\mathbf X$ and $\mathbf Y$ parts of the model contributing to the variation explained.
Thus for PLS, cross-validation tends to be the default method for selecting the number of components. In SAS this can be implemented using the CV feature of its PROC PLS function.
Here is a link to the SAS website where they refer to it in their function.
SAS also provides some documentation on exactly what they are doing in the cross-validation procedure they have implemented here if you would like to know the details.
In this document, you have an example of how to do all of this in practice.
I'm clarifying my position. I'm not asking anyone to do my homework. I'm only asking for leads, to show me the way like when you are in a foreign city and you don't know where that famous place is. However, using that analogy and agreeing with you, I have to do the walk to that place , no one is going to do it for me.
– Andy K May 23 '14 at 10:52