Extracting messages (EMRETURN)

This function extracts each dynamic allocation message from the system, formats it, and places it in a location that you specify. To extract, obtain an area of storage large enough to hold all the messages that you want to extract. Multiply 256 by the value returned in the S99ENMSG field of S99PARMS to calculate the amount of storage you need. When you invoke IEFDB476, you pass in the field EMBUFP the address of the storage you obtained. IEFDB476 places the extracted messages in the storage you've indicated. Then your program can process the messages as required. Your program is responsible for freeing this area after it has completed processing the extracted messages.