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. XMap
  7. Libraries
  8. Schema Object
  9. Command Line Interface
  10. Scripts
  11. Parsers
  12. Script Ports
  13. Document Processors
  14. Formats
  15. Data Holders
  16. Anchors
  17. Transformers
  18. Actions
  19. Serializers
  20. Mappers
  21. Locators, Keys, and Indexing
  22. Streamers
  23. Validators, Notifications, and Failure Handling
  24. Validation Rules
  25. Custom Script Components

Data Transformation User Guide

Data Transformation 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.


Updated September 26, 2018