I have a program that does a bunch of initial stuff, but at the end, writes a JSON (text) file to a UniData DIR file called JSON.ARCHIVE with a date-time stamp. It then does a chmod on the new file, setting permissions to 666. Finally, it selects all the records (files) in JSON.ARCHIVE that are older than 35 days and deletes them, thus it is self-cleaning.
For some reason, the writes and deletes have stopped working. I do not get an error, and the delete counter increments, but when I LIST JSON.ARCHIVE, my new record is not there and the old ones were not deleted.
Permissions on the Linux dir are drwxrwxrwx, and all the files within are -rw-rw-rw-.
For argument's sake, we have three accounts: DEV, PILOT and LIVE. The programs are all the same and had not been compiled since I rolled the programs out. It still works in DEV but no longer in PILOT or LIVE. To be sure, I re-compiled DEV - it still worked. I copied the working program from DEV to PILOT, re-compiled in PILOT, and PILOT still does NOT work.
From TCL, I am able to edit a new record, save it and delete it.
I am running out of ideas...