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 C Programs - Examples

User-Defined C Programs - Examples

PowerExchange provides example user-defined C programs on all operating systems.
User-defined C programs use the following prototype:
int CRoutine(int NbrFlds ,char *pMsgBuffer, int *pMsgBufferSize ,char *ppData[], int * pDataLen[]);
The following table lists the example C programs:
Operating System
Member or Program
Location
Linkage Type
Program Requirements
i5/OS
-
-
C
1
Exported routines in a service program
Linux
UNIX
-
-
C
1
Exported routines in an executable shared object
Windows
ucpe.c
The
examples
directory in the PowerExchange installation directory
C
1
Exported routines in the CDECL convention in a DLL
z/OS
UCPE
hlq
.SRCLIB library
C
1
  • Must be fetchable from a load module.
  • Link called modules with AMODE(31). If access is required to AMODE(24) load modules, call the module through an AMODE(31) program that relocates the parameters below the 16 MB line and then calls the AMODE(24) load module.
1. Specify as the third argument in the CallProg function call.

0 COMMENTS

We’d like to hear from you!