I want to create a temporary dataset with an arbitary name, but I don't want to overwrite any current objects in the work library. So I have a piece of code to find an available identifier for the dataset first,
length str $ 6;
do until(not exist(str) and not exist(str, 'view'));
str = cats("_", put(floor(ranuni(0)*32768), best.));
call symput("dsn", str);
my two questions,
(1) I know I cannot have conflict with current 'DATA' or 'VIEW' names, but are there other types of objects needs to be checked?
(2) Is there an easier way of programming?
Message was edited by: urchin