News for hackers. Stuff that matters.
Re:Ask HN: How do I learn real-world COBOL? by mikece on Tuesday June 28, 2022 @11:14AM (#31908794)
Exactly! You will never learn anything about JCL from a COBOL textbook. Heck, I'm not sure a JCL textbook (if they exist?) would be of much help either. When I went to college I was in the last group of students whose client/server classes were all mainframe based. We had a class where JCL was taught and a valid answer for "Why is JCL syntax so irregular?" on the exams was: "Because it was invented in Berkeley in the 1960s and everyone was on drugs."
Re:Ask HN: How do I learn real-world COBOL? by p_l on Tuesday June 28, 2022 @02:53PM (#31911560)
The truth about JCL is actually worse than "they were on drugs".

In fact, they gave themselves a goal of avoiding making it into a programming language, except unfortunately real life requirements meant it had to gather such features quickly. Other infamous components came because of need to specify in line all sorts of metadata for I/O, because the OS might not have a place to store it - this caused the infamous DD statement that /bin/dd is a joking refence to.

In retrospective, one of the leads on JCL mentioned that they should have instead gone straight for a full programming language, that this way it would have better design.

Re:Ask HN: How do I learn real-world COBOL? by ElectricalUnion on Tuesday June 28, 2022 @02:18PM (#31911123)
There was a ancient saying that new JCL is never written, just copied and modified until it works, because no one understands the entirely of it.
Re:Ask HN: How do I learn real-world COBOL? by schlauerfox on Tuesday June 28, 2022 @12:07PM (#31909500)
I took an IBM mainframe intro course on Coursera and it was pretty good. I learned how to use the editor and menu thing. It was very out of my windows/linux/PC experience.
Re:Ask HN: How do I learn real-world COBOL? by ElectricalUnion on Tuesday June 28, 2022 @02:23PM (#31911169)
> the editor

ed /s

Well, you can invoke AIX and run ed, it works, but yes, ISPF, running in a 3270 terminal, is pretty weird. That being said, it's pretty much very interactive even under horrible latency because it sends the entire screen every repaint.

3270 is, in a retro way, what the web 1.0 would look like if we were limited to monospaced characters.