r/ProgrammerHumor • • 3d ago

Meme [ Removed by moderator ]

/r/ProgrammerHumor/comments/1y9d2e9/removed_by_moderator/

[removed] — view removed post

4.3k Upvotes

220 comments sorted by

View all comments

145

u/got-bent 3d ago edited 2d ago

As a COBOL programmer I have never heard this 1875 year baloney. No where in any COBOL program or in DB2 either. Maybe in IRS source code but no such default is in any IBM mainframe compiler.

Edit: I have been writing code in COBOL for 25+ years in at least 8 mainframe shops so I feel like I know what I am talking about. Dates are coded as either pic 9(4) or maybe pic x(10) so you can do it as ccyy-mm-dd. There is no shop that defaults to 1875-01-01.

72

u/Original-League-6094 3d ago edited 3d ago

Yeah. Researching this it turns out that there is no COBOL default date for blank dates, and the Social Security office acknowledged that the records DOGE highlighted were real database errors where those people lacked death certificates, though it did not confirm whether or not those people were truly receiving benefits as there might be other downstream checks that would catch it. The COBOL reference data is Jan 1, 1601.

7

u/dysprog 2d ago

I recall some video saying that these names WERE in the Master Death File, but did not have dates. They were NOT getting benefits, because they were in the file. The lack of dates was a problem for some other reason, but previous analysis was that it would cost more to correct then it leave it as is.

26

u/PipePistoleer 3d ago

Yeah I was like wtf on this one too. I've worked with COBOL, RPG and DB2 w/ IBM mainframes (usually reverse engineering for greenfield) and all that AS400 jazz. I have never seen anything like what this guy is claiming before lol. Musk is a douche, no 150 year olds are 'being paid', but this post is also a load of horse shite.

1

u/akatherder 2d ago

The weirdest thing I can conjure in the IBM world is something to do with the y2k fix. Dates could be stored as YYMMDD. When 2000 hit, they added a century digit CYYMMDD. So 12/31/1999=991231 and 12/31/2000=1001231. 1900-1999 was the 0th century and 2000-2999 is the 1st century.

They didn't have to change existing data and it still fit in 4 bytes. Even with that, I can't think of something related to 1875. You can't even represent 1875 with CYYMMDD (that I know of).

1

u/DropkickFish 2d ago

I'm not likely to go into this field of work, but would you be open to sharing how you got into this? My reverse engineering is limited pretty much to hobby boards and old windows games with ghidra and I'm not exactly a software engineer, but it honestly just seems interesting

6

u/admadguy 3d ago

It seems it's an issue in COBOL, but not of COBOL. Running theory seems that when the programs were created, they made some assumptions and could have made 1875 as a bound for birth year. This is from a time when code was optimised for use. So a missing date in that program might be defaulting to 1875. At least that's what I gleaned.

3

u/the_skies_falling 2d ago

That's not an issue in COBOL or of COBOL either. A COBOL program can handle a missing date like any other language can. Someone wrote a spec that said if a date is missing, use 1875. That person might not even have been a programmer.

1

u/admadguy 2d ago

Yeah that's what I meant, it's a problem in a cobol program (when I said problem in cobol). Could have been any other language. But more to do with how programs were written back then.

2

u/the_skies_falling 2d ago

Ah ok, i got you. I don't think it has as much to do with how programs were written back then as much as a deliberate design choice. You could have the program spit out those records as errors, but then what? It's not like they were going to dedicate a whole team to try to obtain the missing information.

1

u/admadguy 2d ago

It's not like they were going to dedicate a whole team to try to obtain the missing information.

Pretty much what I believe was the situation. It's not really even a programming problem. Similar adjustments could be made even on paper records.

4

u/ukazuyr 3d ago

Probably not related to cobol but to timestamp instead? 0 is 1970.

12

u/texcleveland 3d ago

that’s the Unix epoch

1

u/ukazuyr 2d ago

I am dumb anyway, as I didn't see it's 150 years, which is certainly not Unix timestamp anyway. 

6

u/Resident-Log 2d ago

The true stupidity of Elon Musk's assertion is that he was looking at the Social Security card record (NUMIDENT / NUMI). In the past this record was only for maintaining the Social Security cards themselves. Present day, it does serve as a central controling record for help with syncing things like name changes and death reports across the benefit (payment controlling) records.

In other words, there were NOT 150 year old getting benefits. They were people who died before SSA posted deaths to the NUMI, from a time when the deaths were only posted on the benefit payment record to stop paying benefits. Prior to Musk spreading a bunch of lies, the older NUMIs were not updated because it was determined to be too expensive to do for something that would be done for no practical reason.

3

u/Anomynous__ 3d ago

Even if it were true, why would we be paying social security benefits to people without a birthday?

1

u/akatherder 2d ago

Assuming anything of this is true or correct.. anyone without a birthday would be detected as 150 years and eligible for age-based benefits.

1

u/Anomynous__ 2d ago

I mean... that seems like a massive oversight that should have been corrected no? If we don't know your birthday we shouldn't be paying you age based benefits

3

u/djfdhigkgfIaruflg 2d ago

Yeah. It's madre up

1

u/CatOfGrey 2d ago

It sounds like a database-specific issue, not a COBOL issue.

The idea of filling in missing data with some specific 'zero' value is pretty much standard practice. Using 1875 as a standard 'missing birthdate' would mean a 65-year old in 1940, the first year that SSRI benefits were paid.