Good day. There is an RPG program that is compiled with DBGVIEW = * LIST. You can of course run this program in the debugger and see the code. Is it possible to save this code to a source file or IFS or a spool file? After all, RDi somehow extracts the listing from the program. Maybe this is done by some command of the system?
Announcement
Collapse
No announcement yet.
Save program listing
Collapse
X
-
I googled this and found an IBM help page, that advises starting debug on the program and then manually copy/pasting. I assume whatever method the debugger uses is not publicly exposed.
(this page specifically uses Run SQL Scripts's debugger, but it would also work if you used the greenscreen or RDi debugger instead)
- Likes 1
-
Thanks for the advice. But, unfortunately, it was not possible to copy the listing.
In RDi, I see the entire listing, I can scroll it, but if I try to select everything (Ctrl + A), then copy (Ctrl + C) and paste into notepad, for example (Ctrl + V), then only 200 lines are inserted.
Following the example of the page shown, IBM was unable to start the debugger. For some unknown reason, I do not see programs in the debugger window, and the status bar says "Attempting to start the debug server in 'here is the IP of my IBM i server' ...
Comment
Comment