Passing parameters to an MVS Cobol program - M210

  Рет қаралды 1,870

moshix

moshix

Күн бұрын

Пікірлер: 23
@Stosszahlansatz
@Stosszahlansatz 2 жыл бұрын
I could not resist looking at how to pass a parameter to a PL/I program. To paraphrase Screen Rant, it is super easy, barely an inconvenience! The parameter is a varying string of length at most 100 which you can map to a structure or, even better, decode with GET STRING DATA, LIST or EDIT. Damn I love PL/I !!
@educate9946
@educate9946 2 жыл бұрын
It's fascinating to see you watch this. It's so much different to the Linux-style development I do everyday. Keep up the great work!
@moshixmainframechannel
@moshixmainframechannel 2 жыл бұрын
Thanks !
@grappydingus
@grappydingus 2 жыл бұрын
If you want a more traditional way to develop on the mainframe check this video out: kzbin.info/www/bejne/fYeQlYp3aqufm8U
@MacBaerFFM
@MacBaerFFM 2 жыл бұрын
As always, very useful and fun to watch. Thank you, Moshix!
@moshixmainframechannel
@moshixmainframechannel 2 жыл бұрын
Thank you Sir
@higiniofuentes2551
@higiniofuentes2551 2 жыл бұрын
Thank you for this very useful video!
@lavaq9593
@lavaq9593 2 жыл бұрын
Thanks Moshix! Linkage works fine; however, it would be nice to make a video on getting the Rob Prins updated DASDs to work. It appears more complicated than simply substituting the DASDs as JES2 won't startup and the shell freezes.
@moshixmainframechannel
@moshixmainframechannel 2 жыл бұрын
Did you make make the conf change for the new JES2 dasd as suggested in the instructions on his website ?
@lavaq9593
@lavaq9593 2 жыл бұрын
Thanks again! Yeah, I'm getting really old! LOL! I just missed it!
@Johan-ez5wo
@Johan-ez5wo 2 жыл бұрын
@@lavaq9593 Euh, it needs a /r 00,y I believe. After that it will ipl ok again.
@lavaq9593
@lavaq9593 2 жыл бұрын
Thanks@@Johan-ez5wo Moshix reply about what I missed on the config spool param fixed my oversight.
@cact25
@cact25 2 жыл бұрын
You are not really passing the linkage section to the compiler. You are telling the compiler to generate the instructions for a pgm to be able to send/receive data via the linkage section. Jim K
@furzkram
@furzkram Жыл бұрын
I never saw someone working like this, mixing JCL and the program source in the same member. Why don't you keep your jobs and your program sources in separate libraries, so that COBOL sources would have proper automatic line numbering on? They way you do it is really weird, especially when you have an ISPF like editor at hand.
@moshixmainframechannel
@moshixmainframechannel Жыл бұрын
Because I don’t run production
@furzkram
@furzkram Жыл бұрын
@@moshixmainframechannel neither do I - but I'd do things the same way for my personal use, because it's way more elegant, less prone to errors, and simply makes more sense to me. The same way as I won't drive on the wrong side of the road just because I'm driving my private car and not the company truck. But that's only me ;-)
@moshixmainframechannel
@moshixmainframechannel Жыл бұрын
You’re right
@SINC0MENTARI0S
@SINC0MENTARI0S 9 ай бұрын
I find moshix's approach more didactic and self-contained than what you suggest. Since usually (but not always, as this video reflects with PARM.GO) names in JCL and the embedded code must match, switching between members in order to make sense of what's going on would be a hassle.
@robertlaw8510
@robertlaw8510 2 жыл бұрын
On my TK4- COBOL I don't have to put line numbers on the code. Do you have to do that if you are passing parms?
@Johan-ez5wo
@Johan-ez5wo 2 жыл бұрын
You see them i think scrolling right. Auto added.
@EdouardTavinor
@EdouardTavinor 2 жыл бұрын
Strangely it looks like gnucobol doesn't have a method for reading command line parameters :/ in any case the method you use in this video doesn't seem to work.
@moshixmainframechannel
@moshixmainframechannel 2 жыл бұрын
Linkage for gnucobol is completely different. That would certainly not work for gnucobol
@DeanHorak
@DeanHorak 2 жыл бұрын
To get command line arguments in gnucobol, use the ACCEPT verb. ACCEPT command-line-string FROM COMMAND-LINE. There are quite a few differences between IBM COBOL and ANSI COBOL, which gnuCobol implements.
50 Year Old Stanford Pascal for MVS Updated to 2023 - M229
41:23
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 114 М.
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 97 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 7 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 5 МЛН
Freshly Genned MVS/CommunityEdition - M233
26:09
moshix
Рет қаралды 2,8 М.
How to use CICS | COBOL
59:59
emahar
Рет қаралды 10 М.
Zero to mainframe Cobol in 5 minutes  - M223
15:36
moshix
Рет қаралды 9 М.
History of IBM mainframe operating systems - M243
58:34
moshix
Рет қаралды 24 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 895 М.
MVS gets a UNIX file system and a powerful web server - M248
47:39
BASIC in 2024
2:09:01
Tsoding Daily
Рет қаралды 25 М.
Creator of git, Linus Torvalds Presents the Fundamentals of git
1:10:15
Developers Alliance
Рет қаралды 95 М.
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН