OK. I assume that you are using a built-in NLP routine (such as NLPNRA) to compute each optimization. The first argument to an NLP function is a return code (rc). So your call looks like this:
call nlpnra(rc, result, "ObjectiveFunc", InitGuess, options);
When the function returns, the value of the return code will be positive if the optimization converged and negative if the optimization did not converge. Therefore you can save the value of each return code and examine them later, together with the initial guess. Here's some pseudocode to get you started:
proc iml;
...
convergence = j(100,1,.);
initialGuess = j(100, numParams);
do i = 1 to 100;
/* set i_th guess from file or randomly or systematically */
initGuess = T( randfun(NumParams, "Normal") );
call nlpnra(rc, result, "ObjectiveFunc", InitGuess, options);
/* save the initial guess and the return code */
convergence[i] = rc;
initialGuess[i,] = initGuess;
end;
/* now analyze relationship between convergence and initial guess */
You might be interested in reading this article about how to choose a good starting guess for an optimization.