


    NAME
	VolName

    SYNOPSIS
	VolName -  get the Volumename of a file  - Requires v37

    INPUTS
	"FILE/A,VOLUME/S,DEVICE/S"

    DESCRIPTION

	VolName gets a filename and evaluates its
	Volumename.

	If VOLUME is selected, we call GetNameFromLock
	and evaluate the Volumename from that string

	If DEVICE is selected, we try to get the
	Devicename instead of the Volumename.

	DEVICE hides VOLUME.

	The resulting string is sent to STDOUT.

     RESULT
	the volumename of the file, or empty string
	if information can not be found
    

	
	    

    NOTES
	* CLI - only

	* should compile with SAS-C
	

    BUGS

	We use 'Lock' to check the file, so an exclusively
	locked or non existant file is not recognized, if
	one of the flags is given.
    

    EXAMPLES

	(we are assuming You use a unmodified Workbench)

	>VolName ENV:Sys
	ENV:

	>VolName ENV:Sys VOLUME
	Ram Disk:

	>VolName ENV:Sys DEVICE
	RAM:
    

    HISTORY

	08-02-95 b_noll created
	11-02-95 b_noll enabled 'DEVICE/S', changed 'PHYSICAL' to 'VOLUME'
	20-02-95 b_noll restructured source
	21-02-95 b_noll added version/format-prefix/offset
	20-03-95 b_noll added args diagnostics
	19-08-95 b_noll created .data file
    

    AUTHOR
	Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
	noll@student.uni-kl.de

