>How do you have you program check how many datasessions are open at the time your program is running. Specifically when you want to use Datasession 2 if and when it is available.
>
>Thanks.
There is no native functions like ADATASESSIONS(). AFAIK, the only way to do this is loop through all reasonable datasession numbers, trying to SET DATASESSION to that datasession, and trapping for the error if the datasession is invalid.
Erik Moore
Clientelligence