In article <[log in to unmask]>, [log in to unmask] says...
>
>Is there any way that a COBOL program, while running, can display the
>$VERSION information it was compiled with? I know the version string can
>be displayed using the VERSION.PUB.SYS program, but I need to be able to
>include that version string on reports and screens generated by the
>program. I can't find anything in the manuals on how to do this.
If u'r not running in block mode, you can call the "command" intrinsic
with the following: RUN VERSION.PUB.SYS;INFO="PROGNAME.GROUPNAM.ACCTNAME"
where the info parm. is your prog. name.
Don't forget the carrige return at the end of the command string.
jerry
--
Former Hughes Aircraft employee, NOW \\|// an Outsourcee 4 CSC
+-----------------------+My opinions |O-O| are JUST THAT !!!
| Jerry Bostick +----------oOO-(_)-OOo-----------------+
| Computer Systems Engineer Specialist, Senior |
| Computer Sciences Corp. work tel.: 714 441-6975 |
| PO Box 3310 work fax.: 714 732-2070 |
| Fullerton, Ca. 92635 work-e-mail: [log in to unmask] |
| USA home-e-mail: [log in to unmask] |
| *HOME PAGE*: http://www.earthlink.net/~jbostick/ |
+--------------------------------------------------------------+