It's all about the answers!

Ask a question

RTC compare editor and sequence numbers


JAMES KENNELLY (3189) | asked Jul 11 '14, 8:13 p.m.
When editing parts in RTC , changes are in the change sets in the RTC work item and can also be viewed in the compare editor in RTC.

The new changed parts may not have sequence numbers on the right side(columns 73-80) and the original parts may have the sequence numbers(73-80).

How can the compare editor or editor be changed to only compare/edit columns 1-72?
For the change sets as well can anything be done?

In the change sets all of the lines show as deleted and then re-added.

Thank you!

Comments
Donald Nong commented Jul 15 '14, 12:12 a.m.

Can you add a screen shot? It's hard to understand your question without seeing the actual content.


JAMES KENNELLY commented Jul 15 '14, 4:37 a.m. | edited Jul 17 '14, 3:22 a.m.

Here is a snippet of the original PLI from the Changeset in RTC Link section:
You can see the sequence number in the first snippet with '-' signs

@@ -1,17465 +1,17496 @@
- / (Subrg,Size,Strz,Strg):/ 00001099
-1ADBMAIN: PROC(PARM) OPTIONS(MAIN,REENTRANT) REORDER; 00002099
- / +-------------------------------------------------------------+ /00003099
- / | ADBMAIN | /00004099
- / | Database 2 Administration Tool 5655-DAT | /00005099
- / | Copyright IBM Corporation 1995, 2014 | /00006099
- / | | /00007099
- / | OCO Source Materials. The source for this program is not | /00008099
- / | published or otherwise divested of its trade secrets, | /00009099
- / | irrespective of what has been deposited with the U.S. | /00010099
- / | Copyright Office. | /00011099
- / +-------------------------------------------------------------+ /00012099
- / --------------------------------------------------------------- /00013099
- / Copyright /00014099
- / --------------------------------------------------------------- /00015099
- 00016099
- Dcl COIBM Char(272) Static Ext 00017099
- Init('Database 2 Administration Tool 5655-DAT Copyright IBM Corporatio00018099
- n 1995, 2014. All rights reserved. Licensed materials - property of IB00019099
- M. US Government Users Restricted Rights - Use, duplication or disclosu00020099
- re restricted by GSA ADP schedule contract with IBM Corp.'); 00021099
- 00022099
- 00023099
- DCL DB2AVERS CHAR(8) VAR INIT('11.1.0'); ; 00024099
- DCL DB2APRID CHAR(8) INIT('5655-DAT') / STATIC /; 00025099
- /L DB2APRID CHAR(8) INIT('5655-W34') for V10 * 00026099
- /L DB2APRID CHAR(8) INIT('5697-L90') STATIC for V7 / 00027099
- /L DB2APRID CHAR(8) INIT('5697-K90') STATIC for V5 / 00028099
- /L DB2APRID CHAR(8) INIT('5655-I23') STATIC for V4 / 00029099
- /L DB2APRID CHAR(8) INIT('5655-E64') STATIC for V3 / 00030099
- /L DB2APRID CHAR(8) INIT('5655-E70') STATIC for V2 / 00031099
- /L DB2APRID CHAR(8) INIT('5655-D52') STATIC for V2 MLC / 00032099
- /L DB2APRID CHAR(8) INIT('5645-DB2') STATIC for V6 / 00033099
- /L DB2APRID CHAR(8) INIT('5688-515') STATIC for V1 / 00034099
- %DCL SQL_SYS CHAR; 00035099
- %SQL_SYS = 'DB2'; 00036099
- %DCL DEBUG_CODE CHAR; 00037099
- %DEBUG_CODE='NO'; 00038099
- %DCL BETA_CODE CHAR; 00039099
- %BETA_CODE='NO'; 00040099

Here is the second snippet of the changed PLI with '+' signs
So every line in the original code shows as a '-' and the new changed code has a '+'

This is because of the sequence numbers.

+ / (Subrg,Size,Strz,Strg):/
+1ADBMAIN: PROC(PARM) OPTIONS(MAIN,REENTRANT) REORDER;
+ / +-------------------------------------------------------------+ /
+ / | ADBMAIN | /
+ / | Database 2 Administration Tool 5655-DAT | /
+ / | Copyright IBM Corporation 1995, 2014 | /
+ / | | /
+ / | OCO Source Materials. The source for this program is not | /
+ / | published or otherwise divested of its trade secrets, | /
+ / | irrespective of what has been deposited with the U.S. | /
+ / | Copyright Office. | /
+ / +-------------------------------------------------------------+ /
+ / --------------------------------------------------------------- /
+ / Copyright /
+ / --------------------------------------------------------------- /
+
+ Dcl COIBM Char(272) Static Ext
+ Init('Database 2 Administration Tool 5655-DAT Copyright IBM Corporatio
+ n 1995, 2014. All rights reserved. Licensed materials - property of IB
+ M. US Government Users Restricted Rights - Use, duplication or disclosu
+ re restricted by GSA ADP schedule contract with IBM Corp.');
+
+
+ DCL DB2AVERS CHAR(8) VAR INIT('11.1.0'); ;
+ DCL DB2APRID CHAR(8) INIT('5655-DAT') / STATIC /;
+ /L DB2APRID CHAR(8) INIT('5655-W34') for V10
+ /L DB2APRID CHAR(8) INIT('5697-L90') STATIC for V7 /
+ /L DB2APRID CHAR(8) INIT('5697-K90') STATIC for V5 /
+ /L DB2APRID CHAR(8) INIT('5655-I23') STATIC for V4 */

One answer



permanent link
Geoffrey Clemm (30.1k33035) | answered Jul 17 '14, 3:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I believe the default RTC compare editor is just the compare editor that comes with Eclipse.
So you would need to submit an enhancement request to the Eclipse project to get the Eclipse compare editor modified.
But your best approach is probably to try to find an existing compare tool that allows you to ignore sequence numbers, and then invoke that via the RTC "Open in External Compare Tool" function.

Comments
sam detweiler commented Jul 17 '14, 7:32 a.m.

Isn't there something in the enterprise support that would do this already? Cobol and PL/1 apps have used sequence numbers forever. I can't imagine IBM leaving this function out.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.