Skip to content

a Java application that analyzes fixed-length COBOL data and converts it based on a calculation mask.

Notifications You must be signed in to change notification settings

cuajarsaki/calc-maskconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

English | 日本語

Calculation Mask Conversion Program

Overview

This program is a Java application that analyzes fixed-length COBOL data and converts it based on a calculation mask. It parses text data, generates formulas from numeric and symbolic combinations, and converts them into output formats such as CSV.

Environment

  • Java 11 or later
  • Windows / Linux / MacOS

How to Run

  1. Navigate to the directory

    cd /path/to/src/app

    ※ Move to the directory where the program is located.

  2. Compile Java files

    javac Main.java CPMData.java CPMEntry.java
  3. Move to the execution directory

    cd ..

    ※ Move to the directory containing the input data (input.txt).

  4. Run the program

    java csvoutput.Main

Customizable Sections

  • Change input file
    try (BufferedReader br = new BufferedReader(new FileReader("input.txt")))
  • Change output file
    try (BufferedWriter writer = new BufferedWriter(new FileWriter("output.csv")))
  • Modify output items
    • You can customize the data written to output.csv in Main.java (lines 134-144).

Notes

  • The input data (input.txt) must follow a fixed-length format.
  • You may need to modify the paths depending on the execution environment.
  • Since the output depends on the input data, please perform error checks and validate the data format in advance.

Creation Date

  • Last Updated: 2024/06/25

About

a Java application that analyzes fixed-length COBOL data and converts it based on a calculation mask.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages