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

Check

Check

Enables you to specify which return codes indicate success or failure from programs called by the CallProg function.
Compares the return code from a program called by the CallProg function against one or more specified return codes. If a match is found, writes a user-defined message to the PowerExchange message log.
Syntax:
Check(CallProgRC,'
message'
,"
comparison
",
return_code1,return_code2,return_code3
)
The following table describes the parameters:
Parameter
Description
Datatype
CallProgRC
The return code from a program called by the CallProg function. This name must match the name specified for the result argument in the CallProg function.The Check function compares this return code against the specified return code values.
NUM32
message
A user-defined message that is written to the PowerExchange message log when the return code either matches or does not match, depending on the type of comparison being performed, one of the specified return codes in the list.
Enclose the message text in single quotes.
-
comparison
The type of comparison to be performed. The options are:
  • EQ. A failure occurs if the return code matches one of the specified return codes in the list.
  • NE. A failure occurs if the return code does not match one of the specified return codes in the list.
Enclose the comparison value in quotes.
-
return_code1
return_code2
return_code3
A list of one or more return code values. The Check function compares the return code from the program called by the CallProg function against this list of return code values. You must specify at least one return code value.
NUM32

0 COMMENTS

We’d like to hear from you!