¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Where to find the output of a COBOL program?


 

Hi!

This isnt?the OS/VS cobol compiler! We wish!!!!

This is the compiler from MVT. (Think '68 Cobol)

Joe

On Mon, Aug 22, 2022 at 12:33 PM Ganino, James (PERATON) via <James.Ganino=[email protected]> wrote:

Perhaps I am out in left field here, but IIRC (and I did check the IBM OS/VS COBOL Compiler and Library Programmer's Guide, SC28-6483, before embarrassing myself here) compiler listings are sent to SYSPRINT and object code is sent to SYSPUNCH.? Also, the options I saw in the listing excerpt showed "NODECK", which suppresses the object code generation.? It's been about 30 years since I've compiled any code on a mainframe, and back then, my forte was PL/I, so I may be off-base, but I thought maybe this might help.


 

Mmmm, no.? I respectfully disagree.
The 'NODECK' option does not suppress object code generation. Here's what GC28-6380-3 IBM System/360 Operating System COBOL (F) Programmer's Guide says (emphasis added):
"DECK/NODECK indicates whether or not the object module is to be punched. If the DECK option is used, a SYSPUNCH DD statement must be specified."
The object code generated by the compiler goes to the dataset defined by the SYSLIN DD card in the compile/link edit or the compile and go JCL. The 'DECK/NODECK' option has no bearing on that. Just like PL/I (F) from the same era. See GC28-6594-7
IBM System/360 Operating System PL/I (F) Programmer's Guide.
The manuals I quoted can be found on the bitsavers.org site.
John