;
                                 SAVNDR.COM                                   

             Size (recs) CRC   Version    Author/Latest Issue      Disk
               2k (10)   97C9  1.3        Joe Wright 6/89          Z3COM8

  1- Syntax/Usage  2- Notes  3- Examples of Use                               


   SAVNDR writes  a reloadable  (by LDR) copy  of the resident Named Directory
module to a disk file.   A typical use for this program is to save (for future
use) a copy of the system Named Directory buffer after it has been modified by
editing with EDITND.
:1

   Syntax   SAVNDR [du: or dir:][fn][.ft]

   DU:/DIR: specifies the disk/user area  on which  to write the file.   If no
filename spec is given, a copy of the Named Directories is made in the default
du: whose default name is SAVED.NDR.   This name is located near the beginning
of the program and may be changed with a standard debugger.

   If DIR is omitted or invalid, the current default du: is implied.
   If FN is omitted, a default name specified in the source file is used.
   If the period is present,  but FT is not specified, then the file type will
be blank.
   If both the period and FT are missing, then the default file type specified
in the source will be used.
 
   A help screen can be invoked with either of the following:

            SAVNDR /
            SAVNDR //
            SAVNDR ?
:2
 SAVNDR Notes - 1/2 

   a. SAVNDR is completely  command-line  oriented;  there  is  no interactive 
      mode.   A copy of the system Named Directory  is saved  in  a  disk file 
      whose specification is the standard ZCPR3  file name specification.   In 
      fact, the token parser is identical in function to that of ZCPR3 itself.

   b. Vs 1.1 updates
      - fixed  a few broken error routines, converted to the Z33 Type 3 format
      with safety header
      - implemented DSEG using beta Z3LIB/SYSLIB "4"
      - deleted unecessary ZFNAME call  --  and vestigial equates and external 
      references, other minor code  tune-ups.   
      - file size reduced from 30 to 11(!) records,  program noticeably faster 
      to load and execute, 
      - errors reported accurately to CON:  
      - program error flag set to zero  on  any successful execution including 
      help queries.
 SAVNDR Notes - 2/2 

   c. Vs 1.2 updates
      - saves only the minimum size of  file required  to contain  the current 
      Named Directory.   Previous versions  saved  a maximum size file,  which  
      prevented making smaller NDRs  for use with  a dynamically-sized  system 
      like NZCOM.  

   d. Vs 1.3 updates
      - F$OPEN does not delete an existing file.  F$MAKE does.  
      - Check that F$MAKE was successful
      - shortens size determination code and moves it just before WRNDR:
      - shortens WRNDR: itself 
      - removes local stack and calls to PUTUD and GETUD.
      - removes all DSEG use by hot-patching STAK and ERRCOD.
      - changes the HELP screen some
:3
 Examples of Use 
 
   a. SAVNDR BULLY.      <-- produces the file BULLY.    (blank FT)
      
   b. SAVNDR BULLY       <-- produces the file BULLY.NDR

   c. SAVNDR .MDL        <-- produces the file SAVED.MDL