1 /* BEGIN INCLUDE FILE ... use_totals.incl.pl1 */
  2 /* format: style3 */
  3 
  4 /* Modified Feb 1980 by M. B. Armstrong to implement multiple rate structures. (UNCA)
  5    Modified May 1980 by R. McDonald to include printer page charge, replaces  cpu time in iod. (UNCA)
  6    Modified July 1981 by C. Hornig to eliminate rs_number and master_proj from bin,
  7    -                split it into sub-structures for convenience in conversion,
  8    -                and make version a character string.
  9    Modified August 1981 by T. Casey to put back rs_number in bin.
 10    Modified 1984-08-31 BIM for half-year billing cycles, which is all
 11             that will fit in a segment.
 12 */
 13 
 14 dcl       use_totals_ptr      pointer;
 15 dcl       1 use_totals        based (use_totals_ptr) aligned,
 16             2 meters,
 17               3 generated     fixed bin (71),               /* Time usage data generated. */
 18               3 period_begin  fixed bin (71),               /* Earliest time covered */
 19               3 period_end    fixed bin (71),               /* Latest time */
 20               3 disk_available
 21                               fixed bin (35),               /* Total disk capacity in MULT partition. */
 22               3 disk_left     fixed bin (35),               /* Total disk unused.. */
 23               3 version       char (8),                     /* revision of this include file */
 24               3 pad1          (6) fixed bin,                /* Gross system statistics, determined from answering service meters. */
 25               3 uptime        fixed bin (71),               /* Time system has been on the air. */
 26               3 sys_starts    fixed bin,                    /* Number of bootloads */
 27               3 sys_crash     fixed bin,                    /* Number of crashes */
 28               3 cpu_avail     fixed bin (71),               /* CPU time available. >= uptime by two-cpu time */
 29               3 idle          fixed bin (71),               /* Total idle for all causes */
 30               3 initializer   fixed bin (71),               /* Initializer usage */
 31               3 total_cpu     fixed bin (71),               /* Total VIRTUAL cpu from bins - so get overhead */
 32               3 zidle         fixed bin (71),               /* Total zero idle. */
 33               3 mpidle        fixed bin (71),               /* Total MP idle */
 34               3 pad2          (6) fixed bin (71),           /* variables used while reading answering service meters */
 35               3 zidle_since_boot
 36                               fixed bin (71),               /* Zero idle since boot */
 37               3 mpidle_since_boot
 38                               fixed bin (71),               /* MP idle since boot */
 39               3 time_last_boot
 40                               fixed bin (71),               /* Time of last bootload */
 41               3 time_last_sample
 42                               fixed bin (71),               /* Time of last 15-minute sample */
 43               3 uptime_since_boot
 44                               fixed bin (71),               /* Time system on air since last boot */
 45               3 cpu_avail_since_boot
 46                               fixed bin (71),               /* CPU available since boot */
 47               3 idle_since_boot
 48                               fixed bin (71),               /* Idle time since boot */
 49               3 last_sysid    char (8),                     /* Current system ID */
 50               3 n_users_on    fixed bin,                    /* Users on at last sample */
 51               3 n_stat_gaps   fixed bin,                    /* Number of times we missed getting all data */
 52                                                             /* Statistics by day, for black and white chart. */
 53             2 b_and_w,
 54               3 origin        fixed bin (71),               /* Base time for slot 1 */
 55               3 max_day_log   fixed bin,                    /* Highest used day. */
 56               3 max_qhour     fixed bin,                    /* Highest quarter in highest day */
 57               3 daylog        (190),                        /* array of days. */
 58                 4 qh          (96),                         /* Quarter-hour within the day. */
 59                   5 time      fixed bin (71),               /* Time of sample. */
 60                   5 sysid     char (8),                     /* System ID */
 61                   5 dump_number
 62                               fixed (18) unsigned unaligned,
 63                   5 flags     unaligned,
 64                     6 shutdown
 65                               bit (1),
 66                     6 pad     bit (17),
 67                   5 cpu       fixed bin (5) unsigned unaligned,
 68                   5 nunits    fixed bin (13) unsigned unaligned,
 69                                                             /* Number of load units */
 70                   5 kmem      fixed bin (18) unsigned unaligned,
 71                   5 starttime fixed bin (71),               /* Boot time */
 72                   5 crashtime fixed bin (71),               /* Time of crash */
 73 /**** User-classification info, loaded once a month. defines usage bins. bin 1 is always "other" */
 74             2 bins,
 75               3 ntypes        fixed bin,                    /* Number of valid bins */
 76               3 n_select      fixed bin,                    /* Number of selectors */
 77               3 bin_data      (3258) aligned,
 78                 4 select_proj char (12) aligned,            /* Project ID - same number as in sat */
 79                 4 select_ut   fixed bin,                    /* Bin number for the project */
 80                                                             /* Usage bins for each usage type.  Determined from summarizing the PDT's.
 81    *  Note - bin "use_totals.ut (use_totals.ntypes+1)" is a zeroed bin which can be used to represent non-existent bins.
 82    *         e.g. Last month's use_totals seg has a bin that has been removed from this month's use_totals seg.
 83 */
 84               3 ut            (301),                        /* array usage by project type */
 85                 4 utype       char (24),                    /* Label for usage bin */
 86                 4 dollar_charge
 87                               float bin,                    /* total dollars spent this month */
 88                 4 logins      fixed bin,                    /* number of logins */
 89                 4 crashes     fixed bin,                    /* sessions abnormally terminated */
 90                 4 nproj       fixed bin,                    /* projects in this class */
 91                 4 nusers      fixed bin,                    /* users in this class */
 92                 4 disk_psec   fixed bin (71),               /* Total page-seconds */
 93                 4 disk_quota  fixed bin (35),               /* Total quota */
 94                 4 disk_usage  fixed bin (35),               /* Disk occupancy */
 95                 4 misc        float bin,                    /* Miscellaneous charges */
 96                 4 flag        char (4),                     /* paying categories = "$" */
 97                 4 flag1       char (4),                     /* used to control reporting of categories */
 98                 4 pad1a       (3) fixed bin (35),
 99                 4 rs_number   fixed bin,                    /* rate structure number for all projects in this bin */
100                 4 pad1b       (14) fixed bin (35),
101                 4 interactive (0:7),                        /* interactive use, shifts 0-7 */
102                   5 charge    float bin,                    /* total dollar charge this shift */
103                   5 pad1      fixed bin,
104                   5 cpu       fixed bin (71),               /* cpu usage in microseconds */
105                   5 core      fixed bin (71),               /* core demand in page-microseconds */
106                   5 connect   fixed bin (71),               /* total console time in microseconds */
107                   5 io_ops    fixed bin (71),               /* total terminal i/o ops */
108                 4 absentee    (4),                          /* absentee use, queues 1-4 */
109                   5 charge    float bin,                    /* dollar charge this queue */
110                   5 jobs      fixed bin,                    /* number of jobs submitted */
111                   5 cpu       fixed bin (71),               /* total cpu time in microseconds */
112                   5 memory    fixed bin (71),               /* total memory usage in mu */
113                 4 iod         (4),                          /* io daemon use, queues 1-4 */
114                   5 charge    float bin,                    /* dollar charge this queue */
115                   5 pieces    fixed bin,                    /* pieces of output requested */
116                   5 pad2      fixed bin,
117                   5 pages     fixed bin,                    /* number of pages output */
118                   5 lines     fixed bin (71),               /* total record count of output */
119                 4 devices     (16) float bin;               /* device charges */
120 
121 dcl       USE_TOTALS_VERSION_2
122                               char (8) static options (constant) initial ("usetot_2");
123 dcl       USE_TOTALS_VERSION_3
124                               char (8) static options (constant) initial ("usetot_3");
125 
126 /* END INCLUDE FILE ... use_totals.incl.pl1 */