Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- report

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
report
Synopsis
/infobank/programs/dbase/report/report.for
Description
  Program to generate summary reports of InfoBank additions.

       
AUTHOR
  Clint Steele    2/9/2004


    
Reads
          read (5, '(q,a3,1x,a4)') InLength, Month, Year
          read (90, '(q,a)', end = 99)
     *        ALineLength, ALine(1:ALineLength)
          read (92, '(q,a)', end = 98)
     *        ALineLength, ALine(1:ALineLength)
          read (91, '(q,a)', end = 97)
     *        ALineLength, ALine(1:ALineLength)
          read (91, '(q,a)', end = 96)
     *        ALineLength, ALine(1:ALineLength)
          read (90, '(q,a)', end = 95)
     *        ALineLength, ALine(1:ALineLength)
          read (91, '(q,a)', end = 94)
     *        ALineLength, ALine(1:ALineLength)
          read (91, '(q,a)', end = 93)
     *        ALineLength, ALine(1:ALineLength)
          read (91, '(q,a)', end = 92)
     *        ALineLength, ALine(1:ALineLength)
          read (91, '(q,a)', end = 91)
     *        ALineLength, ALine(1:ALineLength)
          read (91, '(q,a)', end = 90)
     *        ALineLength, ALine(1:ALineLength)
          read (91, '(q,a)', end = 89)
     *        ALineLength, ALine(1:ALineLength)
Writes
          write (Command, '(1024x)')
          write (Command, '(a)')
     *        'grep '//Month//
     *        ' /infobank/programs/keep/infobank_files.keep | '//
     *        'grep "'//Year// ' /" | '//
     *        'grep index.html  | '//
     *        'grep -v /infobank/index.html '//
     *        '>&g
     *        '/infobank/programs/dbase/report/report.1'
          write (Command, '(1024x)')
          write (Command, '(a)')
     *        'grep '//Month//
     *        ' /infobank/programs/keep/infobank_files.keep | '//
     *        'grep "'//Year// ' /" | '//
     *        'grep .zip$ '//
     *        '>&g
     *        '/infobank/programs/dbase/report/report.1'
          write (Command, '(1024x)')
          write (Command, '(a)')
     *        'grep '//Month// 
     *        ' /infobank/programs/keep/infobank_files.keep | '//
     *        'grep "'//Year// ' /" | '//
     *        'grep -v .html | '//
     *        'grep -v .fmeta | '//
     *        'grep -v keywords | '//
     *        'grep -v /meta/$ | '//
     *        'grep -v .analog$ | '//
     *        'grep -v .keep$ | '//
     *        'grep -v _file$ | '//
     *        'grep -v _timegap$ | '//
     *        'grep -v _events$ | '//
     *        'grep -v /arc/ | '//
     *        'grep -v /programs/ | '//
     *        'grep -v /$ '//
     *        '>&g
     *        '/infobank/programs/dbase/report/report.1'
              write (91, '(a2,t10,a,t30,a)')
     *            ALine(Slash(4)-2:Slash(4)-1),
     *            ALine(Slash(3)+1:Slash(4)-1),
     *            'new activity'
                write (93, '(a,t20,a)')
     *            ALine(Slash(2)+1:Slash(3)-1),
     *            ALine(Slash(3)+1:ALineLength)
                write (92, '(a,t10,a,t20,a)')
     *            ALine(Slash(4):Slash(5)),
     *            ALine(Slash(3)+1:Slash(4)-1),
     *            ALine(Dot+1:ALineLength)
      write (LastID, '(2x)')
                      write (92, '(a)')
     *                    GazName(Loop)(1:GazNameLength)
                      write (92, '(4x,a,t20,a)')
     *                ALine(10:10)//'-'//
     *                ALine(11:11)//'-'//
     *                ALine(12:13)//'-'//
     *                ALine(14:15),
     *                ALine(20:ALineLength)
                      write (92, '(4x,a,t20,a)')
     *                ALine(10:10)//'-'//
     *                ALine(11:12)//'-'//
     *                ALine(13:14)//'-'//
     *                ALine(15:16),
     *                ALine(20:ALineLength)
      write (LastActivityDir, '(17x)')
      write (OutLine, '(1024x)')
                  write (92, '(a)') OutLine(1:OutLength)
                  write (OutLine, '(1024x)')
              write (92, '(a)') OutLine(1:OutLength)
                  write (OutLine, '(a2,t10,a,t20,a)') 
     *                 ALine(14:15),
     *                 ALine(10:15), ALine(1:9)
                  write (OutLine, '(a2,t10,a,t20,a)')
     *                 ALine(15:16),
     *                 ALine(10:16), ALine(1:9)
      write (92, '(a)') OutLine(1:OutLength)
              write (91, '(a)') ALine(1:ALineLength)
              write (91, '(a,t30,a)')
     *            ALine(1:29),
     *            'added metadata ('//
     *            ALine(30:ALineLength)//
     *            ')'
              write (91, '(a,t30,a)')
     *            ALine(1:29),
     *            ALine(21:Slash(1)-1)//' data'
      write (LastActivityID, '(17x)')
      write (OutLine, '(1024x)')
                  write (92, '(a)') OutLine(1:OutLength)
                  write (OutLine, '(1024x)')
                  write (OutLine, '(a2,t10,a)')
     *                 ALine(14:15),
     *                 ALine(10:15)
                  write (OutLine, '(a2,t10,a)')
     *                 ALine(15:16),
     *                 ALine(10:16)
      write (92, '(a)') OutLine(1:OutLength)
      write (LastID, '(2x)')
                      write (92, '(/,a)')
     *                    GazName(Loop)(1:GazNameLength)
                      write (92, '(4x,a,t20,a)')
     *                ALine(10:10)//'-'//
     *                ALine(11:11)//'-'//
     *                ALine(12:13)//'-'//
     *                ALine(14:15),
     *                ALine(20:ALineLength)
                      write (92, '(4x,a,t20,a)')
     *                ALine(10:10)//'-'//
     *                ALine(11:12)//'-'//
     *                ALine(13:14)//'-'//
     *                ALine(15:16),
     *                ALine(20:ALineLength)
      write (92, '(/,a)')
     *    GazName(Loop)(1:GazNameLength)
              write (93, '(a)')
     *            ALine(Slash(1)+1:Slash(2)-1)
      write (92, '(a)') 
     *     'Created new data management applications: '
          write (92, '(4x,a)')
     *        ALine(1:ALineLength)
          write (92, '(a)') ALine(Comma1+1:Comma2-1)
      write (LastItem, '(255x)')
                  write (92, '(/,a)')
     *                'Analog item additions/modifications to:'
                  write (92, '(4x,i5,2x,a)')
     *                Count, LastItem(1:LastLength-1)
Opens
      open (unit = 90,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.2')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.3')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.4')
      open (unit = 93,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.8')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/keep/gazette.keep')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.5')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.6')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.7')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.10')
      open (unit = 90,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.14')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.15')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.16')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.17')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.17')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.18')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.9')
      open (unit = 93,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.20') 
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.21')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.22')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.19')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.23')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.25')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/report/report.24')
Calls
      call system (
     *    '/bin/rm /infobank/programs/dbase/report/report.1')
          call stringlen (Command, CommandLength)
          call system (Command(1:CommandLength))
          call stringlen (Command, CommandLength)
          call system (Command(1:CommandLength)) 
          call stringlen (Command, CommandLength)
          call system (Command(1:CommandLength))
      call system ('/bin/sort -k 4 '//
     *    '/infobank/programs/dbase/report/report.1 > 
     *    '/infobank/programs/dbase/report/report.2')
      call system ('/bin/sort '//
     *    '/infobank/programs/dbase/report/report.4 > 
     *    '/infobank/programs/dbase/report/report.7')
      call system ('/bin/sort '//
     *    '/infobank/programs/dbase/report/report.8 > 
     *    '/infobank/programs/dbase/report/report.9')
      call system ('/bin/sort '//
     *    '/infobank/programs/dbase/report/report.3 > 
     *    '/infobank/programs/dbase/report/report.5')
          call changecase ('SMALLS', GazID(GazCount))
                      call stringlen (GazName(Loop), GazNameLength)
                  call changecase ('CAPITALS', ALine(10:16))
              call stringlen (OutLine, OutLength)
      call system ('grep /meta/ '//
     *    '/infobank/programs/dbase/report/report.10 | '//
     *    'sort -k 1.1,1.2 -k 1.30,1.255 -k 1.10,1.29 > 
     *    '/infobank/programs/dbase/report/report.11')
      call system ('grep -v /meta/ '//
     *    '/infobank/programs/dbase/report/report.10 | '//
     *    'sort -k 1.1,1.2 -k 1.30,1.255 -k 1.10,1.29 > 
     *    '/infobank/programs/dbase/report/report.12')  
      call system ('cat '//
     *    '/infobank/programs/dbase/report/report.5 '//
     *    '/infobank/programs/dbase/report/report.11 '//
     *    '/infobank/programs/dbase/report/report.12 > 
     *    '/infobank/programs/dbase/report/report.13')
      call system ('sort -k 1.1,1.2 -k 1.30,1.512 -k 1.10,1.29 '//
     *    '/infobank/programs/dbase/report/report.13 > 
     *    '/infobank/programs/dbase/report/report.14')
      call system ('sort -k 1.1,1.2 -k 1.10,1.16 -k 1.30,1.255 '//
     *    '/infobank/programs/dbase/report/report.15 > 
     *    '/infobank/programs/dbase/report/report.16')
                  call stringlen (OutLine, OutLength)
              call stringlen (OutLine, OutLength)
      call stringlen (OutLine, OutLength)
                      call stringlen (GazName(Loop), GazNameLength)
                  call changecase ('CAPITALS', ALine(10:16))
      call stringlen (GazName(Loop), GazNameLength)
      call system ('/bin/rm /infobank/programs/dbase/report/report.19')
              call system ('grep "^  Location" '//
     *            '/infobank2/items/'//
     *            ALine(20:ALineLength)//
     *            ' >> /infobank/programs/dbase/report/repor
      call system ('sort -u '//
     *    '/infobank/programs/dbase/report/report.20 > 
     *    '/infobank/programs/dbase/report/report.21')
      call system ('sort '//
     *    '/infobank/programs/dbase/report/report.23 > 
     *    '/infobank/programs/dbase/report/report.25')
                  call stringlen (LastItem, LastLength)
      call system ('cat '//
     *    '/infobank/programs/dbase/report/report.22 '//
     *    '/infobank/programs/dbase/report/report.24 '//
     *    '/infobank/programs/dbase/report/report.18 > 
     *    '/infobank/programs/dbase/report/report.99')

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