# IPI_Terminate() This subprocedure is used to terminate the internal IPI environment. This should be called once all IPI operations have been completed at the end of your program. ## Subprocedure Prototype | Field | Description | |---|---| | `Dcl-Pr IPI_Terminate Ind OpDesc ExtProc('IPI_Terminate');` | Returns *OFF if an error occurs during processing, *ON otherwise. | | ` pErrorDS LikeDS(IPI_ErrorDS_t) Options(*NoPass:*Omit);` | Optional parameter that, if passed, will contain error data returned from the subprocedure. If it is not passed, exceptions will instead be "thrown" and must be caught by a MONITOR block. | | `End-Pr;` | | ## Data Structures ### IPI_ErrorDS_t | Field | Description | |---|---| | `Dcl-Ds IPI_ErrorDS_t Qualified Template Inz;` | | | ` Subproc VarChar(132);` | Subprocedure which received error | | ` MessageCode Char(7);` | Message ID of error message | | ` Message VarChar(1024);` | Error message text | | `End-Ds;` | |