Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with System call C_DIR_READ_START

Former Member
0 Likes
1,154

Hello to all,

I've been tasked with debugging some code that uses calls to C_DIR_READ_START, NEXT and finish system calls to get a list of files in a specific app server path. The problem is this part of the program is only working randomly. Sometimes I run it and it gets the file list, sometimes i run it and it doesnt.

Does somebody know what can cause this random behavior?

Thanks in advance.

Hello to all,

I've been tasked with debugging some code that uses calls to C_DIR_READ_START, NEXT and finish system calls to get a list of files in a specific app server path. The problem is this part of the program is only working randomly. Sometimes I run it and it gets the file list, sometimes i run it and it doesnt.

Does somebody know what can cause this random behavior?

Thanks in advance.

1 REPLY 1
Read only

Former Member
0 Likes
940

Updating the above post, I tried using the RZL_READ_DIR function module to obtain the same list and i'm getting the same behavior: sometimes it gives me the list, and sometimes it gives me the 'NO FOUND' exception.

Any Ideas?

Thanks in advance.