HP3000-L Archives

August 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Donna Garverick <[log in to unmask]>
Reply To:
Donna Garverick <[log in to unmask]>
Date:
Mon, 21 Aug 2000 12:33:21 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
> Larry Barnes wrote:
> > Does anyone know if there's a VESOFT or MPE/ix command for
> > checking the capacity of a flat file?  I'm looking for
> > something similar to the "dbsetfullness" command in Vesoft.

to start with something known.....

:listfile command,2
ACCOUNT=  SYS         GROUP=  PUB

FILENAME  CODE  ------------LOGICAL RECORD-----------  ----SPACE----
                  SIZE  TYP        EOF      LIMIT R/B  SECTORS #X MX

COMMAND           128W  FB         512       1023   1      736  3  *


:setvar x (finfo("command","eof"))*100/(finfo("command","limit"))
:showvar x
X = 50

in this example, the file name (command) is hardcoded into the 2 finfo's --
because it's an example.  additionally, a variable is needlessly being set
-- because it's an example :-)

so with a given file set routed to a file (as in: listfile
@[log in to unmask],6>myfile), the input (myfile) can be used in the above equation
*and* placed into an 'if' statement (similarily to what tim just
showed...)                  - d

--
Donna Garverick     Sr. System Programmer
925-210-6631        [log in to unmask]

>>>MY opinions, not Longs Drug Stores'<<<

ATOM RSS1 RSS2