Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- newcontainer

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
newcontainer
Synopsis
/infobank/programs/dbase/newcontainer/newcontainer.for
Description
  Program to find available numbers for new containers.

       
REQUIREMENTS
  Uses /infobank/programs/keep/containers_list.keep for control.

    
AUTHOR
  Alex Ma     1/13/2006          

  Clint Steele   2/27/2007   added check for erroneous duplicates

    
Reads
      read (5, '(i)', end=999) NeedCount
      read (5, '(i)', end = 998) ContainerType
          read (Container, '(q,a)', end=98)
     *        ContainerRecordLength, 
     *        ContainerRecord(1:ContainerRecordLength)
          read (Current, '(i5)', end=99, err=2) ContainerNum1
          read (Sorted, '(i5)', end = 1997) ThisNum
          read (Sorted, '(i5)', end = 97) ContainerNumNow
Writes
              write (Current, '(a)') ContainerNum
          write (Current, '(a)') ContainerNum
              write (Number, '(i5)') ContainerNum1
      write (Number, '(i5)') 20000
      write (Number, '(i5)') 10000
              write (Message(1:), '(a,i,a)') '/bin/grep ', ThisNum,
     *                 ' /infobank/holdings/container_locations/*.txt'
Opens
      open (unit = Container,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = 
     *    '/infobank/programs/keep/container_list.keep')
      open (unit = Current,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/newcontainer/current.txt')
       open (unit = Number,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/newcontainer/num.txt')
      open (unit = Sorted,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *     name = '/infobank/programs/dbase/newcontainer/sorted.temp')
Calls
              call stringlen(ContainerRecord, ContainerRecordLength)
              call stringlen(ContainerRecord, ContainerRecordLength)
      call system(
     *  '/bin/sort /infobank/programs/dbase/newcontainer/num.txt > 
     *  '/infobank/programs/dbase/newcontainer/sorted.temp')
      call system(
     *  '/bin/rm /infobank/programs/dbase/newcontainer/current.txt')
      call system(
     *  '/bin/rm /infobank/programs/dbase/newcontainer/num.txt')
              call stringlen (Message, MessageLength)
              call system (Message(1:MessageLength))

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/newcontainer/newcontainer.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:37:52 PDT 2013  (chd)