thank you, I have solved my issue by working around the name. the issue is that &&name&i is not a valid sas name. So I couldn't use it for naming my dataset. I now use &I as dataset name and have used symget(&&name&i) to add a variable to the dataset to indentify the file origin
... View more