Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- orglist

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
orglist
Synopsis
/infobank/programs/html/orglist/orglist.for
Description
  Program to construct an organization-to-filename translation table

  /infobank/programs/keep/organizations.keep
       
AUTHOR
  Clint Steele     12/5/2003


    
Reads
          read (90, '(q,a)', end = 99) 
     *        ALineLength, ALine(1:ALineLength)
          read (92, '(q,a)', end = 98)
     *        ALineLength, ALine(1:ALineLength)
          read (93, '(a)', end = 97) ALine(1:1)
          read (93, '(q,a)', end = 97) 
     *        ALineLength, ALine(1:ALineLength)
      read (97, '(/,2x,q,a)', end=997) DiffLength, Diff(1:DiffLength)
      read (96, '(a24)') WC1
      read (96, '(a24)') WC2
Writes
          write (91, '(a)') ALine(10:ALineLength)
          write (93, '(a)') ALine(1:ALineLength)
          write (OutName, '(1024x)')
          write (93, '(a)') OutName(1:OutLength)
          write (94, '(a)') ALine(1:ALineLength)
      write (DiffLine, '(80x)')
      write (Diff, '(20x)')
      write (DiffLine, '(a)')
     *    '/bin/grep "'//Diff(1:DiffLength)//
     *    '" /infobank/tmp/orglist_90.temp > /tmp/orglist_diffs.1.te
Opens
      open (unit = 90,
     *      form = 'formatted',
     *      status = 'old',
     *      access = 'sequential',
     *      name = '/infobank/tmp/orglist_90.temp')
      open (unit = 91,
     *      form = 'formatted',
     *      status = 'unknown',
     *      access = 'sequential',
     *      name = '/infobank/tmp/orglist_91.temp') 
      open (unit = 92,
     *      form = 'formatted',
     *      status = 'old',
     *      access = 'sequential',
     *      name = '/infobank/tmp/orglist_92.temp')
      open (unit = 93,
     *      form = 'formatted',
     *      status = 'unknown',
     *      access = 'sequential',
     *      name = '/infobank/tmp/orglist_93.temp')
      open (unit = 93,
     *      form = 'formatted',
     *      status = 'unknown',
     *      access = 'sequential',
     *      name = '/infobank/tmp/orglist_93.temp')
      open (unit = 94,
     *      form = 'formatted',
     *      status = 'unknown',
     *      access = 'sequential',
     *      name = '/infobank/tmp/orglist_94.temp')
      open (unit = 97,
     *      form = 'formatted',
     *      status = 'unknown',
     *      access = 'sequential',
     *      name = '/infobank/tmp/orglist_diffs.temp')
      open (unit = 96,
     *      form = 'formatted',
     *      status = 'unknown',
     *      access = 'sequential',
     *      name = '/infobank/tmp/orglist_96.temp')
Calls
      call system ('/bin/cat /infobank/a/*/meta/*.organization  '//
     *    '> /infobank/tmp/orglist_90.tem
          call system ('/bin/cat /infobank/'//Alphabet(Loop:Loop)//
     *        '/*/meta/*.organization  '//
     *        '>> /infobank/tmp/orglist_90.
          call stringlen (ALine(1:9), IDLength)
          call stringlen (ALine(10:ALineLength), OrgLength)
      call system ('/bin/sort -u /infobank/tmp/orglist_91.temp > 
     *             '/infobank/tmp/orglist_92.temp')
          call stringlen (OutName, OutLength)
      call system ('/bin/sort /infobank/tmp/orglist_94.temp > 
     *    '/infobank/tmp/orglist_95a.temp')
      call system ('/bin/wc /infobank/tmp/orglist_95a.temp > 
     *    '/infobank/tmp/orglist_96.temp')
      call system ('/bin/sort -u /infobank/tmp/orglist_94.temp > 
     *    '/infobank/tmp/orglist_95b.temp')
      call system ('/bin/wc /infobank/tmp/orglist_95b.temp >&g
     *    '/infobank/tmp/orglist_96.temp')
      call system ('/bin/diff /infobank/tmp/orglist_95a.temp '//
     *    '/infobank/tmp/orglist_95b.temp > 
     *    '/infobank//tmp/orglist_diffs.temp')
      call stringlen (DiffLine, DiffLineLength)
      call system (DiffLine(1:DiffLineLength))
          call system ('/bin/grep " '//
     *        Diff(DiffLoop:DiffLoop)//
     *        '" /infobank/tmp/orglist_diffs.'//
     *        DiffBet(DiffLoop-1:DiffLoop-1)//
     *        '.temp > /infobank/tmp/orglist_diffs.
     *        DiffBet(DiffLoop:DiffLoop)//
     *        '.temp')
      call system ('/bin/cat /infobank/tmp/orglist_diffs.'//
     *    DiffBet(DiffLoop-1:DiffLoop-1)//'.temp')
          call system ('/bin/cat /infobank/tmp/orglist_diffs.1.temp')
          call system ('/bin/diff /infobank/tmp/orglist_95a.temp '//
     *                 '/infobank/tmp/orglist_95b.temp')
          call system ('/bin/diff /infobank/tmp/orglist_93.temp '//
     *        '/infobank/programs/keep/organizations.keep')
          call system ('/bin/mv /infobank/tmp/orglist_93.temp '//
     *         '/infobank/programs/keep/organizations.keep')
      call system ('/bin/rm /infobank/tmp/orglist_*.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/html/orglist/orglist.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Nov 4 03:40:49 PST 2013  (chd)