Ron,
I was going to suggest CEE3DMP, but I think you might be able to leverage a "trick" I use to get to the TCB to find the JOB and PROC names. You need to establish the address using the Linkage Section...no real working pointers in COBOL to use say the way PL/I has. You will need more than 256 addresses, but it might work.
Linkage Section.
* Control Block Addressability -- Internal Use
1 MVS1.
3 ptr1 Pointer Occurs 256.
Procedure Division using MVS1.
* Programming Interface -- Prefix Save Area
set address of mvs1 to null *> PSA
* Extended PSW Data on SVC Interrupt
set address of mvs1 to ptr1(136) *> TCB
------------------------------
Jon Butler
------------------------------
Original Message:
Sent: Tue July 20, 2021 04:16 AM
From: Ron Mascarenhas
Subject: COBOL Produce a formatted dump from Working-Storage areas
Hi Jon
The calling program will send 2 parameters, the start and end address of the area to dump, these are in the Working Storage of the calling program.
I know CEE3DMP can dump enclaves, but here I need a specific area.
Also the dump has to be in the normal IBM hex dump format.
I would think that IBM would have come up with a COBOL function to do this.
Ron
------------------------------
Ron Mascarenhas
Original Message:
Sent: Mon July 19, 2021 12:07 PM
From: Jon Butler
Subject: COBOL Produce a formatted dump from Working-Storage areas
Ron,
You want a COBOL program that can dump any area of core, not just the Enclave in which that program is running?
------------------------------
Jon Butler
Original Message:
Sent: Fri July 16, 2021 02:30 AM
From: Ron Mascarenhas
Subject: COBOL Produce a formatted dump from Working-Storage areas
Hi
I am converting an Assembler program which snaps user areas of storage in a DUMP format using the SNAP macro. The user sends sends the start and end address of the area to be dumped. Is there a way to do this in COBOL rather than writing the entire code to do this. I have read of low-level call routines such as CEEHDMP and CEEVDMP but these cannot be called from COBOL.
Thanks
Ron
------------------------------
Ron Mascarenhas
------------------------------