Hi
I am converting an Assembler program to Cobol.
The program dumps areas of storage in Dump format.
I can't find a way to do this easily in COBOL. Is there any
COBOL or LE module I can call to do this.
Thanks
Ron
COBOL program to display a hex dump
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: COBOL program to display a hex dump
Please, clarify, what this sentence stands for:

After the process is re-designed in COBOL, there are no such areas from Assembler required “to dump them in Dump format”. Or this is your plan - to write an Assembler simulator using COBOL???
Additional questions:
1) what do you know about Assembler?
2) what do you know about COBOL?
The program dumps areas of storage in Dump format.



After the process is re-designed in COBOL, there are no such areas from Assembler required “to dump them in Dump format”. Or this is your plan - to write an Assembler simulator using COBOL???
Additional questions:
1) what do you know about Assembler?
2) what do you know about COBOL?
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Posts: 18
- Joined: Mon Nov 03, 2008 1:38 am
- Skillset: z/OS, CICS. DB2, Linux
- Referer: Internet
Re: COBOL program to display a hex dump
The assembler program was just a subroutine, called by COBOL programs, passing 2 parameters, start-area-address and end- area-address. The addresses
are from the calling pgm working- storage. The assembler program produces a hex dump of the area, just like
standard IBM dumps.
I am tasked with replacing this routine by a COBOL program.
To answer your questions
1. I am an Assembler programmer for many years
2. I am a COBOL programmer for many years
Ron
are from the calling pgm working- storage. The assembler program produces a hex dump of the area, just like
standard IBM dumps.
I am tasked with replacing this routine by a COBOL program.
To answer your questions
1. I am an Assembler programmer for many years
2. I am a COBOL programmer for many years
Ron
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: COBOL program to display a hex dump
This explanation makes a huge difference compared to the original question.
I guess there is no a ready-to-use tool to print from COBOL code the storage areas in dump format.
I believe it can be done, using address-manipulation tricks in COBOL, and hex-conversion to print storage.
I’m pretty sure the final result of this task doesn’t worth the expected amount of efforts to reach this goal. I, personally, would not even start doing so. At least - not trying to follow the Assembler’s Dump format (or SNAP format?).
I guess there is no a ready-to-use tool to print from COBOL code the storage areas in dump format.
I believe it can be done, using address-manipulation tricks in COBOL, and hex-conversion to print storage.
I’m pretty sure the final result of this task doesn’t worth the expected amount of efforts to reach this goal. I, personally, would not even start doing so. At least - not trying to follow the Assembler’s Dump format (or SNAP format?).
Javas and Pythons come and go, but JCL and SORT stay forever.
- prino
- Posts: 641
- Joined: Wed Mar 11, 2009 12:22 am
- Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
- Referer: Google
- Location: Vilnius, Lithuania
- Contact:
Re: COBOL program to display a hex dump
tsdjim wrote:I am tasked with replacing this routine by a COBOL program.
Care to explain why some PHB found this necessary?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
robert.ah.prins @ the.17+Gb.Google thingy
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: COBOL program to display a hex dump
prino wrote:tsdjim wrote:I am tasked with replacing this routine by a COBOL program.
Care to explain why some PHB found this necessary?
If only I gave the true and honest answer to this question, I’m afraid my usedID would be banned forever…

Last edited by sergeyken on Sat Jul 17, 2021 12:39 am, edited 1 time in total.
Javas and Pythons come and go, but JCL and SORT stay forever.
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: COBOL program to display a hex dump
Del…
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Calling Java program on UNIX/USS from a COBOL CICS program?
by zbius » Tue Nov 05, 2024 2:37 pm » in IBM Cobol - 2
- 2594
-
by zbius
View the latest post
Wed Nov 06, 2024 6:02 pm
-
-
- 2
- 3162
-
by enrico-sorichetti
View the latest post
Mon Oct 30, 2023 6:25 pm
-
- 1
- 2430
-
by engh
View the latest post
Fri Jul 08, 2022 7:31 pm
-
-
Find the version of a cobol program through its load module
by vinigim » Fri Oct 30, 2020 3:16 am » in IBM Cobol - 5
- 5139
-
by chaat
View the latest post
Sat Nov 07, 2020 8:40 am
-
-
- 0
- 1415
-
by lee_merrill
View the latest post
Fri Feb 24, 2023 2:30 am