Next: Making a Local Up: SNODB User Interfaces Previous: SNODB User Interfaces

Adding a New Bank to the Database

If one wishes to add a new bank to an existing database file, the steps to follow are below. (If one wishes to add a new bank to an entirely new database file, see Sec. 4.5.)

  1. Create a file called (say) my_sndirs.dat and enter one line for each directory and/or bank you wish to insert. For example, the lines might look like:
    //CDFB/bnk1 bnk1 F
    //CDFB/bnk2 bnk2 F
    //CDFB/stuff
    //CDFB/stuff/bnk3 F
    where FB is the two-character database file prefix of the file to which you are adding the new bank. This anticipates three banks, bnk1 and bnk2 in the top directory and bnk3 in the stuff subdirectory. The F qualifier directs sndirs to make an fmt subdirectory to store that bank's format information. This format information is used to write out the bank as a titles file in the same format it had when it was input.
  2. Run /$SNODB_VER/exes/sndirs -l my_sndirs.dat
    to create the internal directory structure.
  3. Once the journal files for the internal directory structure have been processed, run
    /$SNODB_VER/exes/snalia -l my_sndirs.dat
    to create the aliases for the banks. These aliases are bnk1, bnk3 and bnk3 which refer to the banks by the same name and point to their locations within the internal directory structure of the database file in which they are placed.


cdsno@higgs.hep.upenn.edu
Mon Aug 10 17:56:28 EDT 1998