I've given this some thought and I can't think of a way of doing it. If it were possible then a Proc FCMP function called via the FCMP package would be the most likely way but not everything you can do in FCMP works through DS2.
I'm not even sure the concept necessarily fits with DS2 since the data set would most likely be represented by the DS2 package which seems unnecessary. Of course data sets created with DS2 are compatible with Base SAS anyway so you can just call the Procedure outside DS2, reconfiguring your program as necessary.
... View more