The problem is that the filename needs to be in quotes (as it contains spaces)... try
saving("`file`i''")
Interestingly, built-in programs with the -saving()- option don't seem to suffer from this problem... for example
sysuse auto
tempfile test
scatter headroom trunk, saving(`test')
works fine, despite their being spaces in the path - it comes up with the DOS abbreviated version... C:\DOCUME~1\ etc.
-----Original Message-----
From: Clive Nicholas [mailto:[email protected]]
Sent: 07 March 2005 01:30
To: [email protected]
Subject: RE: st: RE: bar graph of multiple variables
invalid 'and'
saving(C:\Documents and Settings\Administrator\Local
Settings\Temp\ST_0i0000an.tmp) invalid
r(498);
*
* 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/