Peter, You are probably right in that it is the way I am defining F01, for clarification this is how I have been defining it: FILENAME F01 TEMP; Then I write my steps to produce my XML file, pointing my ODS to F01. It seems to be working except for I can not attach F01(the fileref) or the Physical file name of F01(%let physical = %sysfunc( pathname( &logical ));) to an email. Is my only option to allocate a dataset for every file I plan on creating, writing my XML to the dataset, then attaching the dataset? What I am trying to achieve is a program that will create a variable number of XML files, dependent on the data, and email them all out
... View more