Skip to content

A database to save your Progress / OpenEdge xref information

Notifications You must be signed in to change notification settings

patrickTingen/xref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xref

A database to save your Progress / OpenEdge xref information

Setup

  • Download all files to your computer
  • Extract to c:\work\xref
  • Open a proenv command prompt there
  • Go to the DB folder and start create_db.cmd
  • Create and run your driver program

A driver program?!?

Yes. You need a program that compiles your source code, saves the xref info to XML files and then starts the reading program. In the folder 'scripts' you can find a reference implementation called 'Dogfood.p'. Why Dogfood? Because, since you need to eat your own dogfood, This script does exactly that. It compiles the xref tools and feeds it to the database. It assumes you have it installed in c:\work\xref. You can use this one as an example; copy it and make the changes, documentation is provided inside dogfood.p

Run Forrest, run!

Load your driver program in the editor, check the settings and run it

Sitting, waiting, wishing ...

Wait until the data is loaded. This might take a while. I know. The good news is that it only takes a long time on the first run. If you don't clean up the database, then the load program will simply refresh the data that has changed from the previous time. This is ideal if you change include files. All code will be recompiled, but only the files that use the include will be reloaded.

To give you some idea: compiling 1400 sources took ~4 minutes on my computer, reading the XML data 12 minutes and generating HTML ~6 minutes. But ymmv.

Then what?

Dogfood.p also generates HTML pages for all relations. This is not needed per se and in fact, you might prefer consulting the data in other ways. I can highly recommend a tool like DataDigger to explore the data.

As said, you can use a tool like DataDigger or the generated HTML pages to find out what is used by whom, but you can also run analysis programs to find unused tables, fields and indexes. In the folder 'tools' you can find a few programs that I use.

Have fun!

About

A database to save your Progress / OpenEdge xref information

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published