PSPP, a free SPSS clone, often handles locks more gracefully and allows editing active files in certain scenarios.
# Command-line mode
pspp --batch -e "(print active_dataset.sav)"
Inside PSPP syntax:
GET FILE='active_dataset.sav'.
COMPUTE newvar = oldvar * 2.
SAVE OUTFILE='active_dataset.sav' /REPLACE.
PSPP sometimes forces a lock release between read and write, making it useful for scripts. How To Edit Active Sav File
You generally cannot directly edit a .sav file while it’s open in SPSS if another process or user is accessing it. “Active” usually means: How to Edit an Active
To edit it, you must either: