Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COBFD was a very usefull program. Perhaps we can create one ourself in GNU COBOL? 😁

Status
Not open for further replies.

Crox

Programmer
Apr 3, 2000
893
NL
Hi Team,

I am missing the good old COBFD program that worked fine, calculating offsets of record definitions in the past and is still working using DOS BOX. But it would be nice if we would have a program of our own, working in GNU COBOL. Just wondering if we have to start from scratch or that we can re-use something to start with.

Best regards,

Crox
 
I have something in REXX that does this for PL/I, but wouldn't it be just as simple to run it through the compiler and look at what the compiler thinks it looks like?

Frank Clarke
--America's source for adverse opinions since 1943.
 
I don't have a rexx compiler. I am looking for a COBOL solution with COBOL source so that anyone in this team can adjust it to their own taste.
 
You have a COBOL compiler, don't you? Else, what do you intend to do with COBOL source code?

Frank Clarke
--America's source for adverse opinions since 1943.
 
Looks nice. Thanks for the link. I gave it a big copybook with redefines, but it did only 5 lines and wanted a registration. It is commercial. They ask for money. The old cobfd works ok, but needs a dox box nowadays. I will build my own one within some time and will probably share it for free like we had here in the past.

When the program is there, generating XML or JSON or anything else is probably only a matter of time.

But it is very nice when our team here is working together. 😁
 
In 2005 I wrote for IBM iSeries a python program which parses macro generated part of working-storage from cobol source and generates an PCML file - which is type of XML from IBM - see:
The program only recognizes data types that we are using in our programs, i.e. character, zoned, and packed. The program runs on all platforms I'm using: IBM i, Linux, Windows.
 
I remember now I saw his name before, Michael Mattias. Fun that he wrote this in BASIC. 😂
 
But when the original program COBFD was written in BASIC, then there is not a reason to write such thing in COBOL :)
 
you can write many solutions in any language. You can know a little of many languages. You can know a lot of one or a few, being a specialist, making libraries, source parts that can help you building a lot and smart things. In COBOL you can do a lot. That is why this language became very powerful and a lot of companies are using it. I prefer COBOL because once I have a good working program, it becomes part of my library, contributing to my abilities to achieve much more. But nothing stops you to use lots of other languages. Many years ago, when we started using small home computer with a z80a processor in it, we build programs using machine language. It was extremely fast. It can still be done with the newer processors. Bur I like COBOL. 😂 A lot.
 
I installed DOSBOX to see how COBFD works.
It works really nicely - recognizes all data types I can think off: alphanumeric, numeric with or without sign, COMP-3, condition variables, OCCURS tables.

COBFD user interface:
2021-12-22_16h50_11_fluql5.png


COBFD output:
2021-12-22_16h51_11_gsn3k4.png


But who knows, without seeing the source, how much work "to upsize it to 32-bits" can take. In the optimistic case it could only mean the new compilation with the current PowerBasic compiler, but I don't believe in it much, because if it were that easy the author would have done it himself. Much more, I think that it could take a lot of work.
 
yes Mikrom, it sure is a nice program. I can use a COBOL implementation for my own, new environment that will work with GNU COBOL. I hoped that someone had something usable. But if not, after a few weeks, I will make a similar program myself. If possible, I will publish it here as an executable or at any other place. We will see. 😁
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top