          This  directory  contains  RENUM,  a program which will
     renumber a Fortran program so that all statement  labels  in
     each  compilation unit are numbered in ascending order.  The
     program currently generates labels starting  with  label  10
     and  increasing  in  steps  of  10,  but  this can be easily
     changed by modifying the LOOKUP routine.  

          If  installed,  the  program  will read the name of the
     file which is to be renumbered from the command line.  If no
     command  line is present (e.g., if the task isn't installed,
     but was invoked with  a  RUN  command),  the  user  will  be
     prompted  for  a filename.  An extension of .FTN (or .FOR in
     the VMS edition) is assumed if no extention is provided.  If
     a second filename is provided, it will be used as the output
     file name.  

          Essentially  the  same program is provided for use on a
     VAX/VMS system in the files RENUM.FOR and  RENCOM.FOR.   The
     only  changes  required  to  produce the VMS version were to
     change the call to GETMCR to a call to LIB$GET_FOREIGN,  and
     to change the default filename extension to .FOR.  

          The   RENUM  program  only  calls  routines  which  are
     provided in the RENUM source file or in the standard  system
     library, and no overlays are required even with all compiler
     error checking enabled, so no special link commands are  re-
     quired.  

          To  allow  a  command  line to be passed to the program
     when run under RSX, the program must  be  installed  with  a
     prototype  command name such as ...REN.  At sites using DCL,
     the name ...RNM would be  preferable,  since  this  wouldn't
     conflict  with  the  DCL RENAME command.  To do this, an IN-
     STALL command such as 

          INS $RENUM/TASK=...RNM 

     should be placed in the system startup command file.  

          To  allow  a  command  line to be passed to the program
     when run under VMS, the program must be invoked as a foreign
     command.  To do this, a symbol definition such as 

          RENUM == "$RENUM" 

     should be placed in the system login command file.  

          Any  questions  or  suggestions  can be directed to the
     author:  

                              John Kodis
                      Goddard Space Flight Center
                         Building 26, Room 115
                    Greenbelt, Maryland, 20771, USA
                            (301) 286-4543

