its a new request added to my previous question. waht i asked was to delete datasets within a library whose name is older than 24 months, now i need to do the same across 13 folders for ex: this is my folder structure: /data/DEV/&iterm/DATASET the &iterm should get replaced with 13 folder names, like crc,dbt,mer,online,tbt,yrc,lop,kyt,ded,fsw,fgt,kjh,mnb i am trying to create the macro variable using iterative do loop : %let name_list= crc,dbt,mer,online,tbt,yrc,lop,kyt,ded,fsw,fgt,kjh,mnb; %macro aruna; %local i next_name; %let i=1; %do %while (%scan(&name_list, &i) ne ); %let next_name = %scan(&name_list, &i); %let i = %eval(&i + 1); %end; %mend aruna; but the code is not working. Once this is resolved, i need to develop another code which should be able to delete all datasets which name is 24 months old
... View more