【问题标题】:SPSS permissions to write to fileSPSS写入文件的权限
【发布时间】:2013-09-17 12:57:32
【问题描述】:

我正在使用文件句柄将我的数据集写入 spss 中的文件,这第一次运行良好。

FILE HANDLE directoryPath /NAME='D:\XX\Dropbox\XX\' . 
FILE HANDLE write_data /NAME='directoryPath/dataset_1.sav' . 
SAVE OUTFILE='write_data ' 

现在我收到以下错误:

>Error # 5332 in column 26.  Text: write_data
>The specified file or directory is read-only and cannot be written to.  The 
>file will not be saved.  Save the file with another name or to a different 
>location or change the access permissions first. 
>Execution of this command stops.

如果我指定完整路径而不是文件句柄:

 SAVE OUTFILE='D:\XX\Dropbox\XX\dataset_1.sav' 
 /COMPRESSED.

它工作正常。如您所见,我正在写入一个保管箱文件夹。我不确定这是否会干扰权限。有没有人知道如何通过更改整体权限来使我的文件句柄示例工作,或者我是否需要恢复手动更改我的语法?

【问题讨论】:

    标签: file permissions save handle spss


    【解决方案1】:

    文件句柄不是累积的。只有第一部分可以解释为文件句柄。

    【讨论】:

    猜你喜欢
    • 2012-02-29
    • 2011-01-20
    • 2015-12-31
    • 2011-08-21
    • 2016-12-24
    • 1970-01-01
    • 2020-06-08
    • 1970-01-01
    • 2011-11-14
    相关资源
    最近更新 更多