Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
This must be done on a z/OS system.
Why must this be "done" on a mainframe? If the needed "text" file is available on the mainframe, will this not meet the requirement?
Is this a one-time process or does it need to be run multiple times a day? If it is one-time for some document(s), you might consider downloading the AFP data to a Win-based system, converting this/these to plain text using available Win-tools, and then uploading the text version back to the mainframe.