Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : DIFFDEFN

DIFFDEFN
Compares the definitions of one or more pairs of objects and list the differences. (E)
Invocation
Do one of the following:
Usage Notes

 
COMPARE DEFINITIONS
COMMAND ==> Scroll: P
LIST1 LIST2
------------------------------------- --------------------------
Location : Location:
Default Library : Library :
Default Environment:
FIRST List of Objects SECOND List
___________________________________________________|__________________|Parent
Name Type Library/Env | Name |Only
---------------- ---------------- ---------------- | -----------------| -
_ | | N
_ | | N
_ | | N
_ | | N
_ | | N
_ | | N
_ | | N
 
 
 
PFKEYS: 5=SELECT OBJECTS 4=COMPARE 2=LOG 3=EXIT 12=EXIT

 
To view additional fields from this screen, position your cursor in the appropriate section and press PF11 to scroll right.
You can type data directly into the fields displayed or you can use PF5 from within the Compare Definitions screen to display a screen that you can use to select the objects that you require.
After specifying your objects for comparison, press PF4 to list the differences. In the listing, an I indicates that the item should be inserted to make the objects the same and a D indicates that the item should be deleted.
Compare Definitions Screen
The Compare Definitions screen is composed of three sections. Each section is described below:
Specification Section
The specification section contains the following fields:
 
If the objects to be compared in List1 or List2 are located on a remote node, enter the name of the node.
These fields indicate the library in which to look for rule objects in List1 and List2. The library specification for objects in List1 can be overridden by typing the name of another library in the section below.
List of Objects
This section contains fields for listing the items that are to be compared. Only two items per line can be compared and the items on each line must be the same object type. Different types of objects can be compared within one comparison session.
 
In the first list, type the name of the object that is to be compared. If you position your cursor in the FIRST List of Objects section and press PF5, a screen appears for selection.
In the second list, type the name of the object that is to be used for comparison. If you position your cursor in the SECOND List of Objects section and press PF5, a screen appears for selection.
Refer to Select Objects Screen for more information about selecting objects.
Compare Attribute
 
If the objects are composed of child objects (for example, an object set is composed of objects), specifies if the definitions of the child objects should also be compared. Valid values are:
N – Compare the definitions of the parent and children without specifying the child objects as individual items.
 
PF Keys
In addition to the standard PF keys, the following PF keys are available:
Select Objects Screen
Pressing PF5 from the Compare Definitions screen displays the following screen:

 
O b j e c t S e l e c t i o n
COMMAND ==>
Location: Select All: N
Library (for RULES): List Children: N
Presentation Environment:
+-------------------- Selection Specification -----------------+
| Attr Op Value |
| ------ ---- ---------------- |
| NAME ____ ________________ AND unspecified |
| TYPE = ________________ AND attributes will |
| UNIT ____ ________ AND be ignored |
| AUTHOR ____ ________ |
+--------------------------------------------------------------+
Scroll:
Name Type Library Environment Unit
---------------- ---------------- ---------------- ---------------- --------
 
 
 
 
 
 
PFKEYS: ENTER=UPDATE 3=SAVE SELECTION 12=CANCEL

 
Top Section
Specify the following information in the fields. Press PF1 for valid values.
 
The name of the node where the selection criteria are applied. If you do not specify a value, your home location is used.
Presentation Environment
Specify if all the items displayed, based on the selection criteria, should be copied into the Compare Definitions screen.
Middle Section
The middle section of the screen can be used to select the items to be copied or to narrow the selection list. You can use more than one type of selection criteria for each object type and you can specify multiple object types within one session. For a list of valid values for each of these fields, position your cursor on the field and press PF1.
Bottom Section
When you press Enter after specifying the selection criteria, the selected items appear in the bottom portion of the screen. Select the objects displayed in this section by entering an S in the line command field beside the objects. Press PF1 for valid values.
 
If you know the name of the item, type the logical operator to be used in the Op field. Type the name of the object in the Value field.
The name of the object type. If you do not supply an object type, you must specify a value in at least one of the other selection fields.
If you specify an object type and no further selection values, a listing of the items for the object type defined in your TIBCO Object Service Broker database appears for further selection.
In the Op field, type the logical operator to be used. In the Value field, type the name of the unit associated with the object.
In the Op field, type the logical operator to be used. In the Value field, type the name of the author of the object.
PF Keys
You can use the following PF keys from within this screen:
Example
The following example compares the DEPT_EXPENSE_SUM and DEPT_EXPENSE reports and lists the differences. Both parent and child objects are compared:

 
COMPARE DEFINITIONS
COMMAND ==> Scroll: P
LIST1 LIST2
------------------------------------- --------------------------
Location : Location:
Default Library : Library :
Default Environment:
FIRST List of Objects SECOND List
|________________________________________________|_________________|Parent
Name Type Library/Env | Name |Only
---------------- ---------------- ----------------| -----------------| -
_ DEPT_EXPENSE_SUM REPORT | DEPT_EXPENSE | N
_ | | N
_ | | N
_ | | N
_ | | N
_ | | N
 
 
 
 
PFKEYS: 5=SELECT OBJECTS 4=COMPARE 2=LOG 3=EXIT 12=EXIT

 
Listing of Differences
The following list, produced after pressing PF4, indicates what items should be changed and the reason for the differences:

 
------------------------ INFORMATIONAL MESSAGE LOG -------------------------
COMMAND ===> SCROLL ===> P
Differences between @REPORTS of REPORT DEPT_EXPENSE_SUM and @REPORTS of REPORT
SOURCE TABLE C KEYFIELD (NAME) REASON
-------------------------- - --------------------------- ----------------------
@REPORTS D DEPT_EXPENSE_SUM
@REPORTS I DEPT_EXPENSE
 
 
Differences between @REPORTTABLES of REPORT DEPT_EXPENSE_SUM and @REPORTTABLES
SOURCE TABLE C KEYFIELD (NAME) REASON
-------------------------- - --------------------------- ----------------------
@REPORTTABLES(DEPT_EXPENS D BANNER_1
@REPORTTABLES(DEPT_EXPENS D DEPT_EXPENSE_SUM
@REPORTTABLES(DEPT_EXPENS D HUR_TITLE (BLANKOVERLAP) = N
@REPORTTABLES(DEPT_EXPENS D TOTAL_EXP_BR
@REPORTTABLES(DEPT_EXPENS I BANNER
@REPORTTABLES(DEPT_EXPENS I DEPT_EXPENSE
@REPORTTABLES(DEPT_EXPENS I HUR_TITLE (BLANKOVERLAP) = ---
 
 
Object “HUR_TITLE” in LIST1 and object “HUR_TITLE” in LIST2 are alike

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved