Skip to content

Commit d74dc07

Browse files
author
Connor Moreside
committed
Fixed config file to a more reasonable default. Updated README.md with instructions.
1 parent dc12ce5 commit d74dc07

File tree

7 files changed

+57
-3
lines changed

7 files changed

+57
-3
lines changed

CodeMovement.EbcdicCompare.App/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<add name="CopybookDb" connectionString="Data Source=.\Copybook.db;Version=3" providerName="System.Data.SQLite" />
1414
</connectionStrings>
1515
<appSettings>
16-
<add key="CopybookLocation" value="C:\Users\c.moreside\Db\Copybooks" />
16+
<add key="CopybookLocation" value=".\Copybooks" />
1717
<add key="ExternalEditor" value="C:\Program Files (x86)\Textplorer\TEP.exe" />
1818
</appSettings>
1919
</configuration>

CodeMovement.EbcdicCompare.App/CodeMovement.EbcdicCompare.App.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@
152152
<None Include="Copybook.db">
153153
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
154154
</None>
155+
<None Include="Copybooks\.notempty">
156+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
157+
</None>
155158
<None Include="packages.config" />
156159
<None Include="Properties\Settings.settings">
157160
<Generator>SettingsSingleFileGenerator</Generator>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


README.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
11
# ebcdic-compare-tool [![Build status](https://ci.appveyor.com/api/projects/status/snsicw8e2v06x3uh/branch/master?svg=true)](https://ci.appveyor.com/project/cmoresid/ebcdic-compare-tool/branch/master) [![Quality Gate](https://sonarqube.com/api/badges/gate?key=ebcdic-compare-tool)](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+
![How to view an EBCDIC file](screenshots/view_ebcdic_file.gif)
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+
![How to compare two EBCDIC files](screenshots/compare_ebcdic_files.gif)
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+
![How to associate copybook with EBCDIC file](screenshots/manage_copybooks.gif)
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.
1020 KB
Loading

screenshots/manage_copybooks.gif

980 KB
Loading

screenshots/view_ebcdic_file.gif

656 KB
Loading

0 commit comments

Comments
 (0)