We have some programs that make incredibly heavy use of \copy members to import standard DS's, PR's, etc.
When viewing/editing an rpg member in LPEX, you can right-click a \copy statement to open the included member in LPEX in another tab.
What I have always thought would be a good idea, would be the ability to click on a \copy member and have it expand and be displayed inline within the current source. Something like this:
Start with this:
Click on the /include and get something like this:
With some kind of syntax highlighting to make it obvious it's included source.
It would account for conditionals within the included source and only show the lines that would be included
When viewing/editing an rpg member in LPEX, you can right-click a \copy statement to open the included member in LPEX in another tab.
What I have always thought would be a good idea, would be the ability to click on a \copy member and have it expand and be displayed inline within the current source. Something like this:
Start with this:
Code:
0144.00 0145.00 // Load Records prototype 0146.00 /include LOADRECS 0147.00 0148.00 0149.00 //*********************************************************************** 0150.00 // Mainline 0151.00 //*********************************************************************** 0152.00 0153.00 // Setup SQL Parameters 0154.00 Exec SQL Set Option COMMIT = *None; 0155.00 Exec SQL Set Option ALWBLK = *None; 0156.00 Exec SQL Set Option CLOSQLCSR = *EndMod;
Code:
0144.00 0145.00 // Load Records prototype 0146.00 /include LOADRECS *0001.00 Dcl-Pr LOADRECS extpgm; *0002.00 pMode char(5); *0003.00 pKey1 char(10); *0004.00 End-Pr; /endInclude LOADRECS 0147.00 0148.00 0149.00 //*********************************************************************** 0150.00 // Mainline 0151.00 //*********************************************************************** 0152.00 0153.00 // Setup SQL Parameters 0154.00 Exec SQL Set Option COMMIT = *None; 0155.00 Exec SQL Set Option ALWBLK = *None; 0156.00 Exec SQL Set Option CLOSQLCSR = *EndMod;
It would account for conditionals within the included source and only show the lines that would be included
Comment