Table of Contents

Search

  1. Preface
  2. PowerExchange Navigator Introduction
  3. Data Maps
  4. Data Maps for Specific Data Sources
  5. Copybooks
  6. Registration Groups and Capture Registrations
  7. Extraction Groups and Extraction Maps
  8. Personal Metadata
  9. Database Row Test
  10. PowerExchange Navigator Examples
  11. Appendix A: PowerExchange Functions for User-Defined Fields
  12. Appendix B: User Access Method Programs
  13. Appendix C: Application Groups and Applications
  14. Appendix D: Data Map Properties
  15. Appendix E: Record, Field, and Table Properties
  16. Appendix F: DTL__CAPXTIMESTAMP Time Stamps
  17. Appendix G: Trace for Creating a Memory Map When Importing a COBOL Copybook

Navigator User Guide

Navigator User Guide

User-Defined Programs Return Codes

User-Defined Programs Return Codes

To indicate whether processing succeeded or failed, a user-defined program returns a return code to the CallProg function.
Code user-defined programs to return the following return codes:
  • 0
    . Success.
  • Non-zero return code that is positive or negative
    . Error.
If the CallProg function receives a non-zero return code from the user-defined program, it performs the following default error handling:
  1. A map-level response is triggered.
  2. The map-level response either ends the extraction or skips the user-defined program or subroutine.
In the Expression Editor in the PowerExchange Navigator, you can optionally specify a return argument in the call to the CallProg function. If you omit a return argument, the CallProg function detects the return code returned from the user-defined program and performs default error handling.
The Check function enables you to specify which return codes in a user-defined program called from the CallProg function indicate either success or failure.

0 COMMENTS

We’d like to hear from you!