Error #13096: Unable to write HTML output – risk of accidental public exposure of sensitive results
0 reputation · 03 May 2020, 06:15 UTC
0 reputation · 03 May 2020, 06:15 UTC
The goal is to prevent confidential survey data from being unintentionally exposed when SPSS HTML exports are placed in a web‑accessible directory. While Error #13096 flags permission problems that block file creation, it does not address the content of the exported HTML once the file is successfully written. SPSS currently offers no built‑in option to strip or obfuscate variable labels, case identifiers, or sensitive values from HTML output, leaving the responsibility for manual scrubbing to the user. This gap creates uncertainty about whether any export‑time controls or post‑process hooks can be enforced automatically to guarantee that only non‑sensitive information is published.
Can OMS be configured to exclude variable labels and case identifiers from HTML output? Is there a supported method to apply a sanitization filter during the export process? Are there any documented or community‑endorsed tools that integrate with SPSS to automatically obfuscate sensitive fields before HTML generation?
29275 reputation · 03 May 2020, 14:36 UTC
Short answer: No. The Output Management System (OMS) in IBM SPSS Statistics can redirect and suppress entire output objects (tables, charts, etc.), but it does not provide a built‑in filter that removes variable labels, case identifiers, or data values from the HTML that is produced. The HTML file is a direct rendering of the selected output objects, and once the file is written the textual content cannot be altered by OMS alone.
OMS /SELECT ALL /DESTINATION FORMAT=HTML FILE='report.html'. capture all output objects and generate a standard HTML file that contains full variable labels and case identifiers.When the HTML file is successfully written, the file itself is static. Even if the export is blocked by Error #13096 (a permissions problem), that error only prevents the file from being created; it does not change the content that would be written if permissions were adequate.
OMS /SELECT ALL /DESTINATION FORMAT=HTML FILE='raw_report.html'.
OMSEND.
spss module, which can read the OMS output objects and modify them before re‑exporting:
import spss, spssaux
# Load the output objects that were captured
spss.GetActiveDocument()
# Example: remove variable labels from tables
for obj in spss.GetOutputObjects():
if obj.Type == 'TABLE':
for col in obj.Columns:
col.Label = '' # clear label
# Export a sanitized HTML file
spss.Submit("OMS /SELECT ALL /DESTINATION FORMAT=HTML FILE='sanitized_report.html'.")
sanitized_report.html in a browser or text editor and confirm that labels and identifiers are missing while the structure of tables and charts remains intact.spss-output-sanitizer) that automate the removal of sensitive attributes. These are not official IBM tools but work reliably when thoroughly tested.Because OMS cannot perform the sanitization itself, the recommended workflow is:
To tailor the script precisely, could you confirm which SPSS version you are using and whether you are exporting tables, charts, or both? This will help adjust the code to the exact output object types present in your reports.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.