DHFS gate, GET_NEXT_IN_DIRECTORY function
The GET_NEXT_IN_DIRECTORY function returns the next file entry in the current directory buffer. If there are no file entries left, a new directory block is read in. If the number of entries read in is then zero, this indicates the end of the directory, and EXCEPTION/BROWSE_END is returned.
Input Parameters
- BROWSE_TOKEN
- A token representing the browse session.
- FILENAME
- A buffer in which the file name is returned.
Output Parameters
- REASON
- The values for the parameter are:
- ABEND
- BROWSE_END
- INVALID_BROWSE_TOKEN
- LOOP
- RESPONSE
- Indicates whether the domain call was successful. For more information, see RESPONSE parameter on domain interfaces.
- USS_RESPONSE
- Optional Parameter
- The response from UNIX System Services.