ICL 1900 Series George 3 Operating System Commands

HOWBIG (HB)

Function

To enable the size of a file, or the total of files in a directory or directory tree, to be obtained efficiently.
(Mend Exchange Scheme modification M263).

Format

  1. HOWBIG file description
  2. HOWBIG directory file description,<option>
    where <option> indicates whch total is required:-
    ONLY - Only the specified directory
    ALL - This and all inferiors
    FILE - The directory itself, regarded as a terminal file
    If the <option> parameter is not present the total is of this directory and inferior pseudo-users, that is files 'owned' by this user.

Forbidden contexts

NOUSER

Execution

  1. This is for a terminal file and replies message '  BLOCKS', where is a 7-digit decimal value with leading zeroes suppressed. If the file is open for writing, the current size is given. For a multifile, the total size is shown.

  2. This format is assumed if the specified file is a directory. If the first parameter is absent or empty, it is taken as :%;CURDIR;. The total size of files in the directory is calculated, omitting temporary and to-be-erased files. Files open for writing are counted at the size in the directory entry, usually zero.

SETPARAM feature: FSIZE(parameter list) may be used in a SETPARAM expression. parameter list is as for either format above, except that the comma must be given for an empty parameter list. The value returned is the numerical block count only.

Examples

HB :%Z
HB :LIB,FILE
HB ! DP 0,"TOTAL FILESTORE SIZE IS %;FSIZE(:MANAGER,ALL); BLOCKS"
SP X,FSIZE(:USERA.FILEB)