How about the function tslvl(). https://go.documentation.sas.com/?docsetId=hostunx&docsetTarget=p0fjexseegel6tn1w5solsj5gofg.htm&docsetVersion=9.4&locale=en
If you're using EG you can:
data a;
set _prodsavail;
licensed=sysprod(prodcode);
do option='A', 'D', 'E', 'F', 'H', 'I', 'M', 'P', 'S', 'T' ;
tslvl = tslvl(prodmod,option);
output;
end;
run;
Otherwise try:
data b;
prodcode='prodnum208'; prodmod='sasdbf';
do option='A', 'D', 'E', 'F', 'H', 'I', 'M', 'P', 'S', 'T' ;
tslvl = tslvl(prodmod,option);
output;
end;
run;
... View more