List Job Schedule Entries (QWCLSCDE) API
There is an API that could be used to generate a file for your use in query. See the IBM web site for API’s, for more detailed info on the this API.
The entries are not in a file; they are in the scheduler object and are retrieved using the appropriate object method — the List Job Schedule Entries (QWCLSCDE) API.
The API will list the entries into a user space. You loop through the entries in the space and write them to a file or print them, however you choose to do the programming. I’m not aware of any API that helps in writing to a file — at least, not one that’s even close to simply executing a WRITE op-code.