Menu

Tree [r1] /
 History

HTTPS access


File Date Author Commit
 COPYING 2015-12-24 vcoen [r1] Total refresh+commit
 COPYING.pdf 2015-12-24 vcoen [r1] Total refresh+commit
 Changelog 2015-12-24 vcoen [r1] Total refresh+commit
 README 2015-12-24 vcoen [r1] Total refresh+commit
 TODO 2015-12-24 vcoen [r1] Total refresh+commit
 cobxref-1.01.15.zip 2015-12-24 vcoen [r1] Total refresh+commit
 cobxref.cbl 2015-12-24 vcoen [r1] Total refresh+commit
 cobxref.lst 2015-12-24 vcoen [r1] Total refresh+commit
 cobxref.txt 2015-12-24 vcoen [r1] Total refresh+commit
 comp-cobxref.sh 2015-12-24 vcoen [r1] Total refresh+commit
 documentation_license.odt 2015-12-24 vcoen [r1] Total refresh+commit
 documentation_license.pdf 2015-12-24 vcoen [r1] Total refresh+commit
 get-reserved-lists.cbl 2015-12-24 vcoen [r1] Total refresh+commit
 get-reserved-lists.lst 2015-12-24 vcoen [r1] Total refresh+commit

Read Me

			       CobXRef
		http://sourceforge.net/projects/cobxref/


CobXRef is a Cobol cross reference tool that reads a Cobol source file as output
by GNUCobol's cobc with the -X (or -E or -save-temps) parameter/s supplied and
produces a file suitable for printing 'as is' that contains all variables,
procedure paragraphs and section names referenced where they are defined
as well as where they are used throughout the program or module as well as
a lists of unreferenced data names and paragraph & section names.

if used as a stand alone program it will preceded the cross reference report
by a listing of the original source. Note that version 1.2 (hopefully will be
released late November 2014) will include the code from printcbl which takes
in the copy books when used by any COPY verbs in the source to a depth of 9.

NOTE that if run via cobc using -X, source listing will NOT precede the cross
reference listing as the source file from cobc will have all comment line
replaced with blank lines and all source moved to the left with formatting
spaces replaced by just one space for use with the compilers parser.

As this format looks like a dogs dinner, the default operation is to only
produce a cross reference listing without the source listed as cobc will call
cobxref with the paramater -R (No source listing).

It will read a source file containing a standalone program or many program &
modules providing they confirm to the Cobol standard in the same way that
GNUCobol does.

Cobxref should only be run against source code that has been processed by cobc
without errors and optionally without warnings when using cobc param -W.

[GNUCOBOL is an open-source COBOL compiler, which translates COBOL programs to
C code and compiles it using GCC on multiple platforms and operating systems]

All code and programs are distributed under the GNU General Public License v3.
See COPYING for details.

Requirements
============

GNUCobol package installed and tested fully working.
See documentation supplied with GNUCobol.
You MUST have run both sanity checks created by the test procedures including
within the cobol85 suite as well as the make check procedure.

Installation
============

Linux/Unix:
Compile the source of cobxref.cbl and get-reserved-lists.cbl with the
GNUCobol compiler cobc using the supplied shell script comp-cobxref.sh with
the command ./comp-cobxref.sh at a command prompt using any terminal program.

Now place cobxref in a directory that is within the PATH making sure that the
execute flag is set (chmod +x cobxref) although this is done within the script.

Mac OSX:
Compile the Cobol source as for Linux/Unix.

In the event this does not work, you must have installed and tested GNUCobol.
Note this will not work 'as is' with Tiny Cobol or ANY other compiler.

Supplied files with the Cobxref tarbel:
**************************************

Changelog               History of changes made to cobxref sources.
cobxref.txt		Usage procedure for cobxref.
cobxref.cbl		Cobol source code of cobxref.
cobxref.lst		XREF listing for cobxref via -X.
comp-cobxref.sh         Script to compile the Cobol code under bash.
COPYING                 -- Ditto but as a text file ----
COPYING.pdf             Software License for copying code.
documentation_license.pdf Documentation license for all docs as a pdf
documentation_license.odt ---  Ditto in LibreOffice format -----
get-reserved-lists.cbl  Cobol source code of module called by cobxref.
get-reserved-lists.lst	XREF listing via -X.
README                  This file
TODO                    Lists any outstanding programming or new functionality.

NOTES:
*****

You must compile using an up to date version of GNUCobol (c) but not less
than version 1.1 dated Feb 2009 but will work best using v2.x. Current testing
is with v2.1.

Please also read Cobxref.txt for instructions on using cobxref.

A master copy of the sources can be found at the sourceforge web site
for GNUCobol in the contrib folders located at:
https://sourceforge.net/p/open-cobol/contrib/HEAD/tree/trunk/tools/cobxref/

and use the "Download snapshot" function shown near the top on the right.

and the latest sources on the primary cobxref SF area at:
https://sourceforge.net/projects/cobxref/GNUCobol-Cobxref/ cobxref-GNUCobol-Cobxref

and use the "Download snapshot" function shown near the top on the right.

Or you can get the latest archived file:

https://sourceforge.net/projects/cobxref/files/latest/download?source=files

This project area (cobxref) also has the work in progress for the IBM MVS Ansi Cobol version at:
https://sourceforge.net/projects/cobxref/IBM-MVS-38J-Ansi-Cobol/ cobxref-IBM-MVS-38J-Ansi-Cobol

Please report all bugs found to the GNUCobol contrib forum at
https://sourceforge.net/p/open-cobol/discussion/contrib/
and send a copy to the author at vbcoen@gmail.com if urgent/showstopper.

Bugs for the IBM version direct to author at vbcoen@gmail.com with a subject of MVS bug.

last updated 14th November, 2014 (c) Vincent B Coen

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.