Gustavo Barizon
Active Member
Hi,
I need to create directories in a shared location from an UBE running on AS/400 - iSeries.
I'm trying to use the API function jdeMkdir, but no success at all. The permissions are set to full control to the "public" in iNavigator and once I create the directory manually, I'm able to write files in there, so there's no permissions issues.
Here's a snippet in how I'm implementing the directory creation:
#elif defined JDENV_AS400
mode_t mode = S_IRUSR | S_IWUSR | S_IXUSR;
nReturn = jdeMkdir(lpDS->szTextDirectory, mode);
if (nReturn != 0)lpDS->cReturnCode=_J('2');else lpDS->cReturnCode=_J('1');
#endif
My lpDS is defined as:
JCHAR szTextDirectory[255];
Any help is really appreciated.
- Gustavo Barizon
I need to create directories in a shared location from an UBE running on AS/400 - iSeries.
I'm trying to use the API function jdeMkdir, but no success at all. The permissions are set to full control to the "public" in iNavigator and once I create the directory manually, I'm able to write files in there, so there's no permissions issues.
Here's a snippet in how I'm implementing the directory creation:
#elif defined JDENV_AS400
mode_t mode = S_IRUSR | S_IWUSR | S_IXUSR;
nReturn = jdeMkdir(lpDS->szTextDirectory, mode);
if (nReturn != 0)lpDS->cReturnCode=_J('2');else lpDS->cReturnCode=_J('1');
#endif
My lpDS is defined as:
JCHAR szTextDirectory[255];
Any help is really appreciated.
- Gustavo Barizon