Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- getdevice

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
getdevice
Synopsis
/infobank/programs/share/getdevice.for
Description
  Subroutine to return the type of device with which the input files 

  given to OPENER are associated. 
       
COMMENTS
  If the device type is a tape drive, then the word 'TAPE' is 

  returned. Otherwise, it is assumed to be a disk drive, and the
  word 'DISK' is returned.
    
    
USAGE
  "a" = argument, "r" = referenced, "s" = set

  
  call getdevice                        (with the following arguments)
         DeviceName                  [variable char*(*) a]
         DeviceType                  [variable char*4 s]
  
  input:
      DeviceName = file name given by the user in OPENER
                   character *(*)
      DeviceType = device type, either 'TAPE' or 'DISK' 
                   character * 4
    
    
INCLUDE_FILES
  ($dvidef)           (VMS device informations definitions)

  ($dcdef)            (VMS definitions)
  
    
SUBROUTINES
  lib$getdvi          (VAX/VMS Run-Time routine)    

    
    
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
  Ed Maple  10/06/87  .for

  Clint Steele   2/17/88   Modified for UNIX compatibility
  Clint Steele   12/4/95   Removed VMS references.
                                        Routine now does nothing, but retained
                                        for compatability
  Carolyn Degnan  9/23/04  Added implicit none.

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