Richard Kreiss wrote: [...] > Then: file="l_patient_market"{"" What's the purpose of the {"" here? It's effectively a no-op. [...] > Then: qq =fieldname(file,fs) [...] > The error shows at the f in fieldname [...] That's because the first parameter to fieldname() is a lookup name, not an expression which evaluates to a filename. -- Kenneth Brody