Create_Volume subroutine

Creates or updates a volume definition, adding a row to SYSPTRS (the system table that stores volume definitions), or modifying the row if it exists.

Create_Volume( volume_name , filing_system, location, control_location, status)

The Create_Volume subroutine has the following parameters.

ParameterDescription
volume_nameKey to row in SYSPTRS, containing the volume definition
filing_systemValue mark delimited list of filing system(s) associated with this volume.
locationDirectory containing the files to be created using this volume, if the files are stored in a directory.
control_locationDirectory containing control files associated with this volume.
statusError return, returned as null. Use Get_Status() to determine if an error occurred.
declare subroutine create_volume, fsmsg

declare function get_status

/*  create volume named My_Vol in C:\Datafolder, storing linear hash files.  */

create_volume("MY_VOL","RTP57",'C:\Datafolder','','')

if get_status(errcode) then

   fsmsg()

   return 1

end

 
**
**
 
 
  • guides/programming/programmers_reference_manual/create_volume.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1