Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- htmlhead

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
htmlhead
Synopsis
/infobank/programs/share/htmlhead.for
Description
  Subroutine to output the current WR MCS standard 

  .html header.
       
AUTHOR
   Clint Steele   3/12/96

    
Added Script
   Sumy Tom       1/22/10

    
Added More Metadata Information
   Sumy Tom       04/29/2010


    
Reads
         read (TempNameUnit, '(q,a)') NameLength, Name
       read (DateUnit, '(q,a)') DateLength, DateString
          read (FormUnit, '(q,a)', end = 99)
     *                   Length, ALine(1:Length)
                read (TempTxtUnit, '(q,a)')TxtLength, TxtName
                read (ListUnit, '(q,a)')ListLineLength, ListLine                
Writes
                  write (OutputUnit, '(a)') 
     *                 ALine(1:Length)
                      write (OutputUnit, 2)
     *                    Title(1:Left-1), 
     *                    Title(Right+1:TempLength)
                      write (OutputUnit, 4)
     *                    Title(1:TitleLength)
                write (OutputUnit, '(a)') ALine(1:IndexOfContent+8) //
     *              Year//Month//Day//ALine(IndexOfContent+9:Length)
                write (OutputUnit, '(a)') ALine(1:Length)               
             write (OutputUnit, '(a)') ALine(1:IndexOfContent+8) //
     *              DateString(1:DateLength)//
     *              ALine(IndexOfContent+9:Length)     
              write (OutputUnit, '(a)') ALine(1:Length)
Opens
         open (unit = TempNameUnit,
     *         access = 'sequential',
     *         file = '/infobank/tmp/htmlhead.name.temp',
     *         form = 'formatted',
     *         status = 'old')
      open (unit = FormUnit,
     *      access = 'sequential',
     *      file = '/infobank/programs/keep/htmlhead.keep',
     *      form = 'formatted',
     *      status = 'old')
      open (unit = DateUnit,
     *      access = 'sequential',
     *      file = DateFileName(1:DateFNLength),
     *      form = 'formatted',
     *      status = 'unknown')
                open (unit = TempTxtUnit,
     *                 access = 'sequential',
     *                 form   = 'formatted',
     *                 status = 'old',
     *                 file = '/infobank/tmp/htmlhead.filename.temp')
                open (unit = ListUnit,
     *              access = 'sequential',
     *              form   = 'formatted',
     *              status = 'old',
     *             file = '/infobank/tmp/htmlhead.list.temp')  
Calls
      call system 
     *   ('/usr/ucb/whoami > /infobank/tmp/htmlhead.name.tem
         call stringlen(Name, NameLength)
      call stringlen (DateFileName, DateFNLength)
      call stringlen (Title, TitleLength)
      call system ('date "+%Y%m%d" > 
     *                     DateFileName(1:DateFNLength))
                call system ('/bin/ls -l '//TxtName (1:TxtLength) // 
     *                     ' > /infobank/tmp/htmlhead.list.tem

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