Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- idfirstline

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
idfirstline
Synopsis
/infobank/programs/dbase/validator/idfirstline.for
Description
  Subroutine to verify that an Activity ID start the first, 

  and only the first, record.
       
Reads
          read (TempUnit, '(q,a)', end = 99)
     *         ALineLength, ALine(1:ALineLength)
Writes
           write (Message, 25) InFile(1:InFileLength),
     *           RecordCount,
     *           'Activity ID in filename does not '//
     *           'match Activity ID in directory name'
                      write (Message, 25) InFile(1:InFileLength),
     *                     RecordCount,
     *                     'When only Activity ID on first '//
     *                     'record, no trailing blanks '//
     *                     'are allowed'
                          write (Message, 25) InFile(1:InFileLength),
     *                         RecordCount,
     *                          'for 6 character Acivity IDs, '//
     *                          'columns 7 and 9 must '//
     *                          'always be blank'
                           write (Message, 25) InFile(1:InFileLength),
     *                          RecordCount,
     *                          'for 7 character Acivity IDs, '//
     *                          'columns 8 and 9 must '//
     *                          'always be blank'
                      write (Message, 25) InFile(1:InFileLength),
     *                     RecordCount,
     *                     'Column 10 can not be a blank '//
     *                     'when followed by data'
                  write (Message, 25) InFile(1:InFileLength),
     *                RecordCount,
     *                'Activity ID at start of first record '//
     *                'should not be a hyphenated ID'
                  write (Message, 25) InFile(1:InFileLength),
     *                RecordCount,
     *                'Activity ID at start of record '//
     *                'must be capitalized version of '//
     *                'the Activity ID'
                      write (Message, 25) 
     *                    InFile(1:InFileLength),
     *                    RecordCount,
     *                    'Probable formatting error. '//
     *                    'Activity ID at start of record '//
     *                    'only required on first data record'
Opens
      open (unit   = TempUnit,
     *      access = 'sequential',
     *      form   = 'formatted',
     *      status = 'unknown',
     *      name   = InFile(1:InFileLength))
Calls
          call stringlen (ALine(1:ALineLength), 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/idfirstline.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:37:38 PDT 2013  (chd)