Problem:
Is there a way to see what version of an ACUCOBOL-GT object is when cblutil is not available?
Resolution:
If the Unix operating system being used has a magic file then it is possible to add an entry to display the version of the ACUCOBOL-GT object.
First locate the magic file ie. $whereis magic
$magic: /usr/share/magic.mgc /usr/share/magic /usr/share/magic.mime /usr/share/magic.save /usr/share/man/man5/magic.5.gz
In this instance the /usr/share/magic file would be edited to include the following code.
# Magic numbers for ACUCOBOL-GT object file
#0 string \\020\\022\\024\\040 ACUCOBOL-GT object file data
0 belong   ; 0x10121420 ACUCOBOL-GT
>4 beshort >0 version %d object
**You may need to compile this file, check the man page on file.
Now when the file command is used it will output the version of the ACUCOBOL-GT object, e.g:
$file test.acu
test.acu: ACUCOBOL-GT version 70 object




