IBM Support

How to Retrieve RPG ILE Source when Compiled with Debug View *ALL or *LIST

Troubleshooting


Problem

This document explains how to retrieve RPG ILE source when compiled with debug view *all or *list.

Resolving The Problem

Disclaimer: IBM accepts no responsibility for its correctness.


If you want to retrieve RPG source from a program when the code is not available on the system, the options are limited. However, if the program was compiled with Debug of *ALL or * LIST, there is a way to copy and paste the entire source using System i Navigator Debug. Take the following steps to copy and paste the entire source:

1. Under Databases, right click on the system name and select Run SQL Scripts...:

This shows how to get to run sql scripts.



2. Select Run->Debugger:

This shows how to then get to the debugger.


3. Enter the program name and library, and press Enter. This will bring up a debug view of the program in a style that allows copying and pasting the entire source:

System Debug print screen
Note: A strict copy and paste will not result in executable code. You must look through the code and remove the characters and statements inserted by the debugger.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

516386412

Document Information

Modified date:
11 November 2019

UID

nas8N1013133