Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

appmanga

(1,434 posts)
3. I just went to Claude and gave it this prompt...
Sat Feb 14, 2026, 09:55 PM
Saturday

A COBOL program that accepts input from a DB2 database called "Name" and another called "Address". "Name" is the parent table and has columns of "Person Number", "First Name", "Last Name", and "Title". "Address" is a child table with columns called "Person Number", "Street Address", "City", "State", "ZIP".

It produced a reasonably decent program and very good SQL. But here's an issue (or maybe it isn't anymore, I haven't actively written COBOL in about 20 years, but I have a feeling it would still be):

01 WS-RECORD-COUNT PIC 9(5) COMP-3 VALUE ZERO.
01 WS-PAGE-COUNT PIC 9(4) COMP-3 VALUE ZERO.
01 WS-LINE-COUNT PIC 9(3) COMP-3 VALUE ZERO.

A good, experienced COBOL programmer will recognize (what at least used to be) the two major issues with this code.

Recommendations

1 members have recommended this reply (displayed in chronological order):

Latest Discussions»General Discussion»Claude Just Killed Softwa...»Reply #3