Tag Archives: gnuCOBOL

GnuCOBOL’s Report Writer Module

I am finally to my goal made at the beginning of this (lousy) year! Use embedded SQL to extract data from a database and the COBOL report writer to produce a printed report. Thus, this is the last planned post … Continue reading

Posted in c-gnuCOBOL | Tagged , | 1 Comment

COBOL Sort Module in GnuCOBOL

In this post I’m going to modify the code I wrote in My Own Embedded SQL GnuCOBOL Program. These days, it is almost certainly more efficient to allow the SQL to do the sort for you. When I was writing … Continue reading

Posted in c-gnuCOBOL | Tagged | Leave a comment

COBOL and $2,020,202.02

Over the years, in fact even in the past year or two I would see on the News some person either getting a bill or a check for some ridiculous amount of money that would be in the form $2020202020… … Continue reading

Posted in c-gnuCOBOL | Tagged | 2 Comments

My Own Embedded SQL GnuCOBOL Program

Having successfully compiled and executed the OCESQL supplied test program, I want to write my own program. My plan is to read data from the dvdrental database that I installed during the Installing PostgreSQL (for GnuCOBOL) post. The sample database … Continue reading

Posted in c-gnuCOBOL | Tagged , | 1 Comment

Embedded SQL for GnuCOBOL using ocesql

After 6 months of messing around with gnuCOBOL, I am finally to the point of trying to implement Embedded SQL. What is Embedded SQL? In all of the programming I’ve done / seen, SQL is accessed via some type of … Continue reading

Posted in c-gnuCOBOL | Tagged , | Leave a comment

COBOLWorx GnuCOBOL and Debugger

The next step in delving back into COBOL is to get a working debugger. While using DISPLAY debug lines was the only debugging I had available when I did this for a living, there should be no reason to have … Continue reading

Posted in c-gnuCOBOL | Tagged , | Leave a comment

Debugging GnuCOBOL Using WITH DEBUGGING MODE

Prior to COBOL85, COBOL had its own debug module accessed in the DECLARATIVES. This was removed in the 1985 standard. It appears gnuCOBOL still supports the older debugging, but given gdb can be used (next blog post), I won’t go … Continue reading

Posted in c-gnuCOBOL | Tagged | Leave a comment

Calling Pascal procedures to Manipulate the GnuCOBOL String Data Structure

Last episode saw the definition of a string data structure for COBOL. This episode will show how to write Pascal Code to manipulate the string data structure (cst-string). Using these examples, it would be easy enough to implement any needed … Continue reading

Posted in c-gnuCOBOL | Tagged , | Leave a comment

A String Data Structure for GnuCOBOL

When I started to learn COBOL in the late 70’s, HP BASIC was my primary language. BASIC is adept at handling strings. As I quickly found, COBOL (particularly the 1968 standard I was using), was not. I know there are … Continue reading

Posted in c-gnuCOBOL | Tagged | Leave a comment

Parameter Passing when calling Free Pascal from GnuCOBOL

In our last exciting episode of gnuCOBOL, I showed the rudiments of calling a Pascal program from COBOL. Today I will delve deeper into passing parameters. Example Code Rather than put a lot of code straight into this post, here … Continue reading

Posted in c-gnuCOBOL | Tagged , | Leave a comment