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

GetCurrentFileName Examples

GetCurrentFileName Examples

The following examples demonstrate how to use the GetCurrentFileName function to return the data file or files associated with a data map.

Example 1

If a data map is associated with the demo3.dat data file that is located in the
c:/Informatica/PowerExchange/examples
directory, the GetCurrentFileName function returns the following value for all records in the data map:
c:/Informatica/PowerExchange/examples/demo3.dat

Example 2

If a data map is associated with a file-list file that lists multiple data files, the GetCurrentFileName function returns the name of the data file from which each record was read. For example, if a data map is associated with a file-list file that lists the following data files that each contain 10 records:
c:/Informatica/PowerExchange/examples/datafile1.dat c:/Informatica/PowerExchange/examples/datafile2.dat
The GetCurrentFileName function returns the following value for records 1 through 10:
c:/Informatica/PowerExchange/examples/datafile1.dat
The GetCurrentFileName function returns the following value for records 11 through 20:
c:/Informatica/PowerExchange/examples/datafile2.dat

Example 3

If the file-list file lists the following data files that use a relative path and each data file contains 10 records:
../datafile1.dat ../datafile2.dat
The GetCurrentFileName function returns the following value for records 1 through 10:
../datafile1.dat
The GetCurrentFileName function returns the following value for records 11 through 20:
../datafile2.dat

0 COMMENTS

We’d like to hear from you!