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.
In the
Object
view, double-click the COBOL Parser.
The Parser appears in the script panel of the IntelliScript editor.
Right-click the Parser name, and then click
Set as Startup Component
.
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.
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.
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
.
Click
Run
Run Data Viewer
to test the Parser.
In the
Data Viewer
view
Output
panel, examine the Parser output.
To confirm that the Parser ran without error, in the