Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- updateholdings

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
updateholdings
Synopsis
/infobank/programs/dbase/updateholdings/updateholdings.for
Description
  Program to add/update material container 

  area, type, location, column, and row information.
  Uses /infobank/programs/keep/holdings_list.keep.
  Uses /infobank/programs/keep/container_list.keep.
  Updates /infobank/holdings/*.txt database files.
       
AUTHOR
  Clint Steele      4/1/2005

  made unit references variables - CDegnan, 04/26/2013

    
Reads
          read (ContnrListKeep, '(q,a)', end=99)
     *        ALineLength, ALine(1:ALineLength)
              read (ALine(Tab(Loop2)+1:Tab(Loop2+1)-1), '(i)')
     *            Container
              read (ALine(Tab(2)+1:Tab(3)-1), '(i)') IRow(Container)
          read (HoldngsListKeep, '(q,a)', end = 907)
     *        InFileLength, InFile(1:InFileLength)
          read (ContnrInTemp2, '(q,a)', end = 906)
     *        ALineLength, ALine(1:ALineLength)
              read (ContnrInTemp2, '(q,a)', end = 906)
     *            ALineLength, ALine(1:ALineLength)
              read (ALine(Tab(1)+1:Tab(2)-1), '(i)', err=945)
     *            Container
Writes
          write (ContnrInTemp1, '(1x)')
          write (ContnrOutTemp, '(a)') ALine(1:ALineLength)
                  write (ContnrOutTemp, '(a)') ALine(1:ALineLength)
                  write (UnknownLocsTxt, '(a)')
     *                ALine(1:ALineLength)
              write (ContnrOutTemp, '(a,i2.2,a,i2.2,a)')
     *            ALine(1:Tab(2))//
     *            Area(Container)(1:AreaLength)//char(9)//
     *            Type(Container)(1:TypeLength)//char(9)//
     *            Location(Container)(1:LocationLength)//char(9)//
     *            'column ',IColumn(Container),char(9)//
     *            'row ',IRow(Container),
     *            ALine(Tab(7):ALineLength)
Opens
      open (unit = ContnrListKeep,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/programs/keep/container_list.keep')
      open (unit = HoldngsListKeep,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = 
     *          '/infobank/programs/keep/holdings_list.keep')
          open (unit = ContnrInTemp1,
     *          access = 'append',
     *          form = 'formatted',
     *          status = 'old',
     *          name = '/infobank/tmp/updateholdings.'//
     *              InFile(LastSlash+1:LastDot-1)//'.in.temp')
          open (unit = ContnrInTemp2,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'old',
     *          name = '/infobank/tmp/updateholdings.'//
     *              InFile(LastSlash+1:LastDot-1)//'.in.temp')
          open (unit = ContnrOutTemp,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'unknown',
     *          name = '/infobank/tmp/updateholdings.'//
     *              InFile(LastSlash+1:LastDot-1)//'.out.temp')
                      open (unit = UnknownLocsTxt,
     *                      access = 'sequential',
     *                      form = 'formatted',
     *                      status = 'unknown',
     *                      name = '/infobank/'//
     *                         'holdings/unknown_locations.txt')
Calls
      call executiontime (15)
          call system ('/bin/cp '//InFile(1:InFileLength)//
     *        ' /infobank/tmp/updateholdings.'//
     *        InFile(LastSlash+1:LastDot-1)//'.in.temp')
              call stringlen (Area(Container), AreaLength)
              call stringlen (Type(Container), TypeLength)
              call stringlen (Location(Container), LocationLength)
          call system ('/bin/cp /infobank/tmp/updateholdings.'//
     *        InFile(LastSlash+1:LastDot-1)//'.out.temp '//
     *        InFile(1:InFileLength))
          call system ('/bin/rm /infobank/tmp/updateholdings.*.temp')

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/dbase/updateholdings/updateholdings.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:37:49 PDT 2013  (chd)