Dear all,
I know several variants of the following question have been asked before. However, I am still unable to incorporate the advice to my problem. Hence re-posting. I am running NLPNRA in a loop and would like to store the estimates and gradients in each iteration in a SAS dataset. The code that is being looped looks somewhat like this -
ods output ParameterEstimates = mle;
proc iml;
[OBJECTIVE FUNCTION]
quit;
When I run this code 1000 times in a loop, I see 1,000 HTML files created in my SAS Temporary Files directory. This chokes up my workspace and the subsequent iterations tend to take longer. My question is - how do I recover the file "mle" dataset in the code and delete the html file generated in the temporary files directory?
I tried the following and the HTML files continue to be generated in all the attempts:
- Add 'ods exclude all' and 'ods exclude none' before and after proc iml
- Add 'ods noresults' and 'ods results'
- Add dm 'odsresults; clear'; after executing proc iml
- Add 'ods _all_ close' before executing proc iml
Any suggestions would be great.
Thank you,
Rakesh