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

Using the GetDatabaseKey Function to Get the RRN or RBA in VSAM Data Set Records

Using the GetDatabaseKey Function to Get the RRN or RBA in VSAM Data Set Records

Use the GetDatabaseKey function in an expression to get the relative record number (RRN) or relative byte address (RBA) for VSAM data set records.
If you use offload processing, you cannot use the GetDatabaseKey function in an expression.
Define expressions in the record definition in the data map. Add user-defined fields to the record to contain the results of the expression.
  1. Open the data map and the record.
  2. On the
    Expr(
    n
    )
    tab, right-click in the window and click
    Add Field at End
    .
  3. In the
    Name
    column, enter a name.
  4. In the
    Type
    column, enter
    BIN
    .
  5. In the
    Length
    column, enter
    8
    .
  6. In the
    Expression
    column, enter
    GetDatabasekey()
    .
    If the expression field is valid, a green check mark icon appears. Otherwise, a red cross icon and a message appear.
  7. Open the table.
  8. In the
    Table
    window, right-click the table name and click
    Add Column at End
    .
  9. In the
    Base Field
    list, select the new column.
  10. In the
    Name
    field, enter a name for the column.
  11. Click
    OK
    .
  12. Click
    File
    Send to Remote Node
    to send the data map to the z/OS system where the VSAM data set resides.

0 COMMENTS

We’d like to hear from you!