IBM Support

Error # 5336 "The specified file is already in use" displayed for each SAVE OUTFILE loop of a macro syntax

Troubleshooting


Problem

I am running a complex macro syntax with a DO - DOEND loop structure in it with Statistics 18.0.2. In each loop I create some analysis for the same data file but would like to save different variables in each loop. I have defined the same file name in my macro and not x file names. However, when I run my macro syntax I get the error below: >Error # 5336. Command name: SAVE >The specified file is already in use and cannot be written to. The data will not be saved. >Execution of this command stops. Questions: Is that functioning as designed? Is there any way to avoid this error without saving X separate files? I am also wondering why this error does not occur for each iteration? I have noticed that for example on 10 iterations this error warning is only displayed three times.

[{"Product":{"code":"SSLVMB","label":"IBM SPSS Statistics"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF014","label":"iOS"},{"code":"PF033","label":"Windows"}],"Version":"18.0","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

90575

Document Information

Modified date:
16 April 2020

UID

swg21487358