?? NEWTITLE := 'NOS/VE Job Scheduling : administer_service_class' ??
MODULE jmm$administer_service_class;
?? RIGHT := 110 ??

{ PURPOSE:
{   This module defines the commands that make up the subutility of
{   ADMINISTER_SCHEDULING called ADMINISTER_SERVICE_CLASS.  This utility
{   manages the service classes on the scheduling profile.  The procedures
{   in this module allow the administrator to create, change, delete
{   and display service classes on/from the scheduling profile.
{
{ DESIGN:
{   This module mainly provides the framework for the utility.  It
{   contains the PDTs and code for the subutility and its subcommands.
{
{ NOTES:
{   Most of the work of creating, deleting, changing, and displaying is
{   done in routines which are generalized to handle all types of objects.
{   These routines can be found in the modules JMM$ADMINISTER_DISPLAY and
{   JMM$ADMINISTER_OBJECTS.

?? NEWTITLE := 'Global Declarations Referenced by This Module', EJECT ??
?? PUSH (LISTEXT := ON) ??
*copyc jmc$maximum_job_count
*copyc jmt$default_and_range_parameter
*copyc jmt$job_priority
*copyc jmt$service_class_attributes
?? POP ??
*copyc clp$begin_utility
*copyc clp$end_include
*copyc clp$end_utility
*copyc clp$include_file
*copyc clp$evaluate_parameters
*copyc jmp$add_object
*copyc jmp$change_object
*copyc jmp$delete_object
*copyc jmp$get_attributes
*copyc jmp$get_object_list
*copyc jmp$set_default_attributes

*copyc jmv$current_profile_level
?? OLDTITLE ??
?? NEWTITLE := 'Global Declarations Declared by This Module', EJECT ??

  CONST
    milliseconds_per_second = 1000,
    microseconds_per_millisecond = 1000,
    microseconds_per_second = milliseconds_per_second *
          microseconds_per_millisecond;

  CONST
    lowest_service_limit = jmc$lowest_service_limit DIV
          microseconds_per_millisecond,
    highest_service_limit = jmc$highest_service_limit DIV
          microseconds_per_millisecond,
    lowest_prio_age_interval = jmc$lowest_prio_age_interval DIV
          microseconds_per_second,
    highest_prio_age_interval = jmc$highest_prio_age_interval DIV
          microseconds_per_second;

  VAR
    command_file: amt$local_file_name := clc$current_command_input,
    utility_name: string (31) := 'ADMINISTER_SERVICE_CLASS       ',
    utility_attributes: array [1 .. 2] of clt$utility_attribute :=
          [[clc$utility_command_table, * ], [clc$utility_prompt, [3, 'ASC']]];

{ table command_table
{ command (create_class, crec), jmp$_create_class
{ command (change_attribute, change_attributes, chaa), jmp$_change_attribute
{ command (display_attribute, display_attributes, disa), ..
{   jmp$_display_service_class cm=xref
{ command (delete_class, delc), jmp$_delete_class
{ command (quit, qui), jmp$_quit
{ tablend

?? PUSH (LISTEXT := ON) ??

  VAR
    command_table: [STATIC, READ] ^clt$command_table := ^command_table_entries,

    command_table_entries: [STATIC, READ] array [1 .. 12] of
          clt$command_table_entry := [
          {} ['CHAA                           ', clc$abbreviation_entry,
          clc$advertised_entry, 2, clc$automatically_log, clc$linked_call,
          ^jmp$_change_attribute],
          {} ['CHANGE_ATTRIBUTE               ', clc$nominal_entry,
          clc$advertised_entry, 2, clc$automatically_log, clc$linked_call,
          ^jmp$_change_attribute],
          {} ['CHANGE_ATTRIBUTES              ', clc$alias_entry,
          clc$advertised_entry, 2, clc$automatically_log, clc$linked_call,
          ^jmp$_change_attribute],
          {} ['CREATE_CLASS                   ', clc$nominal_entry,
          clc$advertised_entry, 1, clc$automatically_log, clc$linked_call,
          ^jmp$_create_class],
          {} ['CREC                           ', clc$abbreviation_entry,
          clc$advertised_entry, 1, clc$automatically_log, clc$linked_call,
          ^jmp$_create_class],
          {} ['DELC                           ', clc$abbreviation_entry,
          clc$advertised_entry, 4, clc$automatically_log, clc$linked_call,
          ^jmp$_delete_class],
          {} ['DELETE_CLASS                   ', clc$nominal_entry,
          clc$advertised_entry, 4, clc$automatically_log, clc$linked_call,
          ^jmp$_delete_class],
          {} ['DISA                           ', clc$abbreviation_entry,
          clc$advertised_entry, 3, clc$automatically_log, clc$linked_call,
          ^jmp$_display_service_class],
          {} ['DISPLAY_ATTRIBUTE              ', clc$nominal_entry,
          clc$advertised_entry, 3, clc$automatically_log, clc$linked_call,
          ^jmp$_display_service_class],
          {} ['DISPLAY_ATTRIBUTES             ', clc$alias_entry,
          clc$advertised_entry, 3, clc$automatically_log, clc$linked_call,
          ^jmp$_display_service_class],
          {} ['QUI                            ', clc$abbreviation_entry,
          clc$advertised_entry, 5, clc$automatically_log, clc$linked_call,
          ^jmp$_quit],
          {} ['QUIT                           ', clc$nominal_entry,
          clc$advertised_entry, 5, clc$automatically_log, clc$linked_call,
          ^jmp$_quit]];

  PROCEDURE [XREF] jmp$_display_service_class
    (    parameter_list: clt$parameter_list;
     VAR status: ost$status);

?? POP ??
?? OLDTITLE ??
?? NEWTITLE := 'jmp$_change_attribute ', EJECT ??

{ PURPOSE:
{   Processes the CHANGE_ATTRIBUTE command.
{
{ DESIGN:
{   Determines the service class objects to update, fetches the attributes that
{   are changing and updates them.
{
{ NOTES:
{  See JMM$ADMINISTER_OBJECTS.

  PROCEDURE jmp$_change_attribute
    (    parameter_list: clt$parameter_list;
     VAR status: ost$status);

{ PROCEDURE (osm$admsc_chaa) change_attribute (
{   class_name, class_names, cn: any of
{       key
{         all
{       keyend
{       list of name
{     anyend = $current_service_class
{   abbreviation, a: (BY_NAME) any of
{       key
{         default, unspecified, none
{       keyend
{       name
{     anyend = $optional
{   aio_limit, aiol: (BY_NAME) any of
{       key
{         default
{       keyend
{       integer jmc$lowest_aio_limit..jmc$highest_aio_limit
{     anyend = $optional
{   attempt_preemption, ap: (BY_NAME) any of
{       key
{         default
{       keyend
{       boolean
{     anyend = $optional
{   class_service_threshold, cst: (BY_NAME) any of
{       key
{         default, unlimited
{       keyend
{       integer jmc$lowest_service_accumulator..jmc$highest_service_accumulator
{     anyend = $optional
{   dispatching_control, dc: (BY_NAME) any of
{       key
{         default
{       keyend
{       list 1..5 of record
{         dispatching_priority: any of
{           key
{             default, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10
{           keyend
{           integer 1..10
{         anyend
{         service_time: any of
{           key
{             unlimited
{           keyend
{           integer lowest_service_limit..highest_service_limit
{         anyend = $optional
{         minor_timeslice: any of
{           key
{             default
{           keyend
{           integer jmc$lowest_task_time_slice..jmc$highest_task_time_slice
{         anyend = $optional
{         major_timeslice: any of
{           key
{             default
{           keyend
{           integer jmc$lowest_task_time_slice..jmc$highest_task_time_slice
{         anyend = $optional
{       recend
{     anyend = $optional
{   enable_class_execution, ece: (BY_NAME) any of
{       key
{         default
{       keyend
{       boolean
{     anyend = $optional
{   guaranteed_service_quantum, gsq: (BY_NAME) any of
{       key
{         default, unlimited
{       keyend
{       integer jmc$lowest_service_accumulator..jmc$highest_service_accumulator
{     anyend = $optional
{   long_wait_think_time, lwtt: (BY_NAME) any of
{       key
{         default
{       keyend
{       integer jmc$low_long_wait_think_time..jmc$high_long_wait_think_time
{     anyend = $optional
{   maximum_active_jobs, maxaj: (BY_NAME) any of
{       key
{         default, unlimited
{       keyend
{       integer jmc$lowest_maximum_active_jobs..jmc$highest_maximum_active_jobs
{     anyend = $optional
{   next_service_class, nsc: (BY_NAME) any of
{       key
{         default, none
{       keyend
{       name
{     anyend = $optional
{   scheduling_priority, sp: (BY_NAME) any of
{       key
{         default
{       keyend
{       record
{         minimum: any of
{           key
{             default
{           keyend
{           integer jmc$lowest_job_priority..jmc$highest_job_priority
{         anyend = $optional
{         maximum: any of
{           key
{             default
{           keyend
{           integer jmc$lowest_job_priority..jmc$highest_job_priority
{         anyend = $optional
{         swap_age_increment: any of
{           key
{             default
{           keyend
{           integer jmc$lowest_job_priority..jmc$highest_job_priority
{         anyend = $optional
{         ready_task_increment: any of
{           key
{             default
{           keyend
{           integer jmc$lowest_job_priority..jmc$highest_job_priority
{         anyend = $optional
{       recend
{     anyend = $optional
{   service_factors, sf: (BY_NAME) any of
{       key
{         default
{       keyend
{       record
{         cpu: any of
{           key
{             default
{           keyend
{           integer jmc$lowest_service_factor_value..jmc$highest_service_factor_valu
{         anyend = $optional
{         memory: any of
{           key
{             default
{           keyend
{           integer jmc$lowest_service_factor_value..jmc$highest_service_factor_valu
{         anyend = $optional
{         residence: any of
{           key
{             default
{           keyend
{           integer jmc$lowest_service_factor_value..jmc$highest_service_factor_valu
{         anyend = $optional
{         io: any of
{           key
{             default
{           keyend
{           integer jmc$lowest_service_factor_value..jmc$highest_service_factor_valu
{         anyend = $optional
{       recend
{     anyend = $optional
{   swap_age_interval, sai: (BY_NAME) any of
{       key
{         default, unlimited
{       keyend
{       integer lowest_prio_age_interval..highest_prio_age_interval
{     anyend = $optional
{   swap_jobs_in_longwait, sjil: (BY_NAME) any of
{       key
{         default
{       keyend
{       boolean
{     anyend = $optional
{   status)

?? PUSH (LISTEXT := ON) ??
?? FMT (FORMAT := OFF) ??

  VAR
    pdt: [STATIC, READ, cls$declaration_section] record
      header: clt$pdt_header,
      names: array [1 .. 32] of clt$pdt_parameter_name,
      parameters: array [1 .. 16] of clt$pdt_parameter,
      type1: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 1] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$list_type_qualifier_v2,
          element_type_spec: record
            header: clt$type_specification_header,
            qualifier: clt$name_type_qualifier,
          recend,
        recend,
        default_value: string (22),
      recend,
      type2: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 3] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$name_type_qualifier,
        recend,
      recend,
      type3: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 1] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$integer_type_qualifier,
        recend,
      recend,
      type4: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 1] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
        recend,
      recend,
      type5: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 2] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$integer_type_qualifier,
        recend,
      recend,
      type6: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 1] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$list_type_qualifier_v2,
          element_type_spec: record
            header: clt$type_specification_header,
            qualifier: clt$record_type_qualifier,
            field_spec_1: clt$field_specification,
            element_type_spec_1: record
              header: clt$type_specification_header,
              qualifier: clt$union_type_qualifier,
              type_size_1: clt$type_specification_size,
              element_type_spec_1: record
                header: clt$type_specification_header,
                qualifier: clt$keyword_type_qualifier,
                keyword_specs: array [1 .. 11] of clt$keyword_specification,
              recend,
              type_size_2: clt$type_specification_size,
              element_type_spec_2: record
                header: clt$type_specification_header,
                qualifier: clt$integer_type_qualifier,
              recend,
            recend,
            field_spec_2: clt$field_specification,
            element_type_spec_2: record
              header: clt$type_specification_header,
              qualifier: clt$union_type_qualifier,
              type_size_1: clt$type_specification_size,
              element_type_spec_1: record
                header: clt$type_specification_header,
                qualifier: clt$keyword_type_qualifier,
                keyword_specs: array [1 .. 1] of clt$keyword_specification,
              recend,
              type_size_2: clt$type_specification_size,
              element_type_spec_2: record
                header: clt$type_specification_header,
                qualifier: clt$integer_type_qualifier,
              recend,
            recend,
            field_spec_3: clt$field_specification,
            element_type_spec_3: record
              header: clt$type_specification_header,
              qualifier: clt$union_type_qualifier,
              type_size_1: clt$type_specification_size,
              element_type_spec_1: record
                header: clt$type_specification_header,
                qualifier: clt$keyword_type_qualifier,
                keyword_specs: array [1 .. 1] of clt$keyword_specification,
              recend,
              type_size_2: clt$type_specification_size,
              element_type_spec_2: record
                header: clt$type_specification_header,
                qualifier: clt$integer_type_qualifier,
              recend,
            recend,
            field_spec_4: clt$field_specification,
            element_type_spec_4: record
              header: clt$type_specification_header,
              qualifier: clt$union_type_qualifier,
              type_size_1: clt$type_specification_size,
              element_type_spec_1: record
                header: clt$type_specification_header,
                qualifier: clt$keyword_type_qualifier,
                keyword_specs: array [1 .. 1] of clt$keyword_specification,
              recend,
              type_size_2: clt$type_specification_size,
              element_type_spec_2: record
                header: clt$type_specification_header,
                qualifier: clt$integer_type_qualifier,
              recend,
            recend,
          recend,
        recend,
      recend,
      type7: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 1] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
        recend,
      recend,
      type8: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 2] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$integer_type_qualifier,
        recend,
      recend,
      type9: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 1] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$integer_type_qualifier,
        recend,
      recend,
      type10: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 2] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$integer_type_qualifier,
        recend,
      recend,
      type11: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 2] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$name_type_qualifier,
        recend,
      recend,
      type12: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 1] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$record_type_qualifier,
          field_spec_1: clt$field_specification,
          element_type_spec_1: record
            header: clt$type_specification_header,
            qualifier: clt$union_type_qualifier,
            type_size_1: clt$type_specification_size,
            element_type_spec_1: record
              header: clt$type_specification_header,
              qualifier: clt$keyword_type_qualifier,
              keyword_specs: array [1 .. 1] of clt$keyword_specification,
            recend,
            type_size_2: clt$type_specification_size,
            element_type_spec_2: record
              header: clt$type_specification_header,
              qualifier: clt$integer_type_qualifier,
            recend,
          recend,
          field_spec_2: clt$field_specification,
          element_type_spec_2: record
            header: clt$type_specification_header,
            qualifier: clt$union_type_qualifier,
            type_size_1: clt$type_specification_size,
            element_type_spec_1: record
              header: clt$type_specification_header,
              qualifier: clt$keyword_type_qualifier,
              keyword_specs: array [1 .. 1] of clt$keyword_specification,
            recend,
            type_size_2: clt$type_specification_size,
            element_type_spec_2: record
              header: clt$type_specification_header,
              qualifier: clt$integer_type_qualifier,
            recend,
          recend,
          field_spec_3: clt$field_specification,
          element_type_spec_3: record
            header: clt$type_specification_header,
            qualifier: clt$union_type_qualifier,
            type_size_1: clt$type_specification_size,
            element_type_spec_1: record
              header: clt$type_specification_header,
              qualifier: clt$keyword_type_qualifier,
              keyword_specs: array [1 .. 1] of clt$keyword_specification,
            recend,
            type_size_2: clt$type_specification_size,
            element_type_spec_2: record
              header: clt$type_specification_header,
              qualifier: clt$integer_type_qualifier,
            recend,
          recend,
          field_spec_4: clt$field_specification,
          element_type_spec_4: record
            header: clt$type_specification_header,
            qualifier: clt$union_type_qualifier,
            type_size_1: clt$type_specification_size,
            element_type_spec_1: record
              header: clt$type_specification_header,
              qualifier: clt$keyword_type_qualifier,
              keyword_specs: array [1 .. 1] of clt$keyword_specification,
            recend,
            type_size_2: clt$type_specification_size,
            element_type_spec_2: record
              header: clt$type_specification_header,
              qualifier: clt$integer_type_qualifier,
            recend,
          recend,
        recend,
      recend,
      type13: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 1] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$record_type_qualifier,
          field_spec_1: clt$field_specification,
          element_type_spec_1: record
            header: clt$type_specification_header,
            qualifier: clt$union_type_qualifier,
            type_size_1: clt$type_specification_size,
            element_type_spec_1: record
              header: clt$type_specification_header,
              qualifier: clt$keyword_type_qualifier,
              keyword_specs: array [1 .. 1] of clt$keyword_specification,
            recend,
            type_size_2: clt$type_specification_size,
            element_type_spec_2: record
              header: clt$type_specification_header,
              qualifier: clt$integer_type_qualifier,
            recend,
          recend,
          field_spec_2: clt$field_specification,
          element_type_spec_2: record
            header: clt$type_specification_header,
            qualifier: clt$union_type_qualifier,
            type_size_1: clt$type_specification_size,
            element_type_spec_1: record
              header: clt$type_specification_header,
              qualifier: clt$keyword_type_qualifier,
              keyword_specs: array [1 .. 1] of clt$keyword_specification,
            recend,
            type_size_2: clt$type_specification_size,
            element_type_spec_2: record
              header: clt$type_specification_header,
              qualifier: clt$integer_type_qualifier,
            recend,
          recend,
          field_spec_3: clt$field_specification,
          element_type_spec_3: record
            header: clt$type_specification_header,
            qualifier: clt$union_type_qualifier,
            type_size_1: clt$type_specification_size,
            element_type_spec_1: record
              header: clt$type_specification_header,
              qualifier: clt$keyword_type_qualifier,
              keyword_specs: array [1 .. 1] of clt$keyword_specification,
            recend,
            type_size_2: clt$type_specification_size,
            element_type_spec_2: record
              header: clt$type_specification_header,
              qualifier: clt$integer_type_qualifier,
            recend,
          recend,
          field_spec_4: clt$field_specification,
          element_type_spec_4: record
            header: clt$type_specification_header,
            qualifier: clt$union_type_qualifier,
            type_size_1: clt$type_specification_size,
            element_type_spec_1: record
              header: clt$type_specification_header,
              qualifier: clt$keyword_type_qualifier,
              keyword_specs: array [1 .. 1] of clt$keyword_specification,
            recend,
            type_size_2: clt$type_specification_size,
            element_type_spec_2: record
              header: clt$type_specification_header,
              qualifier: clt$integer_type_qualifier,
            recend,
          recend,
        recend,
      recend,
      type14: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 2] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
          qualifier: clt$integer_type_qualifier,
        recend,
      recend,
      type15: record
        header: clt$type_specification_header,
        qualifier: clt$union_type_qualifier,
        type_size_1: clt$type_specification_size,
        element_type_spec_1: record
          header: clt$type_specification_header,
          qualifier: clt$keyword_type_qualifier,
          keyword_specs: array [1 .. 1] of clt$keyword_specification,
        recend,
        type_size_2: clt$type_specification_size,
        element_type_spec_2: record
          header: clt$type_specification_header,
        recend,
      recend,
      type16: record
        header: clt$type_specification_header,
      recend,
    recend := [
    [1,
    [106, 8, 18, 19, 29, 6, 88],
    clc$command, 32, 16, 0, 0, 0, 0, 16, 'OSM$ADMSC_CHAA'], [
    ['A                              ',clc$abbreviation_entry, 2],
    ['ABBREVIATION                   ',clc$nominal_entry, 2],
    ['AIOL                           ',clc$abbreviation_entry, 3],
    ['AIO_LIMIT                      ',clc$nominal_entry, 3],
    ['AP                             ',clc$abbreviation_entry, 4],
    ['ATTEMPT_PREEMPTION             ',clc$nominal_entry, 4],
    ['CLASS_NAME                     ',clc$nominal_entry, 1],
    ['CLASS_NAMES                    ',clc$alias_entry, 1],
    ['CLASS_SERVICE_THRESHOLD        ',clc$nominal_entry, 5],
    ['CN                             ',clc$abbreviation_entry, 1],
    ['CST                            ',clc$abbreviation_entry, 5],
    ['DC                             ',clc$abbreviation_entry, 6],
    ['DISPATCHING_CONTROL            ',clc$nominal_entry, 6],
    ['ECE                            ',clc$abbreviation_entry, 7],
    ['ENABLE_CLASS_EXECUTION         ',clc$nominal_entry, 7],
    ['GSQ                            ',clc$abbreviation_entry, 8],
    ['GUARANTEED_SERVICE_QUANTUM     ',clc$nominal_entry, 8],
    ['LONG_WAIT_THINK_TIME           ',clc$nominal_entry, 9],
    ['LWTT                           ',clc$abbreviation_entry, 9],
    ['MAXAJ                          ',clc$abbreviation_entry, 10],
    ['MAXIMUM_ACTIVE_JOBS            ',clc$nominal_entry, 10],
    ['NEXT_SERVICE_CLASS             ',clc$nominal_entry, 11],
    ['NSC                            ',clc$abbreviation_entry, 11],
    ['SAI                            ',clc$abbreviation_entry, 14],
    ['SCHEDULING_PRIORITY            ',clc$nominal_entry, 12],
    ['SERVICE_FACTORS                ',clc$nominal_entry, 13],
    ['SF                             ',clc$abbreviation_entry, 13],
    ['SJIL                           ',clc$abbreviation_entry, 15],
    ['SP                             ',clc$abbreviation_entry, 12],
    ['STATUS                         ',clc$nominal_entry, 16],
    ['SWAP_AGE_INTERVAL              ',clc$nominal_entry, 14],
    ['SWAP_JOBS_IN_LONGWAIT          ',clc$nominal_entry, 15]],
    [
{ PARAMETER 1
    [7, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name, clc$specify_positionally],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 85,
  clc$optional_default_parameter, 0, 22],
{ PARAMETER 2
    [2, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 143,
  clc$optional_parameter, 0, 0],
{ PARAMETER 3
    [4, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 84, clc$optional_parameter,
  0, 0],
{ PARAMETER 4
    [6, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 67, clc$optional_parameter,
  0, 0],
{ PARAMETER 5
    [9, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 121,
  clc$optional_parameter, 0, 0],
{ PARAMETER 6
    [13, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 937,
  clc$optional_parameter, 0, 0],
{ PARAMETER 7
    [15, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 67, clc$optional_parameter,
  0, 0],
{ PARAMETER 8
    [17, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 121,
  clc$optional_parameter, 0, 0],
{ PARAMETER 9
    [18, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 84, clc$optional_parameter,
  0, 0],
{ PARAMETER 10
    [21, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 121,
  clc$optional_parameter, 0, 0],
{ PARAMETER 11
    [22, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 106,
  clc$optional_parameter, 0, 0],
{ PARAMETER 12
    [25, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 551,
  clc$optional_parameter, 0, 0],
{ PARAMETER 13
    [26, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 551,
  clc$optional_parameter, 0, 0],
{ PARAMETER 14
    [31, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 121,
  clc$optional_parameter, 0, 0],
{ PARAMETER 15
    [32, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_value, clc$immediate_evaluation, clc$standard_parameter_checking, 67, clc$optional_parameter,
  0, 0],
{ PARAMETER 16
    [30, clc$normal_usage_entry, clc$non_secure_parameter,
    $clt$parameter_spec_methods[clc$specify_by_name],
    clc$pass_by_reference, clc$immediate_evaluation, clc$standard_parameter_checking, 3,
  clc$optional_parameter, 0, 0]],
{ PARAMETER 1
    [[1, 0, clc$union_type], [[clc$keyword_type, clc$list_type],
    FALSE, 2],
    44, [[1, 0, clc$keyword_type], [1], [
      ['ALL                            ', clc$nominal_entry, clc$normal_usage_entry, 1]]
      ],
    21, [[1, 0, clc$list_type], [5, 1, clc$max_list_size, 0, FALSE, FALSE],
        [[1, 0, clc$name_type], [1, osc$max_name_size]]
      ]
    ,
    '$current_service_class'],
{ PARAMETER 2
    [[1, 0, clc$union_type], [[clc$keyword_type, clc$name_type],
    FALSE, 2],
    118, [[1, 0, clc$keyword_type], [3], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1],
      ['NONE                           ', clc$nominal_entry, clc$normal_usage_entry, 3],
      ['UNSPECIFIED                    ', clc$nominal_entry, clc$normal_usage_entry, 2]]
      ],
    5, [[1, 0, clc$name_type], [1, osc$max_name_size]]
    ],
{ PARAMETER 3
    [[1, 0, clc$union_type], [[clc$integer_type, clc$keyword_type],
    FALSE, 2],
    44, [[1, 0, clc$keyword_type], [1], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
      ],
    20, [[1, 0, clc$integer_type], [jmc$lowest_aio_limit, jmc$highest_aio_limit, 10]]
    ],
{ PARAMETER 4
    [[1, 0, clc$union_type], [[clc$boolean_type, clc$keyword_type],
    FALSE, 2],
    44, [[1, 0, clc$keyword_type], [1], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
      ],
    3, [[1, 0, clc$boolean_type]]
    ],
{ PARAMETER 5
    [[1, 0, clc$union_type], [[clc$integer_type, clc$keyword_type],
    FALSE, 2],
    81, [[1, 0, clc$keyword_type], [2], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1],
      ['UNLIMITED                      ', clc$nominal_entry, clc$normal_usage_entry, 2]]
      ],
    20, [[1, 0, clc$integer_type], [jmc$lowest_service_accumulator, jmc$highest_service_accumulator, 10]]
    ],
{ PARAMETER 6
    [[1, 0, clc$union_type], [[clc$keyword_type, clc$list_type],
    FALSE, 2],
    44, [[1, 0, clc$keyword_type], [1], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
      ],
    873, [[1, 0, clc$list_type], [857, 1, 5, 0, FALSE, FALSE],
        [[1, 0, clc$record_type], [4],
        ['DISPATCHING_PRIORITY           ', clc$required_field, 454], [[1, 0, clc$union_type], [[
          clc$integer_type, clc$keyword_type],
          FALSE, 2],
          414, [[1, 0, clc$keyword_type], [11], [
            ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1],
            ['P1                             ', clc$nominal_entry, clc$normal_usage_entry, 2],
            ['P10                            ', clc$nominal_entry, clc$normal_usage_entry, 11],
            ['P2                             ', clc$nominal_entry, clc$normal_usage_entry, 3],
            ['P3                             ', clc$nominal_entry, clc$normal_usage_entry, 4],
            ['P4                             ', clc$nominal_entry, clc$normal_usage_entry, 5],
            ['P5                             ', clc$nominal_entry, clc$normal_usage_entry, 6],
            ['P6                             ', clc$nominal_entry, clc$normal_usage_entry, 7],
            ['P7                             ', clc$nominal_entry, clc$normal_usage_entry, 8],
            ['P8                             ', clc$nominal_entry, clc$normal_usage_entry, 9],
            ['P9                             ', clc$nominal_entry, clc$normal_usage_entry, 10]]
            ],
          20, [[1, 0, clc$integer_type], [1, 10, 10]]
          ],
        ['SERVICE_TIME                   ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
          clc$integer_type, clc$keyword_type],
          FALSE, 2],
          44, [[1, 0, clc$keyword_type], [1], [
            ['UNLIMITED                      ', clc$nominal_entry, clc$normal_usage_entry, 1]]
            ],
          20, [[1, 0, clc$integer_type], [lowest_service_limit, highest_service_limit, 10]]
          ],
        ['MINOR_TIMESLICE                ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
          clc$integer_type, clc$keyword_type],
          FALSE, 2],
          44, [[1, 0, clc$keyword_type], [1], [
            ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
            ],
          20, [[1, 0, clc$integer_type], [jmc$lowest_task_time_slice, jmc$highest_task_time_slice, 10]]
          ],
        ['MAJOR_TIMESLICE                ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
          clc$integer_type, clc$keyword_type],
          FALSE, 2],
          44, [[1, 0, clc$keyword_type], [1], [
            ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
            ],
          20, [[1, 0, clc$integer_type], [jmc$lowest_task_time_slice, jmc$highest_task_time_slice, 10]]
          ]
        ]
      ]
    ],
{ PARAMETER 7
    [[1, 0, clc$union_type], [[clc$boolean_type, clc$keyword_type],
    FALSE, 2],
    44, [[1, 0, clc$keyword_type], [1], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
      ],
    3, [[1, 0, clc$boolean_type]]
    ],
{ PARAMETER 8
    [[1, 0, clc$union_type], [[clc$integer_type, clc$keyword_type],
    FALSE, 2],
    81, [[1, 0, clc$keyword_type], [2], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1],
      ['UNLIMITED                      ', clc$nominal_entry, clc$normal_usage_entry, 2]]
      ],
    20, [[1, 0, clc$integer_type], [jmc$lowest_service_accumulator, jmc$highest_service_accumulator, 10]]
    ],
{ PARAMETER 9
    [[1, 0, clc$union_type], [[clc$integer_type, clc$keyword_type],
    FALSE, 2],
    44, [[1, 0, clc$keyword_type], [1], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
      ],
    20, [[1, 0, clc$integer_type], [jmc$low_long_wait_think_time, jmc$high_long_wait_think_time, 10]]
    ],
{ PARAMETER 10
    [[1, 0, clc$union_type], [[clc$integer_type, clc$keyword_type],
    FALSE, 2],
    81, [[1, 0, clc$keyword_type], [2], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1],
      ['UNLIMITED                      ', clc$nominal_entry, clc$normal_usage_entry, 2]]
      ],
    20, [[1, 0, clc$integer_type], [jmc$lowest_maximum_active_jobs, jmc$highest_maximum_active_jobs, 10]]
    ],
{ PARAMETER 11
    [[1, 0, clc$union_type], [[clc$keyword_type, clc$name_type],
    FALSE, 2],
    81, [[1, 0, clc$keyword_type], [2], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1],
      ['NONE                           ', clc$nominal_entry, clc$normal_usage_entry, 2]]
      ],
    5, [[1, 0, clc$name_type], [1, osc$max_name_size]]
    ],
{ PARAMETER 12
    [[1, 0, clc$union_type], [[clc$keyword_type, clc$record_type],
    FALSE, 2],
    44, [[1, 0, clc$keyword_type], [1], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
      ],
    487, [[1, 0, clc$record_type], [4],
      ['MINIMUM                        ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
        clc$integer_type, clc$keyword_type],
        FALSE, 2],
        44, [[1, 0, clc$keyword_type], [1], [
          ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
          ],
        20, [[1, 0, clc$integer_type], [jmc$lowest_job_priority, jmc$highest_job_priority, 10]]
        ],
      ['MAXIMUM                        ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
        clc$integer_type, clc$keyword_type],
        FALSE, 2],
        44, [[1, 0, clc$keyword_type], [1], [
          ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
          ],
        20, [[1, 0, clc$integer_type], [jmc$lowest_job_priority, jmc$highest_job_priority, 10]]
        ],
      ['SWAP_AGE_INCREMENT             ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
        clc$integer_type, clc$keyword_type],
        FALSE, 2],
        44, [[1, 0, clc$keyword_type], [1], [
          ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
          ],
        20, [[1, 0, clc$integer_type], [jmc$lowest_job_priority, jmc$highest_job_priority, 10]]
        ],
      ['READY_TASK_INCREMENT           ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
        clc$integer_type, clc$keyword_type],
        FALSE, 2],
        44, [[1, 0, clc$keyword_type], [1], [
          ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
          ],
        20, [[1, 0, clc$integer_type], [jmc$lowest_job_priority, jmc$highest_job_priority, 10]]
        ]
      ]
    ],
{ PARAMETER 13
    [[1, 0, clc$union_type], [[clc$keyword_type, clc$record_type],
    FALSE, 2],
    44, [[1, 0, clc$keyword_type], [1], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
      ],
    487, [[1, 0, clc$record_type], [4],
      ['CPU                            ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
        clc$integer_type, clc$keyword_type],
        FALSE, 2],
        44, [[1, 0, clc$keyword_type], [1], [
          ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
          ],
        20, [[1, 0, clc$integer_type], [jmc$lowest_service_factor_value, jmc$highest_service_factor_valu, 10]]
        ],
      ['MEMORY                         ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
        clc$integer_type, clc$keyword_type],
        FALSE, 2],
        44, [[1, 0, clc$keyword_type], [1], [
          ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
          ],
        20, [[1, 0, clc$integer_type], [jmc$lowest_service_factor_value, jmc$highest_service_factor_valu, 10]]
        ],
      ['RESIDENCE                      ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
        clc$integer_type, clc$keyword_type],
        FALSE, 2],
        44, [[1, 0, clc$keyword_type], [1], [
          ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
          ],
        20, [[1, 0, clc$integer_type], [jmc$lowest_service_factor_value, jmc$highest_service_factor_valu, 10]]
        ],
      ['IO                             ', clc$optional_field, 84], [[1, 0, clc$union_type], [[
        clc$integer_type, clc$keyword_type],
        FALSE, 2],
        44, [[1, 0, clc$keyword_type], [1], [
          ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
          ],
        20, [[1, 0, clc$integer_type], [jmc$lowest_service_factor_value, jmc$highest_service_factor_valu, 10]]
        ]
      ]
    ],
{ PARAMETER 14
    [[1, 0, clc$union_type], [[clc$integer_type, clc$keyword_type],
    FALSE, 2],
    81, [[1, 0, clc$keyword_type], [2], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1],
      ['UNLIMITED                      ', clc$nominal_entry, clc$normal_usage_entry, 2]]
      ],
    20, [[1, 0, clc$integer_type], [lowest_prio_age_interval, highest_prio_age_interval, 10]]
    ],
{ PARAMETER 15
    [[1, 0, clc$union_type], [[clc$boolean_type, clc$keyword_type],
    FALSE, 2],
    44, [[1, 0, clc$keyword_type], [1], [
      ['DEFAULT                        ', clc$nominal_entry, clc$normal_usage_entry, 1]]
      ],
    3, [[1, 0, clc$boolean_type]]
    ],
{ PARAMETER 16
    [[1, 0, clc$status_type]]];

?? FMT (FORMAT := ON) ??
?? POP ??

    CONST
      p$class_name = 1,
      p$abbreviation = 2,
      p$aio_limit = 3,
      p$attempt_preemption = 4,
      p$class_service_threshold = 5,
      p$dispatching_control = 6,
      p$enable_class_execution = 7,
      p$guaranteed_service_quantum = 8,
      p$long_wait_think_time = 9,
      p$maximum_active_jobs = 10,
      p$next_service_class = 11,
      p$scheduling_priority = 12,
      p$service_factors = 13,
      p$swap_age_interval = 14,
      p$swap_jobs_in_longwait = 15,
      p$status = 16;

    VAR
      pvt: array [1 .. 16] of clt$parameter_value;

    VAR
      the_attributes: jmt$object_attribute;

    status.normal := TRUE;

    jmv$current_profile_level := jmc$profile_service_class;

    clp$evaluate_parameters (parameter_list, #SEQ (pdt), NIL, ^pvt, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

    jmp$get_attributes (jmc$profile_service_class, #SEQ (pdt), ^pvt,
          the_attributes, status);
    IF NOT status.normal THEN
      RETURN;
    IFEND;

    jmp$change_object (jmc$profile_service_class, pvt [p$class_name].value^,
          the_attributes, jmc$update, status);

  PROCEND jmp$_change_attribute;
?? TITLE := 'jmp$_create_class ', EJECT ??

{ PURPOSE:
{   Processes the CREATE_CLASS command.
{
{ DESIGN:
{   Fetches the default values and adds the specified service class to the
{   profile.
{
{ NOTES:
{   See JMM$ADMINISTER_OBJECTS.

  PROCEDURE jmp$_create_class
    (    parameter_list: clt$parameter_list;
     VAR status: ost$status);

{ PROCEDURE (osm$admsc_crec) create_class (
{   class_name, cn: name = $required
{   default_values, dv: (by_name) name = $optional
{   status)

?? PUSH (LISTEXT := ON) ??

    VAR
      pdt: [STATIC, READ, cls$declaration_section] record
        header: clt$pdt_header,
        names: array [1 .. 5] of clt$pdt_parameter_name,
        parameters: array [1 .. 3] of clt$pdt_parameter,
        type1: record
          header: clt$type_specification_header,
          qualifier: clt$name_type_qualifier,
        recend,
        type2: record
          header: clt$type_specification_header,
          qualifier: clt$name_type_qualifier,
        recend,
        type3: record
          header: clt$type_specification_header,
        recend,
      recend := [[1, [88, 9, 26, 10, 54, 2, 85], clc$command, 5, 3, 1, 0, 0, 0,
            3, 'OSM$ADMSC_CREC'], [['CLASS_NAME                     ',
            clc$nominal_entry, 1], ['CN                             ',
            clc$abbreviation_entry, 1], ['DEFAULT_VALUES                 ',
            clc$nominal_entry, 2], ['DV                             ',
            clc$abbreviation_entry, 2], ['STATUS                         ',
            clc$nominal_entry, 3]], [

{ PARAMETER 1

      [1, clc$normal_usage_entry, clc$non_secure_parameter,
            $clt$parameter_spec_methods [clc$specify_by_name,
            clc$specify_positionally], clc$pass_by_value,
            clc$immediate_evaluation, clc$standard_parameter_checking, 5,
            clc$required_parameter, 0, 0],

{ PARAMETER 2

      [3, clc$normal_usage_entry, clc$non_secure_parameter,
            $clt$parameter_spec_methods [clc$specify_by_name],
            clc$pass_by_value, clc$immediate_evaluation,
            clc$standard_parameter_checking, 5, clc$optional_parameter, 0, 0],

{ PARAMETER 3

      [5, clc$normal_usage_entry, clc$non_secure_parameter,
            $clt$parameter_spec_methods [clc$specify_by_name],
            clc$pass_by_reference, clc$immediate_evaluation,
            clc$standard_parameter_checking, 3, clc$optional_parameter, 0, 0]],

{ PARAMETER 1

      [[1, 0, clc$name_type], [1, osc$max_name_size]],

{ PARAMETER 2

      [[1, 0, clc$name_type], [1, osc$max_name_size]],

{ PARAMETER 3

      [[1, 0, clc$status_type]]];

?? POP ??

    CONST
      p$class_name = 1,
      p$default_values = 2,
      p$status = 3;

    VAR
      pvt: array [1 .. 3] of clt$parameter_value;

    VAR
      the_attributes: jmt$object_attribute,
      the_class: jmt$profile_object_reference;

    status.normal := TRUE;

    jmv$current_profile_level := jmc$profile_service_class;

    clp$evaluate_parameters (parameter_list, #SEQ (pdt), NIL, ^pvt, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

    jmp$set_default_attributes (jmc$profile_service_class,
          pvt [p$default_values], the_attributes, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

    jmp$add_object (jmc$profile_service_class,
          pvt [p$class_name].value^.name_value, the_attributes, the_class,
          status);

  PROCEND jmp$_create_class;
?? TITLE := 'jmp$_delete_class ', EJECT ??

{ PURPOSE:
{   Processes the DELETE_CLASS command.
{
{ DESIGN:
{   Determine the service classes to delete and delete them.
{
{ NOTES:
{   See JMM$ADMINISTER_OBJECTS

  PROCEDURE jmp$_delete_class
    (    parameter_list: clt$parameter_list;
     VAR status: ost$status);

{ PROCEDURE (osm$admsc_delc) delete_class (
{   class_name, class_names, cn: list of name = $required
{   status)

?? PUSH (LISTEXT := ON) ??

    VAR
      pdt: [STATIC, READ, cls$declaration_section] record
        header: clt$pdt_header,
        names: array [1 .. 4] of clt$pdt_parameter_name,
        parameters: array [1 .. 2] of clt$pdt_parameter,
        type1: record
          header: clt$type_specification_header,
          qualifier: clt$list_type_qualifier,
          element_type_spec: record
            header: clt$type_specification_header,
            qualifier: clt$name_type_qualifier,
          recend,
        recend,
        type2: record
          header: clt$type_specification_header,
        recend,
      recend := [[1, [88, 9, 26, 10, 54, 21, 856], clc$command, 4, 2, 1, 0, 0,
            0, 2, 'OSM$ADMSC_DELC'], [['CLASS_NAME                     ',
            clc$nominal_entry, 1], ['CLASS_NAMES                    ',
            clc$alias_entry, 1], ['CN                             ',
            clc$abbreviation_entry, 1], ['STATUS                         ',
            clc$nominal_entry, 2]], [

{ PARAMETER 1

      [1, clc$normal_usage_entry, clc$non_secure_parameter,
            $clt$parameter_spec_methods [clc$specify_by_name,
            clc$specify_positionally], clc$pass_by_value,
            clc$immediate_evaluation, clc$standard_parameter_checking, 21,
            clc$required_parameter, 0, 0],

{ PARAMETER 2

      [4, clc$normal_usage_entry, clc$non_secure_parameter,
            $clt$parameter_spec_methods [clc$specify_by_name],
            clc$pass_by_reference, clc$immediate_evaluation,
            clc$standard_parameter_checking, 3, clc$optional_parameter, 0, 0]],

{ PARAMETER 1

      [[1, 0, clc$list_type], [5, 1, clc$max_list_size, FALSE],
            [[1, 0, clc$name_type], [1, osc$max_name_size]]],

{ PARAMETER 2

      [[1, 0, clc$status_type]]];

?? POP ??

    CONST
      p$class_name = 1,
      p$status = 2;

    VAR
      pvt: array [1 .. 2] of clt$parameter_value;

    status.normal := TRUE;

    jmv$current_profile_level := jmc$profile_service_class;

    clp$evaluate_parameters (parameter_list, #SEQ (pdt), NIL, ^pvt, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

    jmp$delete_object (jmc$profile_service_class, pvt [p$class_name].value^,
          status);

  PROCEND jmp$_delete_class;
?? TITLE := 'jmp$_quit', EJECT ??

{ PURPOSE:
{   Exits the subutility.
{
{ DESIGN:
{   Terminates the subutility.

  PROCEDURE jmp$_quit
    (    parameter_list: clt$parameter_list;
     VAR status: ost$status);

{ PROCEDURE (osm$admsc_qui) quit (
{   status)

?? PUSH (LISTEXT := ON) ??

    VAR
      pdt: [STATIC, READ, cls$declaration_section] record
        header: clt$pdt_header,
        names: array [1 .. 1] of clt$pdt_parameter_name,
        parameters: array [1 .. 1] of clt$pdt_parameter,
        type1: record
          header: clt$type_specification_header,
        recend,
      recend := [[1, [88, 9, 26, 10, 54, 39, 306], clc$command, 1, 1, 0, 0, 0,
            0, 1, 'OSM$ADMSC_QUI'], [['STATUS                         ',
            clc$nominal_entry, 1]], [

{ PARAMETER 1

      [1, clc$normal_usage_entry, clc$non_secure_parameter,
            $clt$parameter_spec_methods [clc$specify_by_name],
            clc$pass_by_reference, clc$immediate_evaluation,
            clc$standard_parameter_checking, 3, clc$optional_parameter, 0, 0]],

{ PARAMETER 1

      [[1, 0, clc$status_type]]];

?? POP ??

    CONST
      p$status = 1;

    VAR
      pvt: array [1 .. 1] of clt$parameter_value;

    status.normal := TRUE;

    clp$evaluate_parameters (parameter_list, #SEQ (pdt), NIL, ^pvt, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

    clp$end_include (utility_name, status);

  PROCEND jmp$_quit;
?? TITLE := '[XDCL] jmp$_administer_service_class', EJECT ??

{ PURPOSE:
{   Starts the ADMINISTER_SERVICE_CLASS sub utility.
{
{ DESIGN:
{   Pass the command table to command_language.

  PROCEDURE [XDCL, #GATE] jmp$_administer_service_class
    (    parameter_list: clt$parameter_list;
     VAR status: ost$status);

{ PROCEDURE (osm$adms_admsc) administer_service_class (
{   status)

?? PUSH (LISTEXT := ON) ??

    VAR
      pdt: [STATIC, READ, cls$declaration_section] record
        header: clt$pdt_header,
        names: array [1 .. 1] of clt$pdt_parameter_name,
        parameters: array [1 .. 1] of clt$pdt_parameter,
        type1: record
          header: clt$type_specification_header,
        recend,
      recend := [[1, [88, 9, 26, 10, 55, 0, 434], clc$command, 1, 1, 0, 0, 0,
            0, 1, 'OSM$ADMS_ADMSC'], [['STATUS                         ',
            clc$nominal_entry, 1]], [

{ PARAMETER 1

      [1, clc$normal_usage_entry, clc$non_secure_parameter,
            $clt$parameter_spec_methods [clc$specify_by_name],
            clc$pass_by_reference, clc$immediate_evaluation,
            clc$standard_parameter_checking, 3, clc$optional_parameter, 0, 0]],

{ PARAMETER 1

      [[1, 0, clc$status_type]]];

?? POP ??

    CONST
      p$status = 1;

    VAR
      pvt: array [1 .. 1] of clt$parameter_value;

    status.normal := TRUE;

    clp$evaluate_parameters (parameter_list, #SEQ (pdt), NIL, ^pvt, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

    utility_attributes [1].command_table := command_table;
    clp$begin_utility (utility_name, utility_attributes, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

    jmv$current_profile_level := jmc$profile_service_class;

    clp$include_file (command_file, '', utility_name, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

    clp$end_utility (utility_name, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

  PROCEND jmp$_administer_service_class;
MODEND jmm$administer_service_class;
