The question How to use IFS_READ & IFS_WRITE services? needs to be reopened. It is looking for an example of how to use a specific API provided by DB2 for IBM i. The original close reason (asking for third-party tools) is invalid, as is the reason given for leaving closed (original reason not resolved).
The problem is that this platform is not well understood by the community, and when folks don't understand a topic, they frequently vote to close, or vote to leave closed. None of the close votes came from anyone with experience with this platform, and I suspect the leave closed vote came similarly from someone without any experience in the platform. I did explain the situation to the one close voter who left a comment, and that person reversed their close vote. Can someone please go submit the last reopen vote so an answer can be provided?
Specifically, the OP asked for a simple example of using the IFS_READ or IFS_WRITE API from the COBOL language. These API's are hidden in a strange place in the IBM documentation, and the examples provided are for RPG. Someone unfamiliar with the platform or its capabilities might have a difficult time wading through all the various manuals trying to find and connect all the various bits and pieces to get a working example. If the question were open, an answer would be easy to provide.