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

CheckNumData

CheckNumData

Enables a calling program to check whether a field contains valid numeric characters for field types CHAR, NUMCHAR, ZONED, and PACKED. If the program finds invalid data, it takes additional action.
CheckNumData performs a similar function to the data checking options in the data map properties. CheckNumData applies data checking to a single field, rather than to the entire data map. You can use CheckNumData to validate numeric data fields before conversion processing by a function such as the CopyData function.
Syntax:
CheckNumData(
field_name
,
field_type
,
action
)
The following table describes the parameters:
Parameter
Description
field_name
The name of the field to check for valid numeric data.
field_type
The datatype of the field to be checked by CheckNumData. The following types are valid:
  • CHAR
  • NUMCHAR
  • ZONED
  • PACKED
action
The action to take if invalid data is found in the field for the specified datatype. Options are:
  • REPLACE. Replaces the field value with a specific value that is valid.
  • SETNULL. Replaces the field value with a null character that is valid for the target.
  • SKIP. Skips the field in the target mapping if the field contains invalid data.
  • TERMINATE. Ends the mapping process if invalid data is found.

0 COMMENTS

We’d like to hear from you!