I miss 3 things in this example:
- There is a condition: I found no IF nor anything
- at the end of the inner loop there is no CLOSE file1 7 / CLOSE file2 for file1 or file2
- OPEN file:("WNS": ......)
- W - Write is ok
- S - Stream mode is OK
- N - i s questionable. if you are not on VMS you override the file at each outer loop
http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GIOD_rmsseqfiles#GIOD_rmsseqfiles_use
New file. If the specified file does not exist, the system creates the file. If the specified file already exists, the system creates a new one with the same name. The status of the old file depends on which operating system you are using. On UNIX® and Windows, Caché deletes the old file. (Note that file locking should be used to prevent two concurrent processes using this parameter from overwriting the same file.)
So to get all output you may append arrayIndex to filename to have unique file names
- Log in to post comments







