Hello world in the IBM PL/I language on the mainframe - M125

preview_player
Показать описание

and here is the program with the JCL:

//MOSHIXA JOB (PLI),'HELLO ',MSGCLASS=H,REGION=100M,
// CLASS=A,TIME=1440,MSGLEVEL=(1,1),NOTIFY=MOSHIX
//PLICLG EXEC IBMZCPLG,LNGPRFX=IEL420,
// PARM='OBJECT,OPTIONS,SOURCE,XREF,NEST,OPTIMIZE=02,REF,LIST'
//SYSPRINT DD SYSOUT=*
//PLI.SYSIN DD *
HELLO: PROCEDURE OPTIONS(MAIN);
PUT LIST('HELLO,WORLD');
END HELLO;
/*
//
Рекомендации по теме
Комментарии
Автор

Pl/I is one of the best programming languages ever made. There is a pre-processor feature that is amazing. I programmed PL/I for years.

svenvandevelde
Автор

I used to program in PL/1 (and also C - on a mainframe!) but not for more than 20 years. This was a blast from the past! I liked PL/1 but not the mainframe environment. Seeing JCL again made me shiver...

markhodgson
Автор

Feel free to do more PL/I videos, I I find this language fascinating!

grappydingus
Автор

I worked with PL/1 for 15 years - it was the most powerful language I ever came across -especially when linked up with JCL, VSAM, IMS, and DB2

frogspawn
Автор

I'm here because this language was mentioned in my CS course. Its fascinating to learn how older langauges world

Nominal_GDP
Автор

PL/I is an excellent language, at least two major Greek Banks continue using it -as of 2024-, and its a lot better than COBOL by design.

npkonstan
Автор

PL/1 was a favorite of mine, too. I haven't used it in about 50 years, however. My other favorites have been IBM assembler, APL, and now Python.

With PL/1 I saw many problems caused by a mismatch in converting the contents of variables of different types. Seems like my idea of what I was asking never matched what the compiler assumed. I adapted by making it a rule for myself to always specify the conversion I wanted explicitly.

Why does the cataloged procedure end in CPLG? I expected simply CLG.

Thanks for posting this.

JohnSGruber
Автор

Excelente trabajo, mi historia en Montevideo en los '75 con S370 y luego con S390 me trae muchos recuerdos felices, gracias por tu canal !!!

charruatrico
Автор

PL/1 was a lot better than COBOL. I particularly liked GOTO - the purists hated it but it got you where you wanted to get to.

simonscummer
Автор

What nostalgia! In 1977 as a highschool freshman I won the math and computers category of the oklahoma state science fair with my Pl/1 program to compute Punnett squares. I so wish I still had the source code! I didn't have to deal with JCL (though I did later in my pro days). Our mainframe access was interactive-terminal-facility on a 2741, 30CPS teleprinter.

My favorite program to write in any environment is always the "hello world"! Thanks for the series!

gullyfoyle-uffr
Автор

You did again! Very good video about PL/I!
I had and error in statement line 2:
Here is the solution:
//PLI JOB (PLI), 'HELLO ', MSGCLASS=H, REGION=100M,
// CLASS=A, TIME=1440, MSGLEVEL=(1, 1), NOTIFY=&SYSUID
//PLICLG EXEC IBMZCPLG,
// PARM='OBJECT, OPTIONS, SOURCE, XREF, NEST, OPTIMIZE=02, REF, LIST'
...
I had to eliminate: LNGPRFX=IEL420, because is not found in a Z15
Thank you!

higiniofuentes
Автор

... goddammit, t'was still real IT back in the days ... currently I'm in touch with PL/1 for a Mainframe-To-Java migration project, kind of a time capsule

helmutkirchweger
Автор

Thanks! PL/1 is the best compiler for os/mvs/zos. Only assembler is better!

semuhphor
Автор

What I want to know is who is going to maintain and convert all the COBOL JCL running today.

GotoHere
Автор

Thanks for the video. Do you have or do you know where can I find PL1 tutorial? It's really hard to find any material on the internet, many COBOL but no PL1...

feiyechen
Автор

By the way, how does the Yiddish course work? I already know Ladino from my grandparents, so learning Yiddish would be awesome!

joseignaciocastrovonrodrig
Автор

Hello Moshix, can TK4- PL/1 directly read & write VSAM datasets? I know you discussed the fact that the COBOL version doesn't directly read or write VSAM data without Jay Moseley's adaptation.

lavaq
Автор

Hello, Mr. Moshix!
Thank you for sharing this with the World!
How do I sign the petition?

joseignaciocastrovonrodrig
Автор

Sir, help needed, I get a JCL error that the IBMZCPLG procedure was not found .Keeping this in mind that I was not using Hercules / TK 4 but my clients development environment with the same JCL written in a PS file .

siddharthasekhar