How do I use macro substitution in the COPY FILE command.
I want to copy a TEMPLATE.XLS file to one named the CURRENT DATE.
lcflnm = DTOC(DATE())+".XLS"
COPY FILE template.xls TO &lcflnm (does not work)
COPY FILE template.xls TO (lcflnm) (does not work)
Can anyone resolve this?
Thanks,
Harry
I want to copy a TEMPLATE.XLS file to one named the CURRENT DATE.
lcflnm = DTOC(DATE())+".XLS"
COPY FILE template.xls TO &lcflnm (does not work)
COPY FILE template.xls TO (lcflnm) (does not work)
Can anyone resolve this?
Thanks,
Harry