On 8/10/2022 2:20 PM, kevin hutchison wrote:
On Wednesday, August 10, 2022 at 12:26:52 PM UTC-5, [email protected] wrote:
In article <[email protected]>,
kevin hutchison <[email protected]> wrote:
Hi all,
I'm trying to evaluate whether I can debug a batch EBCDIC program on
windows using WinCobol.
It's best to start with examining your skills and experiences. Where else
have you tried to 'debug a batch EBCDIC program'?
DD
DD,
I've been in debuggers on mainframes, and in microfocus or windows (fujitsu) environments. There is no debugger at my current job, and I'm being asked questions about complex, undocumented 30 year COBOL. Specifically, to pull the business use cases out
of 25k lines of code (originally assembler).
I really need a debugger to get a better handle on this stuff. I've used python and c# debuggers on windows, which is where i'm trying to execute code I'm looking at.
thanks for all your help,
Kevin Hutchison
Out of curiosity, what do you mean by an "EBCDIC program"?
If it means that the program source was originally stored on a mainframe
with EBCDIC encoding, and if the source can be converted to ASCII
without losing any information, then the original encoding might not matter.
If the program reads and writes text files that can be represented in
EBCDIC or ASCII without changing anything but the encoding, then life
gets easier. If some of the data is stored as packed decimal, then an
EBCDIC to ASCII conversion will screw things up, and your life just got
more difficult. If I recall correctly, the native EBCDIC sort order puts letters before numbers, while ASCII does the opposite, so that might be
a problem.
I believe GNU COBOL can be installed on Windows:
https://gnucobol.sourceforge.io/
Since GNU COBOL translates COBOL to C and then invokes the GNU C
compiler to do the final compilation, it's not clear how much a debugger
would help you, although I'm ready to stand corrected. Like Doc said,
there's nothing wrong with liberal usage of the DISPLAY statement.
There's also a COBOL front end for GCC, but that's a work in progress:
https://gcc.gnu.org/pipermail/gcc/2022-March/238408.html
(If you're like me and you're more comfortable with Linux than with
Windows, a Linux virtual machine might make your life a little easier.)
Louis
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)