Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- starout

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
starout
Synopsis
/infobank/programs/share/starout.for
Description
  Subroutine to allow star-convention filenames for output files.

   
       
USAGE
  "a" = argument, "r" = referenced, "s" = set

  
  call starout                          (with the following arguments)
         InputName                   [variable char*100 r]
         OutputName                  [variable char*100 asr]
    
  where InputName is the name of an existing file
        OutputName is sent to the routine, modified, and returned.
   
    
SUBROUTINES
  changecase          (shared DRS external routine) 

  parsename           (shared DRS external routine)
    
    
FUNCTIONS
  index               (FORTRAN intrinsic function)  

    
    
FILES_USED
  unit=*(write)

  unit=6(write)
    
    
DISCLAIMER
  Although this program has been used by the U.S. Geological Survey,

  no warranty, expressed or implied, is made by the Survey as to the
  accuracy and functioning of the program and related program
  material nor shall the fact of distribution constitute any such
  warranty, and no responsibility is assured by the Survey in
  connection therewith.
          
    
AUTHOR
  Clint Steele    8/18/88    .for

  Clint Steele    9/27/88    Added UNIX file recognition capability.
                             Put PARSENAME into it's on shareable routine.
  Carolyn Degnan  9/23/04    added implicit none.

    
Reads
Writes
      write (6, 40) OutputName(1:60)
Opens
Calls
          call changecase ('CAPITAL', OutputName)
              call parsename (TempName1, 
     *                        InNode, InLengthNode,
     *                        InDevice, InLengthDevice,
     *                        InDirectory, InLengthDirectory,
     *                        InSubDirectory, InLengthSubDir, 
     *                        InSubDirCount, 
     *                        InFileName, InLengthName,
     *                        InFileType, InLengthType,
     *                        InVersion, InLengthVersion)
              call parsename (OutputName, 
     *                        OutNode, OutLengthNode,
     *                        OutDevice, OutLengthDevice,
     *                        OutDirectory, OutLengthDirectory,
     *                        OutSubDirectory, OutLengthSubDir, 
     *                        OutSubDirCount, 
     *                        OutFileName, OutLengthName,
     *                        OutFileType, OutLengthType,
     *                        OutVersion, OutLengthVersion)

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