?? NEWTITLE := 'NOS/VE Job Scheduling : administer_output_class' ??
MODULE jmm$administer_output_class;

{ PURPOSE:
{   This module defines the commands that make up the subutility of
{   ADMINISTER_SCHEDULING called ADMINISTER_OUTPUT_CLASS.  This utility
{   manages the output classes on the scheduling profile.  The procedures
{   in this module allow the administrator to create, change, delete
{   and display output 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 it's 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 jmc$profile_constants
*copyc jmt$default_and_range_parameter
*copyc jmt$job_priority
*copyc jmt$output_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$move_object
*copyc jmp$set_default_attributes

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

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

{ table command_table
{ command (jmp$_create_class, crec), jmp$_create_class
{ command (jmp$_change_attribute, jmp$_change_attributes, chaa),
{ jmp$_change_attribute
{ command (display_attribute, display_attributes, disa), ..
{   jmp$_display_output_class cm=xref
{ command (jmp$_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_output_class],
          {} ['DISPLAY_ATTRIBUTE              ', clc$nominal_entry,
          clc$advertised_entry, 3, clc$automatically_log, clc$linked_call,
          ^jmp$_display_output_class],
          {} ['DISPLAY_ATTRIBUTES             ', clc$alias_entry,
          clc$advertised_entry, 3, clc$automatically_log, clc$linked_call,
          ^jmp$_display_output_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_output_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 output 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$admo_chaa) change_attribute (
{   class_name, class_names, cn: any of
{       key all keyend
{       list of name
{     anyend = $current_output_class
{   abbreviation, a: (by_name) any of
{       key default, unspecified, none keyend
{       name
{     anyend = $optional
{   delivery_priority, dp: (by_name) any of
{       key default keyend
{       record
{         minimum: any of
{           key default keyend
{           integer jmc$lowest_job_priority..jmc$highest_job_priority
{         anyend
{         maximum: any of
{           key default keyend
{           integer jmc$lowest_job_priority..jmc$highest_job_priority
{         anyend
{         output_age_increment: any of
{           key default keyend
{           integer jmc$lowest_job_priority..jmc$highest_job_priority
{         anyend
{       recend
{     anyend = $optional
{   enable_class_scheduling, ecs: (by_name) any of
{       key default keyend
{       boolean
{     anyend = $optional
{   output_age_interval, oai: (by_name) any of
{       key default, unlimited keyend
{       integer jmc$lowest_prio_age_interval..jmc$highest_prio_age_interval
{     anyend = $optional
{   selection_rank, sr: (by_name) name = $optional
{   status)

?? PUSH (LISTEXT := ON) ??

    VAR
      pdt: [STATIC, READ, cls$declaration_section] record
        header: clt$pdt_header,
        names: array [1 .. 14] of clt$pdt_parameter_name,
        parameters: array [1 .. 7] 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,
            element_type_spec: record
              header: clt$type_specification_header,
              qualifier: clt$name_type_qualifier,
            recend,
          recend,
          default_value: string (21),
        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$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,
          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$name_type_qualifier,
        recend,
        type7: record
          header: clt$type_specification_header,
        recend,
      recend := [[1, [88, 9, 26, 11, 34, 48, 634], clc$command, 14, 7, 0, 0, 0,
            0, 7, 'OSM$ADMO_CHAA'], [['A                              ',
            clc$abbreviation_entry, 2], ['ABBREVIATION                   ',
            clc$nominal_entry, 2], ['CLASS_NAME                     ',
            clc$nominal_entry, 1], ['CLASS_NAMES                    ',
            clc$alias_entry, 1], ['CN                             ',
            clc$abbreviation_entry, 1], ['DELIVERY_PRIORITY              ',
            clc$nominal_entry, 3], ['DP                             ',
            clc$abbreviation_entry, 3], ['ECS                            ',
            clc$abbreviation_entry, 4], ['ENABLE_CLASS_SCHEDULING        ',
            clc$nominal_entry, 4], ['OAI                            ',
            clc$abbreviation_entry, 5], ['OUTPUT_AGE_INTERVAL            ',
            clc$nominal_entry, 5], ['SELECTION_RANK                 ',
            clc$nominal_entry, 6], ['SR                             ',
            clc$abbreviation_entry, 6], ['STATUS                         ',
            clc$nominal_entry, 7]], [

{ PARAMETER 1

      [3, 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, 21],

{ 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

      [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, 431, clc$optional_parameter, 0,
            0],

{ PARAMETER 4

      [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, 67, clc$optional_parameter, 0, 0],

{ PARAMETER 5

      [11, 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

      [12, 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 7

      [14, 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, FALSE],
            [[1, 0, clc$name_type], [1, osc$max_name_size]]],
            '$current_output_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$keyword_type, clc$record_type], FALSE, 2],
            44, [[1, 0, clc$keyword_type], [1],
            [['DEFAULT                        ', clc$nominal_entry,
            clc$normal_usage_entry, 1]]], 367,
            [[1, 0, clc$record_type], [3], ['MINIMUM                        ',
            clc$required_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$required_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]]], ['OUTPUT_AGE_INCREMENT           '
            , clc$required_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 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_prio_age_interval,
            jmc$highest_prio_age_interval, 10]]],

{ PARAMETER 6

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

{ PARAMETER 7

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

?? POP ??

    CONST
      p$class_name = 1,
      p$abbreviation = 2,
      p$delivery_priority = 3,
      p$enable_class_scheduling = 4,
      p$output_age_interval = 5,
      p$selection_rank = 6,
      p$status = 7;

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

    VAR
      the_attributes: jmt$object_attribute;

    status.normal := TRUE;

    jmv$current_profile_level := jmc$profile_output_class;
    clp$evaluate_parameters (parameter_list, #SEQ (pdt), NIL, ^pvt, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

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

    IF pvt [p$selection_rank].specified THEN
      jmp$move_object (jmc$profile_output_class, pvt [p$class_name].value^,
            pvt [p$selection_rank].value^.name_value, status);
      IF NOT status.normal THEN
        RETURN;
      IFEND;
    IFEND;

    jmp$change_object (jmc$profile_output_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 output class to the
{   profile.
{
{ NOTES:
{   See JMM$ADMINISTER_OBJECTS.

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

{ PROCEDURE (osm$admoc_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, 11, 35, 41, 541], clc$command, 5, 3, 1, 0, 0,
            0, 3, 'OSM$ADMOC_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_object: jmt$profile_object_reference;

    status.normal := TRUE;

    jmv$current_profile_level := jmc$profile_output_class;
    clp$evaluate_parameters (parameter_list, #SEQ (pdt), NIL, ^pvt, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

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

    jmp$add_object (jmc$profile_output_class,
          pvt [p$class_name].value^.name_value, the_attributes, the_object,
          status);
    IF status.normal THEN
      jmp$move_object (jmc$profile_output_class, pvt [p$class_name].value^,
            'SYSTEM', status);
    IFEND;

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

{ PURPOSE:
{   Processes the DELETE_CLASS command.
{
{ DESIGN:
{   Determine the output 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$admoc_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, 11, 36, 6, 451], clc$command, 4, 2, 1, 0, 0,
            0, 2, 'OSM$ADMOC_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_output_class;
    clp$evaluate_parameters (parameter_list, #SEQ (pdt), NIL, ^pvt, status);
    IF NOT status.normal THEN
      RETURN
    IFEND;

    jmp$delete_object (jmc$profile_output_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$admoc_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, 11, 36, 25, 569], clc$command, 1, 1, 0, 0, 0,
            0, 1, 'OSM$ADMOC_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 := 'jmp$_administer_output_class', EJECT ??

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

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

{ PROCEDURE (osm$adms_admoc) administer_output_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, 11, 36, 57, 805], clc$command, 1, 1, 0, 0, 0,
            0, 1, 'OSM$ADMS_ADMOC'], [['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_output_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_output_class;
MODEND jmm$administer_output_class;
