1 02/27/85  set_tpp, stpp
 2 
 3 Syntax as a command:  stpp directory {-control_args}
 4 
 5 
 6 Function:  prints and modifies the time-page product (tpp) of a
 7 specified directory.  It should be used if the charge_disk command
 8 reports an inconsistency between the total tpp for a project, as
 9 recorded in projfile, and the total tpp for that project, as computed
10 from the tpps of the project's directories.  (This should be done only
11 after it has been determined that the figure in projfile is the correct
12 one, and the tpp of some directory was damaged.)
13 
14 
15 Arguments:
16 directory
17    is the pathname of the directory whose tpp is to be printed or
18    modified.
19 
20 
21 Control arguments:
22 -directory, -dr
23    print or modify the tpp for directory pages.
24 -long, -lg
25    print the current tpp and its equivalent dollar charge, plus the
26    quota, pages used, time tpp last updated, sons logical volume
27    identifier, and quota switch.
28 -print, -pr
29    print the current tpp and its equivalent dollar charge.
30 -segment, -sm
31    print or modify the tpp for segment pages.  This is the default.
32 -set N
33    modify the tpp as specified by N.  See "Notes" below for the
34    possible formats of the N value, and more details on the functioning
35    of the set operation.
36 
37 
38 Notes:  If none of the arguments:  -print, -long, or -set is given,
39 -print is assumed; more than one may be given.
40 
41 The N value given with the -set control argument may be in units of
42 page-seconds or dollars and cents, a leading dollar sign ($) indicating
43 the latter.  Value may be an absolute value or a relative value (i.e.,
44 a change to be applied to the current tpp), a leading plus (+) or minus
45 (-) sign indicating the latter.  When both a dollar sign and a plus or
46 minus sign are given, they may appear in either order.  No blanks may
47 appear between the signs and the numeric value.
48 
49 
50 When an absolute value is given for N, the setting of that value is
51 only approximate.  The equivalent change from the current tpp is
52 computed, and then applied as a change; since the tpp of an active
53 directory is updated frequently by the storage system, the resulting
54 tpp, after this change is applied, is larger than the specified value
55 by the number of page-seconds that have accrued during the execution of
56 the command.  Use of the relative form of the value argument is
57 recommended over the absolute form.
58 
59 When the -set control argument is specified, the size and direction of
60 the change and the (approximate) resulting new value are computed and
61 displayed, in both page-seconds and dollars, and the user is asked if
62 the change should actually be made.  If the answer is yes, the change
63 is made and then the actual resulting new value is printed.