Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- emptytail

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
emptytail
Synopsis
/infobank/programs/dbase/validator/emptytail.for
Description
  Subroutine to verify that the last record of a file is not blank.


       
Reads
          read (TempUnit, '(a1024)', end=99) ALine
Writes
      write (ALine, '(1024x)')
              write (Message, '(a,a,a)')
     *            InFile(1:InFileLength), ' *** ',
     *            'Remove blank line at end of file'
Opens
          open (unit = TempUnit,
     *          access = 'sequential',
     *          form = 'formatted',
     *          status = 'old',
     *          name = '/infobank/tmp/validator.tmp')
Calls
          call system ('tail -1 '//InFile(1:InFileLength)//
     *                 ' > /infobank/tmp/validator.tm
          call stringlen (ALine, ALineLength)

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