Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- tabs2columns

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
tabs2columns
Synopsis
/infobank/programs/dbase/ob2items/tabs2columns.for
Description
  Subroutine to replace tabs with spaces.

       
AUTHOR
  Clint Steele     4/11/03


    
Reads
      read (90, '(q,a)', end=99) 
     *     InLineLength, InLine(1:InLineLength)
Writes
          write (OutUnit, '(a,t20,a,t35,a,t45,a,t55,a)')
     *        InLine(Tab(1)+1:Tab(2)-1),
     *        InLine(Tab(2)+1:Tab(3)-1),
     *        InLine(Tab(3)+1:Tab(4)-1),
     *        InLine(Tab(4)+1:Tab(5)-1),
     *        InLine(Tab(5)+1:InLineLength)
          write (OutUnit, '(a,t20,a,t35,a,t45,a)')
     *        InLine(Tab(1)+1:Tab(2)-1),
     *        InLine(Tab(2)+1:Tab(3)-1),
     *        InLine(Tab(3)+1:Tab(4)-1),
     *        InLine(Tab(4)+1:InLineLength)
          write (OutUnit, '(a,t20,a,t35,a)')
     *        InLine(Tab(1)+1:Tab(2)-1),
     *        InLine(Tab(2)+1:Tab(3)-1),
     *        InLine(Tab(3)+1:InLineLength)
          write (OutUnit, '(a,t20,a)')
     *        InLine(Tab(1)+1:Tab(2)-1),
     *        InLine(Tab(2)+1:InLineLength)
          write (OutUnit, '(a)')
     *        InLine(Tab(1)+1:InLineLength)
Opens
      open (unit = 90,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/ob2items.tabs.temp')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/ob2items/item.results')
      open (unit = 92,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/dbase/ob2items/item.unknowns')
Calls

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