Announcement

Collapse
No announcement yet.

Convert COBOL Data to IEEE Format

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Convert COBOL Data to IEEE Format

    In what is my first contribution to the Source Code Forum in about five years, I have provided:

    Convert COBOL-created Data to IEEE

    This library converts COBOL-Created data - not directly usable by any programming language except COBOL (afaik) - to IEEE formats, usable by all common programming languages (afaik).

    Originally Created in 1999 and last updated in 2002 UNTIL NOW, the ZIP archive includes ( PB/Win 10) source and executable for COB2IEEE.DLL, Source )PB/CC 6) for a sample conversion program, my traditionally deep documentation, and a test file.

    Potential users of the library should read the cobdata.rtf document first (this document also available online at http://talsystems.com/tsihome_html/downloads/C2IEEE.htm), as it explains certain terms used in the library documentation proper (COB2IEEE_DOC.TXT).

    MCM
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    #2
    Interesting ...
    Lines 82 and 87 in cobconv4.bas uses input sample files not included in the zip.
    Also, in line 87-88 and 60 there are references to an absolute path in your PC (D:\Software_Development\COBOL\ etc).

    Running cobconv4.exe shows a message box "Load of String for Version Failed" (before creation of output file); it's generated by the statement in line 1370 of cob2ieee.bas.

    Comment


      #3
      I never got the message box "Load of String for Version Failed" when testing... but I should have. So I am trying to fix it up and make sure I am compiling apples for apples here. I may have compiled the wrong version of source code. I have a big mess here. Haven't done this is a long time and kind of forgot how to manage what I'm doing.

      Fortunately, you can just remove that "LoadString()" and associated message as it does not affect the functions in the library. (Do nothing at all on DLL_PROCESS_ATTACH except return 1 (one)).
      Last edited by Michael Mattias; 25 May 2023, 11:42 PM.
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


        #4
        5/27/23

        Found problem with Error message box and fixed. (Was using wrong executable to test).

        Changes to ZIP file, attached to Post Number 2 ==->https://forum.powerbasic.com/forum/u...822#post823822
        • Updated Library (DLL) to version 2.0.1 No longer uses "LoadString()" call to get Parm.Version (And error message box when call fails)
        • Updated Conversion Sample Program to version 2.0.1. Tweaked to show library version and where loaded from. Dropped HardCoded path from current testfile
        • Added executable COBCONV4 to archive
        • Added Conversion Output report with correct answers to archive.

        MCM
        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment


          #5
          Thank you!

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎