Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- percentage

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
percentage
Synopsis
/infobank/programs/share/percentage.for
Description
  Subroutine to display percentage of a file used.

       
PROCESS
  VMS symbol LOG_TERM is checked by this subroutine.

  PERCENTAGE will only display the bar graph when:
     LOG_TERM = DEC           (ie: VT100 compatible)
     Process mode is INTERACTIVE
  Under other conditions the program simply returns to the parent 
    program.
  LOG_TERM is a symbol that is set during the DRS LOGIN.COM
   
    
USAGE
  "a" = argument, "r" = referenced, "s" = set

  
  call percentage                       (with the following arguments)
         Unit                        [variable i*4 r]
      
  Input:
    Unit = Input file to be analyzed 
           Note:  If "Unit" = 0  then "percentage chart" is erased.
           Therefore, recommend calling PERCENTAGE (0) at end of 
           every file.
        
    
INCLUDE_FILES
  'drsvt'           (logical name)

          
    
SUBROUTINES
  vescinit            (shared DRS external)         

  getsymbol           (shared DRS external)         
  howlong             (shared DRS external)         
  getmode             (shared DRS external)
        
    
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  6/9/87   .for 

  Jean Riordan  1/15/88  Modified for DRS$SHARE UNIX compatability
  Clint Steele  9/27/88  Changed bar display from blanks to :'s
                         Adjusted 1% computation to handle change in
                           HOWLONG that now returns 100%.
  Clint Steele 11/23/88  Added recognition of BACKGROUND mode.
  Clint Steele 11/23/88  Changed LOG_MODE to CALL GETMODE

    
Reads
Writes
                       write (6, 1) VRevIndex, VRev, 
     *                              Blank(1:Columns), VNone 
Opens
Calls
                  call getmode (Mode)
                      call getsymbol ('TERM', Term, TermLength)   ! UNIX SPEC
                          call howlong (LastUnit, NumberRecords)

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