Try OpenEdge Now
skip to main content
Debugging and Troubleshooting
Troubleshooting Resources : Other Diagnostics Resources : Analyzing procedures and queries : COMPILE XREF option
 
COMPILE XREF option
The XREF option of the COMPILE statement provides a variety of static data about an ABL procedure, including:
*Other procedures that are RUN
*Text strings that exist in the procedure
*Code pages, include files, and shared variables used
*Events published, subscribed, and unsubscribed to
*Database tables accessed
*Indexes used for a particular database query
The following example shows the XREF option output generated by executing execlog.p. (See Run-time diagnostics for sample code of execlog.p.)

Sample XREF option output

execlog.p execlog.p 1 COMPILE execlog.p
execlog.p execlog.p 1 CPINTERNAL iso8859-1
execlog.p execlog.p 1 CPSTREAM ibm850
execlog.p execlog.p 1 STRING "ix" 2 NONE UNTRANSLATABLE
execlog.p execlog.p 3 STRING "Customer" 8 NONE UNTRANSLATABLE
execlog.p execlog.p 3 ACCESS sports.Customer Name
execlog.p execlog.p 3 SEARCH sports.Customer Name WHOLE-INDEX
execlog.p execlog.p 4 ACCESS sports.Customer Name
execlog.p execlog.p 4 STRING "x(20)" 5 NONE TRANSLATABLE FORMAT
execlog.p execlog.p 9 STRING "->,>>>,>>9" 10 NONE TRANSLATABLE FORMAT
execlog.p execlog.p 14 STRING "ii" 2 NONE UNTRANSLATABLE
execlog.p execlog.p 15 STRING "Number of Customers is " 23 NONE TRANSLATABLE
execlog.p execlog.p 15 STRING "x(23)" 5 NONE TRANSLATABLE FORMAT
execlog.p execlog.p 15 STRING "->,>>>,>>9" 10 NONE TRANSLATABLE FORMAT
execlog.p execlog.p 16 STRING "ii" 2 LEFT TRANSLATABLE
execlog.p execlog.p 16 STRING " ----------------" 42 NONE UNTRANSLATABLE
execlog.p execlog.p 16 PROCEDURE internalA,,INPUT ii INTEGER
execlog.p execlog.p 16 STRING "INTERNALA" 9 NONE UNTRANSLATABLE
execlog.p execlog.p 16 STRING "ix" 2 LEFT TRANSLATABLE
execlog.p execlog.p 16 STRING "----------------" 16 NONE UNTRANSLATABLE
execlog.p execlog.p 16 STRING "Name" 4 LEFT TRANSLATABLE
execlog.p execlog.p 16 STRING "Name" 4 NONE UNTRANSLATABLE
execlog.p execlog.p 16 STRING "----------------------" 22 NONE UNTRANSLATABLE
execlog.p execlog.p 16 STRING "Name" 4 NONE UNTRANSLATABLE
execlog.p execlog.p 8 RUN execlog2.p
For detailed information on the XREF option, see OpenEdge Development: ABL Reference.