Hi @snoopy369,
No worries at all about bringing this thread back to life.
I looked into this and, from what I can tell, the defaultValue attribute for a DataSource element actually was first introduced in SAS Studio 5.1 and not SAS Studio 3.8. I believe its inclusion in the SAS Studio 3.8 documentation when James & I originally looked at it was a mistake, which is why it has since been removed from the documentation. At the time, I just didn't actually verify that it worked in that version.
I did just try to use it in SAS Studio 3.8 and it also did not work for me, but it does work in SAS Studio 5.1. So unfortunately, the workaround I mentioned previously is still the only way to deal with it in SAS Studio 3.8 that I am aware of.
Hopefully this information is helpful! Please post again if you have any additional task writing questions. Speaking of which, this is a shameless plug, but for this year's SAS Global Forum I wrote a paper on custom task writing. The focus of the paper is on writing custom tasks that generate CASL code, but I believe most of the tips and information in the paper are applicable to custom task writing in general. I just wanted to bring it to your attention in case the paper is useful.
Best,
-Brian
... View more