Troubleshooting
Problem
This document explains how to retrieve ILE RPG IV 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...:

2. Select Run->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:

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":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CHtAAM","label":"Programming ILE Languages"},{"code":"a8m3p000000F91QAAS","label":"Programming ILE Languages-\u003EDebugger"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]
Historical Number
516386412
Was this topic helpful?
Document Information
Modified date:
13 November 2024
UID
nas8N1013133