Sorry, the change in macro longname construction should have read:
.local longname "`pathvar'`filename'"
Note the quotes around the concatenation.
-JW
-----Original Message-----
....snipped....
The problem is that the final \ gets dropped from the path.
.di "`pathvar'"
F:\CELS\
Oddly, the initial macro seems to store this correctly
Changing the longname macro construction to...
.local longname `pathvar'`filename'
.di "`longname'"
F:\CELS35051403
...no effect
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/