IsDataDocInUse Method (Python)
Indicates whether a specified data file is in use by another instance of IBM® SPSS® Statistics. The result is Boolean. The argument is a string specifying the path to the data file. Note: This method is not supported on Mac and Linux.
Syntax
SpssClient.IsDataDocInUse(fileName)
On Windows, it is recommended to use raw strings for file paths, or replace backslashes with forward slashes (IBM SPSS Statistics accepts a forward slash for any backslash in a file specification). Raw strings are specified by prefacing the string with r, as in r'c:\examples\mydata.sav'. In raw mode, Python treats all backslashes in the string as the backslash character and not as the start of an escape sequence.