>HI,
>
>in my program, i use GETFILE() to get a path & file name as below:
>
>MFILE = GETFILE()
>
>** result i put "C:\MY DOCUMENT FILE\SALES DEPT\my file.txt" for MFILE
>
>copy to &MFILE && <=== error on this line
>
>** a error message will appear on screen, it looks the folder name too long.
>
>what can i do ??
Because the path contains spaces, you need to use () instead of macro substitution.
copy to (MFILE)
Or you can enclose the &MFILE in quotes so it is referenced as one entity.
copy to "&MFILE"
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao