I have a tool I wrote here that does this for your entire source repo.

It creates a UD file and processes each source file, mapping out which
subroutines the code calls and saves it as a record in the UD file.

I then have several dictionary items, such as SHALLOW, DEEP, ISPROGRAM
and TREE, which you can used to find programs/subroutines, which
directly/indirectly call something, or with TREE, display the entire
call tree 'graphically'.

It would be fairly trivial to change it to handle INCLUDEs, etc. If
anyone is interested, I could ask if I can release it.

Regards,

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Israel, John R.
Sent: Wednesday, 27 May 2009 6:50 AM
To: '[email protected]'
Subject: RE: [U2] UV BASIC Flowing Charting Tools

I wrote something like this a while ago.  It has a driver program that
prompts for what you want (includes, calls, etc) and what program to
start on, then calls the main external subroutine. 

This external subroutine recursively calls itself for each call and
include.

The trick to this is to remember which programs you have already
checked.  Otherwise, you could find yourself in a nasty endless loop
because you keep testing the same subroutines over and over.

John Israel
Sr. Programmer/Analyst
Dayton Superior Corporation
721 Richard St.
Dayton, OH  45342
937-866-0711 x44380
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tony G
Sent: Tuesday, May 26, 2009 4:31 PM
To: [email protected]
Subject: RE: [U2] UV BASIC Flowing Charting Tools

The trick isn't creating charts, or pretty ones.  The trick is to
create a flowchart from BASIC which shows Calls and Includes (one
kind of report), or files and fields used (another kind of
report).  You can take it further and trace Exceutes, procs,
paragraphs, etc.  All of those report types are data-centric and
it's a real challenge to create a generic utility that can derive
that sort of metadata from any given MV application.  Once you
have the data you can render it with any tools you wish.  Doing
the charting is the easy part.  :)

I believe Brian Leach has something for doing MV-oriented flow
charting as described above.

Tony Gravagno
Nebula Research and Development
TG@ remove.pleaseNebula-RnD.com
Visit PickWiki.com!  Contribute!

From: dennis bartlett
> I like FusionCharts.

> Steve Romanow wrote:
> not specifically for unibasic, but Dia is nice and free.

>> Marco Manyevere wrote:
>>> Does anyone have a good recommendation for Universe 
>>> BASIC source code flow charting software to aid with 
>>> analysis and documentation of existing code?
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
###########################################################################################
The information transmitted in this message and attachments (if any) is 
intended only
for the person or entity to which it is addressed. The message may contain 
confidential
and/or privileged material.  Any review, retransmission, dissemination or other 
use of
or taking of any action in reliance upon this information by persons or 
entities other
than the intended recipient is prohibited.  If you received this in error, 
please
contact the sender and delete the material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or 
distribute
the information contained in this e-mail and any attached files with the 
permission of IMB.
###########################################################################################
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to