1 VERSION

  Version (VERSION 2.4) is a utility that will give the user the current 
version of layered product software, such as FORTRAN, PASCAL, LSEDIT, 
VMS, etc.  or user created executables which are on this system.

2 parameters     

    All images are taken from SYS$SYSTEM unless a period with or
  without an extention (i.e. EXE) is added to the filename or a 
  directory name is specified.  The default will always be ".EXE."  
  When this is done, the present directory is taken unless a 
  directory is specified at the front of the file.  Wild card 
  characters are allowed (not on the directories) except in search-
  ing for the version of VMS.

  i.e.

       $ VERSION  FORTRAN

         SYS$COMMON:[SYSEXE]
            FORTRAN.EXE;1  VERSION:  FORT V5.7-155

  Image was searched for under SYS$SYSTEM as FORTRAN.EXE

       $ VERSION  VMS

           VMS  VERSION:  V5.4-2

  To get the system version, VMS and only VMS will work.  This
  is because VMS is an operating system and not an executable.

       $ VERSION  ACCOUNTING.EXE

         SYS$COMMON:[SYSEXE]
           ACCOUNTING.EXE;21  VERSION:  X-1

       $ VERSION  ACCOUNTING.

         SYS$COMMON:[SYSEXE]
           ACCOUNTING.EXE;21  VERSION:  X-1

       $ VERSION  ACCOUNTING.*

         SYS$COMMON:[SYSEXE]
           ACCOUNTING.EXE;21  VERSION:  X-1

       $ VERSION  DSK1:[JON.MISC]ACCOUNTING

         SYS$COMMON:[SYSEXE]
           ACCOUNTING.EXE;21  VERSION:  X-1

  All four will obtain the same information.  The information will be
  searched for in the present directory except the last one.  When 
  specifying a directory structure, the user may be sitting any where
  on the system.  If only a period is shown after the file or ".*', then 
  the default of ".exe" is taken.  If a directory sturcture is used then 
  the extension ".EXE" will be the default if no other file specification 
  is used.  If any other file is to be considered the extention is to be 
  given explicitly.  (The version is 'X-1' probably because the file had 
  not been linked with an OPT file.  This is not an error.)
    
2 /OUTPUT     

    This qualifier allows you to write to an output file of your 
  choice.

    i.e.

       $ VERSION /OUTPUT=ALL.VERS  *
       $

    This example will write all the versions of the executables
  under SYS$SYSTEM to the file ALL.VERS.

2 examples

  i.e.

       $ VERSION  FORTRAN

         SYS$COMMON:[SYSEXE]
           FORTRAN.EXE;1  VERSION:  FORT V5.7-155

       $ VERSION  F*TR*

         SYS$COMMON:[SYSEXE]
           FORTRAN.EXE;1  VERSION:  FORT V5.7-155

       $ VERSION  VMS

           VMS  VERSION:  V5.4-2

       $ VERSION  AC*

         SYS$COMMON:[SYSEXE]
           ACC.EXE;1  VERSION:  X-3
           ACLEDT.EXE;1  VERSION:  X-1
!
2 own_version

It is possible to insert your own version numbers within executable images.
To do so, however, you must have an object file (has .OBJ extension).

   1.  Create an options file with the following information:
       a.  the object name
       b.  the version information up to 15 characters

   2.  LINK the program with the /OPTIONS qualifier

An example of this (using the VERSION.OPT file) would look like:

    version.obj
    identification="Version  2.4-1"

where these are the only two lines and the first line refers to the object
you wish to insert the version information.  Then the file is linked with
the /OPTIONS qualifier (be sure that the /OPTIONS qualifier is last):

    $ LINK VERSION /OPTIONS

For more information, look in VMS HELP under LINK /OPTIONS.
