You need to put quotes around the path/filename if it contains any spaces. So just add the line:
lcExportFile = ["] + lcExportFile + ["]
>when I type in a file name with spaces (i.e. text file1
>REPORT FORM os_items TO FILE &lcExportFile ASCII
Peter Franz