Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [cobol]

COBOL (COmmon Business Oriented Language) was the product of a US Department of Defense initiative to develop a standard and portable programming language for business applications.

Filter by
Sorted by
Tagged with
10 votes
1 answer
3k views

COBOL Database Program

For a school project I've created a database program in COBOL and now that I'm finished, I have to write a report on the project. As one aspect of the report, we have to discuss whether the product (...
drake14w's user avatar
  • 103
2 votes
1 answer
1k views

Basic COBOL Calculator

Small Calculator I made for myself while trying to learn COBOL for fun. Compiler used is GNUCOBOL. Just asks for input and will either do multiplication, subtraction, or addition. Completes run after ...
1ctinus's user avatar
  • 35
4 votes
1 answer
4k views

COBOL layout parser in Python

I don't know anything about parsers but I had to write something to read COBOL for a work project. What are some things that I could improve with my Python coding and parser design? Note: This isn't ...
Manderton's user avatar
7 votes
1 answer
125 views

Database for storing exam results

I've been getting into COBOL lately, and I find it a very peculiar and interesting language that can still hold up to this day. The reason I'm uploading this is mostly to get some feedback in code ...
David Quintero Granadillo's user avatar
6 votes
2 answers
175 views

Fizzbuzz some Fibonacci numbers

I was teaching some new people in office a bit of COBOL, so I threw together this exercise where they had to write a program that would generate the first 10 numbers of a Fibonacci suite and then test ...
SaggingRufus's user avatar
14 votes
3 answers
2k views

Circumference and Area of a Circle in COBOL

I recently started Learning COBOL from Lynda and this is my code for the first challenge . The Objective is that the user will provide the radius and we have to calculate the Circumference and the ...
Aswin Mohan's user avatar
9 votes
5 answers
2k views

Fizzbuzz in COBOL, Verbose dinosaur style

I was long a professional in COBOL, but noone ever dared comment my style. As the FizzBuzz seems fashion here, I made one. Verbose, of course, we're speaking about COBOL. I know I could have made in ...
gazzz0x2z's user avatar
  • 243
10 votes
2 answers
507 views

Hangman in COBOL

Whenever I learn a new (or an old :)) programming language, I implement Hangman in it. This time it's with COBOL. ...
user avatar
14 votes
2 answers
29k views

Trim Functions in COBOL

A coworker, from a past programming life, called me up last week and asked about Trim Functions in COBOL. I sent her these PEFORMed "functions", which I've had lying about and without any professional ...
Kennah's user avatar
  • 255
22 votes
4 answers
624 views

Current and estimated arrival times

This is my first COBOL program, and I'd like to get a critique as I am unfamiliar with best practices. Particularly, I'd like to know how to get the input and output to be more elegant and less ...
Ape-inago's user avatar
  • 321