Storage usage for E35 user exit
DFSORT obtains storage (using GETMAIN or STORAGE OBTAIN) for the parameter list and the records it passes to your E35 user exit routine. You must not attempt to modify or free the storage obtained by DFSORT.
If you need to obtain storage for use by your E35 user exit routine,
such as to pass altered records to DFSORT, you can use the following
strategy:
- The first time your exit is called, obtain the storage you need
- Use the storage you obtained each time your exit is called
- Free the storage before you pass back return code 8 to DFSORT.
Note: When you obtain your storage you can save its
address in the user exit address constant and restore it on each subsequent
call to your exit.