USGS InfoBank banner.  USGS, Coastal and Marine Geology, InfoBank banner.
 USGS Coastal and Marine Geology banner.    Search InfoBank.
USGS InfoBank program -- accession2items Skip navigational links
    ________   ________   ______________   ________   _________   _______________   ________  
  tab edge  Home  tab edge  Data  tab edge  Activities  tab edge  FACS  tab edge  Atlas  tab edge  Definitions  tab edge  More  tab edge  
   
InfoBank Programs: by Name   by Data Type   General Tools   GIS   Plotting   Web   USGS Disclaimer   InfoBank Programs   Boothill  
   
Expanded description
Topic Description
Name
accession2items
Synopsis
/infobank/programs/dbase/ob2items/accession2items.for
Description
  Subroutine to replace accession database info in .item files.
    
Author
  Clint Steele     4/28/03


    
Opens
 open (unit = 90,
*      access = 'sequential',
*      form = 'formatted',
*      status = 'unknown',
*      name = '/tmp/accession_files.temp')

     open (unit = 91,
*      access = 'sequential',
*      form = 'formatted',
*      status = 'unknown',
*      name = '/infobank/items/'//
*          FileLine(FileLineLength-14:FileLineLength-12)//
*          '00s/'//
*          FileLine(FileLineLength-14:FileLineLength-10)//
*          '.item')

     open (unit = 92,
*      access = 'sequential',
*      form = 'formatted',
*      status = 'unknown',
*      name = '/tmp/ob2items.'//
*          FileLine(FileLineLength-14:FileLineLength-10)//
*          '.item')

     open (unit = 91,
*      access = 'sequential',
*      form = 'formatted',
*      status = 'unknown',
*      name = FileLine(1:FileLineLength))

    
Reads
     read (90, '(q,a)', end=99) 
*     FileLineLength, FileLine(1:FileLineLength)

         read (91, '(q,a)', end = 98)
*        InLineLength, InLine(1:InLineLength)

         read (91, '(q,a)', end = 97)
*         InLineLength, InLine(1:InLineLength)
    
Writes
             write (92, '(a)') InLine(1:InLineLength)
     write (92, '(1x)')
     write (92, '(a)')
*    '!  *** INFORMATION FROM ACCESSION DATABASE ***'
     write (92, '(1x)')
     write (92, '(a,t20,a,t35,a,t45,a,t55,a)')
*    '! Scientist','Accession #','Pallet #','Box','Comment'
     write (92, '(1x)')
         write (92, '(a)') InLine(1:InLineLength)
    
Calls
 call system ('/bin/ls -1 '//
*    '/infobank/programs/dbase/ob2items/accession/*.accession >'//
*    '/tmp/accession_files.temp')

     call system ('/bin/mv '//
*        '/tmp/ob2items.'//
*          FileLine(FileLineLength-14:FileLineLength-10)//
*          '.item '//
*        '/infobank/items/'//
*          FileLine(FileLineLength-14:FileLineLength-12)//
*          '00s/'//
*          FileLine(FileLineLength-14:FileLineLength-10)//
*          '.item')
    

Skip footer navigational links

InfoBank   Menlo Park Center   Santa Cruz Center   St. Petersburg Center   Woods Hole Center   Coastal and Marine Geology Program  
U. S. Department of the Interior   U. S. Geological Survey   Geologic Information   Ask-A-Geologist   USGS privacy statement   Disclaimer  

URL: http://walrus.wr.usgs.gov/infobank/programs/dbase/ob2items/accession2items.doc.html
Maintainer: Clint Steele
Comments: e-mail
Last modified: Tue Apr 29 03:10:59 PDT 2003  (wcs)