Hello, thanks in advance for any guidance. I am using the Open API in an RPGLE program (shown below), if the file is not in the IFS the open should create the empty file. We have 2 users where the FD returns as -1. Other users work correctly, FD returns as 0. All authorities appear to be identical and the authority on the IFS appears to be correct. Is there a way to get more logging info so I can see why the Open is failing?
Code:
iFileID = OpenFile(%addr(szTempFile):O_RDWR+O_CREAT+O_TRUNC: S_IRWXU); if iFileID <> -1; // Write "from" addresses if %PARMS()>=14; szAlias=' "' + %trim(PFromAlias) + '"'; else; szAlias=''; endif;
Comment