|
1 | 1 | # ebcdic-compare-tool [](https://ci.appveyor.com/project/cmoresid/ebcdic-compare-tool/branch/master) [](https://sonarqube.com/dashboard/index/ebcdic-compare-tool) |
2 | | - |
3 | | -Allows one to identify differences between two IBM EBCDIC encoded files. |
| 2 | + |
| 3 | +## Installation |
| 4 | +1. Download the [current release](https://github.com/cmoresid/ebcdic-compare-tool/releases/download/v1.0.0/ebcdic-compare-v1.0.0.zip). |
| 5 | +2. Unzip ebcdic-compare-v1.0.0.zip to a location of your choice. |
| 6 | +3. To open the application, double click the ```EbcdicCompare.exe``` icon. |
| 7 | + |
| 8 | +## Instructions |
| 9 | +This tool allows you to view and compare EBCDIC-encoded files. In order to decode |
| 10 | +any EBCDIC file, you will need an additional schema file that describes the fields found |
| 11 | +in the EBCDIC file. This additional schema file, called a "copybook file", is an |
| 12 | +XML file with a ```.fileformat``` extension that contains a description of each field |
| 13 | +contained in the EBCDIC file. These copybook schemas reflect the COBOL copybook that |
| 14 | +was used to write out the file initially. |
| 15 | + |
| 16 | +Here is an example of a copybook file: |
| 17 | +```xml |
| 18 | +<?xml version="1.0" encoding="ASCII"?> |
| 19 | +<FileFormat ConversionTable="IBM01047" dataFileImplementation="IBM i or z System" distinguishFieldSize="0" newLineSize="0" headerSize="0" > |
| 20 | + <RecordFormat cobolRecordName="TEST" distinguishFieldValue="0"> |
| 21 | + <FieldFormat Decimal="0" DependingOn="" ImpliedDecimal="false" Name="ID" Occurs="1" Picture="3(9)" Signed="false" Size="9" Type="3" Value=""/> |
| 22 | + <FieldFormat Decimal="0" DependingOn="" ImpliedDecimal="false" Name="NAME" Occurs="1" Picture="X(12)" Signed="false" Size="12" Type="X" Value=""/> |
| 23 | + <FieldFormat Decimal="0" DependingOn="" ImpliedDecimal="false" Name="VALUE" Occurs="1" Picture="9(6)" Signed="true" Size="6" Type="9" Value=""/> |
| 24 | + </RecordFormat> |
| 25 | +</FileFormat> |
| 26 | +``` |
| 27 | + |
| 28 | +#### View EBCDIC File |
| 29 | + |
| 30 | + |
| 31 | +**Note:** Instead of clicking "Browse" to locate a file, you can drag the file |
| 32 | +from Windows Explorer into the appropriate file text box. |
| 33 | + |
| 34 | +#### Compare EBCDIC File |
| 35 | + |
| 36 | + |
| 37 | +#### Associate Copybook With EBCDIC File |
| 38 | +If you find yourself constantly viewing / comparing the same EBCDIC files over |
| 39 | +and over again, you can associate a copybook with an EBCDIC file so that the |
| 40 | +next time you go to view / compare that EBCDIC file, the copybook will automatically |
| 41 | +be selected. |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | +## Contributions |
| 46 | +Contributions are welcome! Ensure that any code that you submit has at least 80% |
| 47 | +code coverage and that solution actually builds. You can run the ```GenerateUnitTestMetrics.bat``` file to obtain this information. |
| 48 | + |
| 49 | +Once you are satisfied with you changes, please open up a pull request. |
| 50 | + |
| 51 | +## Acknowledgements |
| 52 | +1. The EBCDIC decoding functionality was obtained from the [SummerBatch](https://github.com/SummerBatch/SummerBatch/blob/master/Notice.txt) |
| 53 | +project. |
0 commit comments