


This e-mail and any files transmitted with it may contain privileged or confidential information. Is there a way to prevent "this" from happening? I suspect "this" is the program/system sending a file to be written but remaining in some cached space waiting for the proper time to be saved, while subsequent commands are executed and failing to find the file that has yet to be written. I suspect this issue is related to the one described earlier. There was no error or warning message reported in R or SPSS. More recently, in a newer macro that uses the HOST command to start an R session that creates a csv file, when SPSS reads the csv file 2 or 3 commands after HOST was done, it picked up 206 cases, but in looking at the csv file I see 5548 cases that should have been read by SPSS. But I have users of the macros that still use a cloud as their target and run into this problem of looking for a file that should be there, but that it is not. To avoid this I point to a directory on my local machine, and do not run into the problem at all. When this happens, and I rerun the program with no changes whatsoever, the program usually runs with no problem. When the target directory is a cloud, occasionally the program will tell me a file does not exist, even though 1 or 2 lines earlier I have confirmation that the file was indeed written successfully. I have a set of SPSS macros that write and then read many data files.
