Table of Contents

Search

  1. Preface
  2. Libraries for Industry Standards
  3. Using Libraries
  4. Descriptions of the Libraries
  5. Generate Library Objects

Libraries Guide

Libraries 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!