SaveAs Method (Python)
Saves the syntax document to the specified file.
Syntax
SpssSyntaxDoc.SaveAs(fileName,password=None)
Parameters
fileName. The path and file name of the syntax file, as a string. If you are encrypting the file with a password then specify .spsx as the file extension.
password. An optional string that specifies the password that is required to open the file. This setting applies only if you want to encrypt the syntax file. Passwords are limited to 10 characters and are case-sensitive. All spaces, including leading and trailing spaces, are retained.
Creating strong passwords
- Use eight or more characters.
- Include numbers, symbols and even punctuation in your password.
- Avoid sequences
of numbers or characters, such as
"123"
and"abc"
, and avoid repetition, such as"111aaa"
. - Do not create passwords that use personal information such as birthdays or nicknames.
- Periodically change the password.
Warning: Passwords cannot be recovered if they are lost. If the password is lost the file cannot be opened.
Note: Encrypted data files and output documents cannot be opened in versions of IBM® SPSS® Statistics prior to version 21. Encrypted syntax files cannot be opened in versions prior to version 22.