Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. Using the IntelliScript Editor
  7. XMap
  8. Libraries
  9. Schema Object
  10. Command Line Interface
  11. Scripts
  12. Parsers
  13. Script Ports
  14. Document Processors
  15. Formats
  16. Data Holders
  17. Anchors
  18. Transformers
  19. Actions
  20. Serializers
  21. Mappers
  22. Locators, Keys, and Indexing
  23. Streamers
  24. Validators, Notifications, and Failure Handling
  25. Validation Rules
  26. Custom Script Components

User Guide

User Guide

Testing a COBOL Parser

Testing a COBOL Parser

To test the COBOL Parser you need an input file that contains sample COBOL data. The data structure must conform to the data definition that you imported. The Parser transforms sample COBOL data to XML and you verify the output.
  1. In the
    Object
    view, double-click the COBOL Parser.
    The Parser appears in the script panel of the IntelliScript editor.
  2. Right-click the Parser name, and then click
    Set as Startup Component
    .
  3. Expand the IntelliScript tree, and then edit the
    example_source
    property of the Parser. Change its value from
    Text
    to
    LocalFile
    .
    The wizard configures the COBOL Parser in a way that does not require an example source document. When you finish testing, you can remove the example source. The example source has no effect on the transformation at run-time.
  4. To assign an example file, expand the
    LocalFile
    component by clicking the double right arrows
    >>
    . Double-click the
    file_name
    property and browse to the input file that contains the sample COBOL data.
  5. In the
    Data Viewer
    view
    Input
    panel, you can examine the example file. If the document does not display, right-click the Parser name in the IntelliScript, and click
    Open Example Source
    .
  6. Click
    Run
    Run Data Viewer
    to test the Parser.
  7. In the
    Data Viewer
    view
    Output
    panel, examine the Parser output.
  8. To confirm that the Parser ran without error, in the
    Data Viewer
    view
    Output
    panel, click the
    Show Events
    button. Examine the execution log in the
    Data Processor Events
    view.

0 COMMENTS

We’d like to hear from you!