开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Is there a Hello World COBOL example for DOS/VS?


 

Wow... This gets even more interesting! ... So, those XXInit jobs are worth taking a look at and dig a little...I feel I may learn some fundamentals there

I Guess It would be therefore reasonsable, upon success on the patching, to keep a copy of the resulting, patched, dos/vs 3350s and replace the ones shipped with vm/ce

Thanks!

El sáb., 17 jun. 2023 19:05, René Ferland <ferland.rene@...> escribió:
Hello Alejandro,
?
There is nothing wrong with the JCL, the problem comes from the compiler. I forgot about it when I posted my demo programs. The COBOL F compiler of DOS/VS is actually the one of DOS/360 and it expects the working files to be stored on a 2314 disk, while they are on a 3350 on DOS/VS. Moreover, the compiler uses SYS004 for a work file while it is logically assigned to the card reader by the XXINITBG job (after POWER is started), hence the C102I message you get.
?
For the programs to compile/run, you need to modify XXINITBG and patch the COBOL compiler so it will accept work files on a 3350. Here's what you can do:
?
1. Delete the current XXINIT jobs from the reader queue:
?
? ?PDELETE RDR,*XX
?
2. Submit the attached job 1-XXINIT.jcl to replace them.
?
3. Release the new XXINIT jobs:
?
? ?PRELEASE RDR,*XX
?
4. Submit the attached job 2-COBZAP.jcl to patch the compiler.
?
After that, you should be able to compile FCOBOL programs in BG.
?
Cheers,
?
Rene FERLAND, Montreal
?
P.S. -- The COBZAP job was written by Bill Carlborg, not me.

Join [email protected] to automatically receive all group messages.