You should really use the Debug Attach Server (DAS) for debugging mainframe batch Natural. It takes a little bit of set up, but once you get started and get used to doing a couple of setup steps each time you start a Debug session, it is much easier than having to allocation workfiles to a Natural TSO session and use the mainframe Natural Debugger, or copy work files to a PC every time you want to debug a batch job using NaturalONE.
You simply start a natdas.exe (Debug Attach Server/DAS) running on your local PC…Then you add some DAS connection information to your batch Natural job step(s) so that the batch job can connect to the DAS running on your local PC, and you also connect your NaturalONE session to the same DAS session and set some breakpoints in your code. Then, when you submit your batch job, the NaturalONE Debug perspective automatically starts when the first breakpoint is reached and you should be off and running for normal debugging.
We have 40+ programmers using NaturalONE and just recently (end of April, 2020), I distributed some standard procedures for our programmers to use the DAS for debugging both batch and online Mainframe Natural code. They were all used to code editing in 3270 mainframe terminal emulator sessions just a year ago, and have all transitioned to performing all Natural code editing in NaturalONE, and those who have since debugged code using the DAS really like it’s capabilities of being able to see the relevant data field values side by side in the same workspace as the source lines they are stepping through.
For the programmers in my shop, I established a special SYSPARM and setup process to make the mainframe batch and online connections to the Debug Attach Server (DAS) easier. If you are interested, I have a version of both the Debug Attach Server usage procedures and the procedures for the setup process to make the mainframe batch and online connections to the DAS easier, that I can share with the SAG community to help more SAG customers get going using NaturalONE so we can see more NaturalONE dialog in both the Tech forums and in SAG-L.
If interested in these procedures, let me know where to email them and I’ll email them as soon as I can.