DataMuseum.dk

Presents historical artifacts from the history of:

CR80 Wang WCS documentation floppies

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about CR80 Wang WCS documentation floppies

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦4ee92d7a5⟧ Wang Wps File

    Length: 46619 (0xb61b)
    Types: Wang Wps File
    Notes: CPS/SDS/033               
    Names: »1792A «

Derivation

└─⟦fd4f47f8f⟧ Bits:30006088 8" Wang WCS floppy, CR 0140A
    └─ ⟦this⟧ »1792A « 

WangText

 …00……00……00……00…B…0a…B…0b…B…0c…B…01…B…05…B…07…A…08…A…0d…A…01…A…06…@…09…@…0a…@…0e…@…02…@…05…?…09…?…0a…?…0b…?…0c…8…0a…8…0b…8…00…8…05…7…0b…7…0d…7…86…1                                             …02…        
   …02…   …02…        

…02…CPS/SDS/033

…02…KNB/831101…02……02… 
TRAFFIC HANDLING
DETAILED DESIGN SPECIFICATION…02…ISSUE 1…02…CAMPS










4.2.1.5  C̲o̲m̲m̲o̲n̲ ̲S̲u̲b̲p̲a̲c̲k̲a̲g̲e̲ ̲D̲a̲t̲a̲

         The major common data-element of the Analysis Subpackage
         is the Analysis Buffer, which has been designed to
         contain the message-fields of the External Message
         as well as the message-fields of the Internal Message
         Format generated during the analysis; this design strategy
         facilitates use of minimum disk-accesses, which are
         1 to read and 1 to write the message.

         The system-oriented data-elements will be described
         in the following sections:

         -   TMP Data
         -   QEL Data
         -   View Data

         The internal application oriented data-elements will
         then be described in the following sections:

         -   ASM Data
         -   Analysis Control Data
         -   Message Type Data
         -   FL ̲Analysis Data



4.2.1.5.1 A̲n̲a̲l̲y̲s̲i̲s̲ ̲B̲u̲f̲f̲e̲r̲

         The purpose of the analysis buffer is to contain the
         message-fields used and generated during the analysis
         (ref. DBD/001 section 10 for structures). The typical
         organization of message-fields in the buffer is depicted
         in figure 4.2.1.5.1-1.

         Constants:

         MAX ̲ANALYSIS =        24.000
         MAX ̲TEXT ̲NEEDED =        512
         PLA ̲RI ̲POSITION =     MAX ̲ANALYSIS - MAX ̲PLA ̲
                               RI ̲FIELD ̲SIZE
         MAX ̲ANALYSIS ̲ERRORS=     108



         The following data-types are associated to the handling
         of message fields with an organized structure contained
         in the Analysis Buffer.

         These are:

         The Administration Field, the PLA ̲RI Field and the
         ACP ̲Params Field.

         T̲y̲p̲e̲s̲

             ADMINISTRATION = RECORD
                 IMF ̲DESCRIPTOR:   IMF ̲DESCRIPTOR ̲TYPE
                 AUTO ̲DELETE ̲LOG:  CTS ̲ATOMAL ̲DELETION ̲LOG
                 PARAMETER ̲INFO:   PARAMETER ̲INFO ̲TYPE
                 MSG ̲HANDL ̲INFO:   MSG ̲HANDLING

               END

             PLA ̲RI ̲LIST    = RECORD

                 PLA ̲RI ̲DESC       PLA ̲RI ̲DESCRIPTOR
                 PLA ̲RI ̲RECORD:    ARRAY ̲(1..MAX ̲PLA)
                                   OF PLA ̲RI ̲TYPE
                 RELAY ̲DYNAMIC:    ARRAY (1..MAX ̲RELAY ̲INST)
                                   OF ̲RELAY ̲TYPE
                 RELAY ̲STATIC:     ARRAY (1..MAX ̲RELAY ̲INST)
                                   OF RELAY ̲TYPE

               END

             ACP ̲PARAMS     = RECORD

                 TEXT ̲INFO:        TEXT ̲PARAMS
                 HEADER ̲INFO:      HEADER ̲PARAM
                 ERROR ̲COUNT:      INTEGER
                 ERROR ̲INFO:       ARRAY (1 MAX ̲ANALYSIS ̲ERRORS)
                                   OF ERROR ̲ELEMENTS

               END



         V̲a̲r̲i̲a̲b̲l̲e̲s̲

         ANALYSIS ̲BUFFER:          ARRAY (1..MAX ̲ANALYSIS) OF
                                   BYTES;
         START ̲BUFFER ̲POINTER:     INTEGER
         END ̲BUFFER ̲POINTER:       INTEGER
         ACP ̲HEADER ̲POINTER:       INTEGER
         TEXT ̲POINTER:             INTEGER
         ACP ̲PARAMS ̲POINTER:       INTEGER
         ADMINISTRATION ̲POINTER:   INTEGER
         ADDRESS ̲POINTER:          INTEGER
         ADDRESS ̲WORK ̲POINTER:     INTEGER
         PLA ̲RI ̲POINTER:           INTEGER
         TEXT ̲ENDING ̲POINTER:      INTEGER






                    Figure 4.2.1.5.1-1



4.2.1.5.2    T̲M̲P̲ ̲D̲a̲t̲a̲

         The data-area used during table-searches by TMP is
         divided into an key-area and an Result-area.

         The data-segment containing these areas has to be declared
         in the configuration parameters.

         Ref. DBD/001 section 5 and 6 for structures.

         C̲o̲n̲s̲t̲a̲n̲t̲s̲:̲

         MAX ̲KEY ̲LENGTH =          MAX ̲PLA ̲LENGTH + 4
         MAX ̲RESULT =              MAX ̲PLA ̲AIG ̲NUMBER * 2

         T̲y̲p̲e̲s̲:̲

         ASCII ̲DTG =               DTG ̲TYPE
         BINARY ̲DTG =              TIME ̲TYPE

         LOCAL ̲RI ̲KEY =            RECORD OF
                                     KEY ̲IDENT:  SINGLE ̲PARAMS
                                     RI:         RI ̲TYPE
                                   END;

         PLA ̲KEY =                 RECORD OF
                                     KEY ̲IDENT:  SINGLE ̲PARAMS
                                     PLA:        PLA ̲TYPE
                                   END;

         PLA ̲REF ̲KEY =             RECORD OF
                                     KEY ̲IDENT:  SINGLE ̲PARAMS
                                     PLA:        PLA ̲REF ̲TYPE
                                   END;

         LOCAL ̲PLA ̲KEY             RECORD OF
                                     KEY ̲IDENT:  SINGLE ̲PARAMS
                                     LOCAL ̲PLA:  LOCAL ̲PLA ̲TYPE
                                   END;

         AIG ̲KEY                   RECORD OF
                                     KEY ̲IDENT:  SINGLE ̲PARAMS
                                     AIG:        AIG ̲TYPE
                                   END;



         CHANNEL ̲KEY           RECORD OF
                                 KEY ̲IDENT:  SINGLE ̲PARAMS
                                 CHANNEL ̲NO: LOGICAL ̲CHANNEL
                               ̲NO
                               END;

         LOCAL ̲RI ̲RESULT:      SYS ̲ID ̲TYPE;
         PLA ̲RESULT:           PLA ̲REF ̲TYPE
         LOCAL ̲PLA ̲RESULT:     HQ ̲TYPE
         AIG ̲RESULT:           ARRAY (1..MAX ̲PLA ̲AIG ̲NUMBER)
                               OF PLA ̲REF ̲TYPE;
         CHANNEL ̲RESULT        DESIGNATOR ̲TYPE
         CHANNEL ̲NO ̲RESULT:    LOGICAL ̲CHANNEL ̲NO ̲TYPE

         V̲a̲r̲i̲a̲b̲l̲e̲s̲:̲

         KEY ̲AREA:             ARRAY(1..MAX ̲KEY ̲LENGTH) OF BYTES;
         RESULT ̲AREA:          ARRAY(1..MAX ̲RESULT) OF BYTES;
         TMP ̲PARAMS:           TMP ̲PARAM



4.2.1.5.3 Q̲E̲L̲ ̲D̲a̲t̲a̲

         The QEL data elements are associated to queues and
         elements used in the communication with other subpackages.

         Ref. DBD/001 section 7 for structures.

         T̲y̲p̲e̲s̲:̲

         WAIT ̲QUEUE ̲TYPE :     TRAFFIC ̲QUEUE ̲TYPE 
         ASM ̲SUBQ ̲TYPE:        TCS ̲SUBQUEUE ̲TYPE


         REJECTION ̲CODE ̲TYPE =     (NO ̲REJECTION,
                                   TI ̲INSPECTION,
                                   CTR ̲CHAR,
                                   TOO ̲LONG ̲LINE,
                                   NO ̲EOTF,
                                   MISSING ̲BT,
                                   OVERSIZED ̲MSG,
                                   HALTED ̲MSG,
                                   IDENTICAL ̲CHAR,
                                   PREEMPTED ̲MSG
                                   BLOCK ̲ERROR
                                   UNIDENTIFIED ̲MSG
                                   PILOT ̲INSPECTION
                                   FL14 ̲CORRECTIONS
                                   ANALYSIS ̲ERRORS)

         RECEPTION ̲ERROR ̲TYPE =    (TI ̲INSPECTION..ANALYSIS
                                   ̲ERRORS) OF REJECTION ̲CODE
                                   ̲TYPE

         V̲a̲r̲i̲a̲b̲l̲e̲s̲:̲

         SEND ̲FOR ̲GARBLE:          BOOLEAN
         SEND ̲FOR ̲INSPECTION:      BOOLEAN
         SEND ̲FOR ̲CONVERSION:      BOOLEAN
         SEND ̲FOR ̲RELAYING:        BOOLEAN
         SEND ̲FOR ̲DISTRIBUTION:    BOOLEAN
         SEND ̲FOR ̲COORDINATION:    BOOLEAN
         SEND ̲FOR ̲RELEASE:         BOOLEAN
         SEND ̲FOR ̲SUPERVISOR:      BOOLEAN
         SEND ̲FOR ̲PUNCH:           BOOLEAN
         SEND ̲FOR ̲STORAGE:         BOOLEAN
         SEND ̲FOR ̲UMAN:            BOOLEAN
         SEND ̲FOR ̲LOG:             BOOLEAN
         SEND ̲FOR ̲STATISTICS:      BOOLEAN
         QUEUE ̲REF:                QUEUE ̲REFERENCE
         ANSWER ̲QUEUE ̲REF:         QUEUE ̲REFERENCE
         QEL ̲REF:                  QEL ̲REFERENCE
         SEND ̲QEL ̲REF:             QEL ̲REFERENCE
         QEL ̲ATTRIBUTES:           QEL ̲ATTRIBUTES
         RECEIVE ̲SUBQUEUE:         WAIT ̲QUEUE ̲TYPE
         WAIT ̲QUEUE:               WAIT ̲QUEUE ̲TYPE
         WAIT:                     BOOLEAN
         SEND ̲PARAMETERS:          SEND ̲PARAMS



         L̲a̲y̲o̲u̲t̲s̲

         In messages received from the Incoming Transport Subpackage
         the QEL ̲HEADER.INF (= Traffic mask) might have been
         assigned the following bit-values:

         DATA ̲MSG, 80 ̲CHARS, AUTO ̲TERM

         Messages received from a normal PTR will be assigned
         the bit-value AUTO ̲RELEASE when forwarded to the Conversion
         Subpackage.

         See figure 4.2.1.5.3-1 for Traffic-Info ̲word.

         The Rejection-code/Reception-error is contained in
         the QEL ̲HEADER.FLAG of unidentified messages.

         Messages sent for conversion will be assigned the bit-value
         INSERT ̲PILOT if the message is received with such.
















































                    Figure 4.2.1.5.3-1



4.2.1.5.4    V̲i̲e̲w̲ ̲D̲a̲t̲a̲

         The View data-elements are associated to input/output
         of message-views and message-fields.

         Refer DBD/001 section 4 for structures.

         C̲o̲n̲s̲t̲a̲n̲t̲s̲

         MAX ̲AAS ̲FIELDS =          5

         T̲y̲p̲e̲s̲

         VIEW ̲REF:                 QEL ̲REFERENCE
         BUFFER ̲REF:               QEL ̲REFERENCE
         AAS ̲FIELD ̲LIST ̲TYPE = RECORD
                                   FIELD ̲COUNT: INTEGER
                                   FIELD ̲ELEMENT: ARRAY (1..
                                   MAX ̲AAS ̲FIELDS OF FIELD ̲
                                   LIST ̲ELEMENT)
                               END

         V̲a̲r̲i̲a̲b̲l̲e̲s̲

         VIEW ̲ATTRIBUTE:           VIEW ̲ATTRIBUTES
         MSG ̲FIELD ̲LIST:           AAS ̲FIELD ̲LIST ̲TYPE
         WRITE ̲TEXT:               BOOLEAN
         WRITE ̲ACP ̲PARAMS:         BOOLEAN
         WRITE ̲ADMINISTRATION:     BOOLEAN
         WRITE ̲ADDRESS:            BOOLEAN
         WRITE ̲PLA ̲RI:             BOOLEAN



4.2.1.5.5    A̲S̲M̲ ̲D̲a̲t̲a̲

         The ASM Data-elements are associated to the ASM Control
         and Internal Message Handling of Abbreviated Service
         Messages.



         T̲y̲p̲e̲s̲:̲

         INTERNAL ̲ASM ̲TYPE =      (NOT ̲INTERNAL,
                                   CHANNEL ̲CLOSE ̲RECEIVED)
                                   CHANNEL ̲OPEN ̲RECEIVED,
                                   TEST ̲REPLY ̲RECEIVED,
                                   TSN ̲CHECK ̲RECEIVED,
                                   FLASH ̲ACK ̲RECEIVED,
                                   SELF ̲CHECK ̲RECEIVED,
                                   SEND ̲TEST ̲REPLY
                                   SEND ̲FLASH ̲ACK)

         CHANNELQ̲CHECK ̲TYPE =     (NO ̲CHANNEL ̲CHECK,
                                   CONTINUITY, 
                                   SELF ̲INCOMING,
                                   SELF ̲OUTGOING);

         V̲a̲r̲i̲a̲b̲l̲e̲s̲:̲

         ASM ̲TYPE:                 INTERNAL ̲ASM ̲TYPE
         ASM ̲VIEW:                 BOOLEAN
         ASM ̲SUBQUEUE:             ASM ̲SUBQ ̲TYPE
         ASM ̲INFO:                 INTEGER
         ASM ̲REPLY ̲COUNT:          INTEGER
         ASM ̲SECOND ̲CHANNEL        INTEGER
         ASM ̲SECOND ̲INFO           INTEGER



4.2.1.5.6    A̲n̲a̲l̲y̲s̲i̲s̲ ̲C̲o̲n̲t̲r̲o̲l̲ ̲D̲a̲t̲a̲

         The data-elements used during analysis control are
         associated to the analysis Guide Tables and select
         of Format-Lines to be analyzed.



         C̲o̲n̲s̲t̲a̲n̲t̲s̲

         MAX ̲ACP ̲ENTRIES =         60
         MAX ̲SC ̲ENTRIES =          20
         PLAINDRESS ̲ENTRY =        MAX ̲ACP ̲ENTRIES
         GARBLED ̲=                 -1
         FINISHED      =            0


         T̲y̲p̲e̲s̲

         FL ̲TYPE =  (FL0,
                     FL1,
                     FL2,
                     FL3,
                     FL4,
                     FL5,
                     FL6,
                     FL7,
                     FL8,
                     FL9,
                     FL10,
                     FL1A,
                     FL4A,
                     FL12A,
                     FL12B,
                     FL12C,
                     FL12D,
                     FLC ,
                     FLD1,
                     FLD2,
                     FLD3,
                     FLD4,
                     FLE,
                     FLF,
                     FLJ1,
                     FLJ2,
                     FLJ3)

         FL ̲READ ̲TYPE    =         (EXCL ̲TEXT ̲ENDING,
                                    INCL ̲TEXT ̲ENDING,
                                    START ̲TEXT ̲ENDING)


         T̲y̲p̲e̲s̲:̲

         GUIDE ̲RECORD ̲TYPE =

             RECORD = OF
                 GUIDE ̲MSG ̲TYPE:   ANALYSIS ̲MESSAGE ̲TYPE
                 PREV ̲FL:          INTEGER
                 NEXT ̲FL:          INTEGER
                 STEP ̲TRUE:        INTEGER
                 STEP ̲FALSE:       INTEGER
             END

         FL ̲AREA ̲TYPE =            (HEADER, TEXT ̲BEGIN TEXT,
                                   TEXT ̲ENDING, TEXT ̲FINISH)

         V̲a̲r̲i̲a̲b̲l̲e̲s̲:̲

         SC ̲GUIDE ̲TABLE:           ARRAY (1..MAX ̲SC ̲ENTRIES)
                                   OF GUIDE ̲RECORD ̲TYPE;

         ACP ̲GUIDE ̲TABLE:          ARRAY (1..MAX ̲ACP ̲ENTRIES)
                                   OF GUIDE ̲RECORD ̲TYPE

         GUIDE ̲INDEX:              INTEGER
         FL ̲POINTER:               INTEGER
         FL ̲AREA:                  FL ̲AREA ̲TYPE
         FL ̲LENGTH:                INTEGER
         FL ̲NUMBER:                INTEGER

         V̲a̲r̲i̲a̲b̲l̲e̲ ̲I̲n̲i̲t̲i̲a̲l̲i̲z̲a̲t̲i̲o̲n̲

         The ACP ̲Guide ̲table and the SC ̲Guide ̲table shall be
         initiated the values of the following tables, of which
         STEP ̲NO illustrates the Index of the table.





         ACP ̲GUIDE ̲TABLE 1



         ACP ̲GUIDE ̲TABLE 2



         SC ̲GUIDE ̲TABLE 1




4.2.1.5.7    M̲e̲s̲s̲a̲g̲e̲ ̲T̲y̲p̲e̲ ̲D̲a̲t̲a̲

         The Message Type data-elements are associated to message-type-determination.

         C̲o̲n̲s̲t̲a̲n̲t̲s̲:̲

         PLAINDRESS ̲VALUE =                       # 1
         PLAINDRESS ̲DATA ̲VALUE =                  # 5
         PLAINDRESS ̲ENCRYPTED ̲VALUE =             # 9
         PLAINDRESS ̲SERVICE ̲VALUE =               #11
         SC ̲PLAINDRESS ̲VALUE =                    #81
         SC ̲PLAINDRESS ̲DATA ̲VALUE =               #85
         SC ̲PLAINDRESS ̲ENCTRYPTED ̲VALUE =         #89
         SC ̲PLAINDRESS ̲SERVICE ̲VALUE =            #91
         ABB ̲PLAINDRESS ̲VALUE =                   # 2
         ABB ̲PLAINDRESS ̲DATA ̲VALUE =              # 6
         ABB ̲PLAINDRESS ̲SERVICE ̲VALUE =           #12
         CODRESS ̲VALUE =                          # A
         ABB ̲SERVICE ̲VALUE =                      #10
         SC ̲VDU ̲PAGE ̲VALUE =                      #A0
         SC ̲COMMENT ̲VALUE =                       #C0

         T̲y̲p̲e̲s̲:̲

         ANALYSIS ̲MSG ̲TYPE =       (ALL, ASM, ABB ̲PLAIN, 
                                   ABB ̲PLAIN ̲ENCRYPT, PLAIN,
                                   PLAIN ̲ENCRYPT, COMMENT, VDU
                                   ̲PAGE)

         V̲a̲r̲i̲a̲b̲l̲e̲s̲:̲

         MSG ̲TYPE:                 ANALYSIS ̲MSG ̲TYPE
         MESSAGE ̲MASK:             INTEGER
         INTERNAL ̲ASM ̲TYPE:        BOOLEAN
         EXTERNAL ̲ASM ̲TYPE:        BOOLEAN
         ABBREVIATED ̲TYPE:         BOOLEAN
         PLAINDRESS ̲TYPE:          BOOLEAN
         DATA ̲TYPE:                BOOLEAN
         ENCRYPTED ̲TYPE:           BOOLEAN
         COMMENT ̲TYPE:             BOOLEAN
         VDU ̲PAGE ̲TYPE:            BOOLEAN
         SERVICE ̲TYPE:             BOOLEAN
         PREEMPT ̲MSG:              BOOLEAN
         VALID ̲MSG:                BOOLEAN
         INCOMING ̲MSG:             BOOLEAN

         L̲a̲y̲o̲u̲t̲s̲:̲

         See figure 4.2.1.5 for organization of bit-structure
         in the MESSAGE ̲MASK.




                         1 Table



4.2.1.5.8    F̲L̲ ̲A̲n̲a̲l̲y̲s̲i̲s̲ ̲D̲a̲t̲a̲

         The FL ̲Analysis Data Elements are results of format-line
         analysis kept for use during the remaining analysis.

         C̲o̲n̲s̲t̲a̲n̲t̲s̲

         IOC ̲BYTE ̲COUNT =          1
         IOC ̲FLAG =                2
         IOC ̲RECORD ̲SIZE =         3
         IOC ̲START ̲BYTE =          #1E
         CONTROL ̲CHAR =            4
         NORMAL ̲TERMINATED =       1

         T̲y̲p̲e̲s̲:̲

         RI ̲CATEGORY =             (UNKNOWN ̲RI, LOCAL ̲RI, 
                                   LOCAL ̲SC, PILOT ̲RI, RELAY
                                   ̲RI, NEW ̲RI, OLD ̲RI, AIG,
                                   ZEN,
                                   X ̲PLA, SINGLE ̲PLA)

         DYN ̲STA ̲TYPE =            (DYNAMIC, STATIC)

         REF ̲TYPE =                (REF ̲ALL, REF ̲PLA, REF ̲AIG)

         PREFIX ̲TYPE =             (NONE, SPACE, ZEN, X ̲PLA,
                                   RI, AIG)

         AIG ̲INFO ̲TYPE =           (LAST ̲AIG, NOT ̲LAST ̲AIG)

         ANALYSIS ̲ERROR ̲TYPE =     (NO ̲ERROR,
                                   MISSING ̲DESIGNATOR,
                                   INVALID ̲DESIGNATOR,
                                   DESIGNATOR ̲MISMATCH,
                                   MISSING ̲TSN,
                                   INVALID ̲TSN,
                                   TOO ̲LOW ̲TSN,
                                   UNIDENTIFIED ̲FORMAT ̲LINE,
                                   NO ̲LOCAL ̲HQ ̲FOUND,
                                   ILLEGAL ̲CLASSIFICATION,
                                   ILLEGAL ̲SPECIAL ̲HANDLING,
                                   ILLEGAL ̲PRECEDENCE,
                                   UNKNOWN ̲SYSTEM ̲CODE,
                                   INVALID ̲SCD,
                                   INVALID ̲PARAMETERS,
                                   INVALID ̲SSN,
                                   ILLEGAL ̲MONTH,

         LOCATE ̲TYPE =             (FOUND,
                                    NOT ̲FOUND,
                                    NOT ̲FOUND ̲EOLN)



                                   INVALID ̲DTG,
                                   INVALID ̲RI,
                                   ILLEGAL ̲RI,
                                   INVALID ̲FILE ̲TIME,
                                   INCONSISTENT ̲SSN,
                                   INCONSISTENT ̲SECURITY ̲OPR
                                   ̲SIC,
                                   INVALID ̲OPR ̲SIC,
                                   TOO ̲HIGH ̲CLASSIFICATION,
                                   RELAY ̲ASSISTANCE,
                                   ILLEGAL ̲RELAY ̲INSTRUCTION
                                   MISSING ̲PLA,
                                   MISSING ̲ADDRESS,
                                   RI ̲PLA ̲INCONSISTENCY,
                                   UNKNOWN ̲AIG,
                                   INVALID ̲AIG,
                                   UNKNOWN ̲CLASS ̲WORD,
                                   INVALID ̲CLASS ̲WORD
                                   INCONSISTENT ̲CLASS ̲WORD,
                                   INVALID ̲SPEC ̲WORD
                                   INCONSISTENT ̲SPEC ̲WORD
                                   LIMIT ̲RI ̲EXCEEDED,
                                   LIMIT ̲PLA ̲EXCEEDED):

         Variables:

         PILOT ̲DETECTED:               BOOLEAN
         FL5 ̲DETECTED:                 BOOLEAN
         READDRESSAL ̲DETECTED:         BOOLEAN
         ZGC ̲DETECTED:                 BOOLEAN
         RELAY ̲INSTRUCTION ̲DETECTED:   BOOLEAN
         CAMPS ̲RELAY ̲DETECTED:         BOOLEAN
         CAMPS ̲LOCAL ̲RELAY ̲DETECTED:   BOOLEAN
         GARBLED ̲SIC ̲DETECTED:         BOOLEAN
         EXERSIZE ̲DETECTED:            BOOLEAN
         INTERNAL ̲HANDLING ̲DETECTED:   BOOLEAN
         CLEAR ̲DETECTED:               BOOLEAN
         BELL ̲SIGNAL                   BOOLEAN
         HQ ̲MASK:                      INTEGER





4.2.1.5.9    E̲r̲r̲o̲r̲ ̲H̲a̲n̲d̲l̲i̲n̲g̲ ̲T̲y̲p̲e̲s̲

         The following data-elements are associated to Data
         and Processing Errors.

         T̲y̲p̲e̲

         DATA ̲ERROR ̲TYPE      = (NOT ̲EXPECTED ̲QEL,
                                 ILLEGAL ̲QEL,
                                 VIEW ̲ERROR,
                                 FIELD ̲LIMIT,
                                 FATAL ̲ERROR ̲STOP);

         ERROR ̲FUNCTION ̲TYPE  = (NO ̲ERROR ̲FUNCTION ̲ERR,
                                 RECEIVE ̲FIRST ̲QEL ̲ERR,
                                 GET ̲VIEW ̲ATTRIBUTES ̲ERR,
                                 OPEN ̲VIEW ̲ERR,
                                 READ ̲VIEW ̲ERR,
                                 SEARCH ̲LOCAL ̲RI ̲ERR,
                                 SEARCH ̲LOCAL ̲PLA ̲ERR,
                                 SEARCH ̲LOCAL ̲PLA ̲REF ̲ERR,
                                 SEARCH ̲GLOBAL ̲PLA ̲ERR,
                                 SEARCH ̲AIG ̲ERR,
                                 SEARCH ̲CHANNEL ̲ERR,
                                 SEND ̲REPLY ̲ERR,
                                 RECEIVE ̲LOG ̲COMP ̲ERR,
                                 DISMANTLE ̲LOG ̲COMP ̲ERR,
                                 DISMANTLE ̲COMMAND ̲ERR,
                                 SAVE ̲SENT ̲VIEW ̲ERR,
                                 SAVE ̲RECEIVED ̲VIEW ̲ERR,
                                 CHANGE ̲PROFILE ̲ERR,
                                 CREATE ̲VIEW ̲ERR,
                                 SEARCH ̲SECOND ̲CHANNEL ̲ERR,
                                 WRITE ̲VIEW ̲ERR,
                                 CLOSE ̲VIEW ̲ERR,
                                 RESERVE ̲BUFFER ̲ERR,
                                 WRITE BUFFER ̲ERR,
                                 SEND ̲BUFFER ̲ERR,
                                 DISMANTLE ̲BUFFER ̲ERR,
                                 SEND ̲FOR ̲GARBLE ̲ERR,
                                 SEND ̲FOR ̲INSPECTION ̲ERR,
                                 SEND ̲FLASH ̲MSO ̲ERR,
                                 SEND ̲FOR ̲DISTRIBUTION ̲ERR,
                                 SEND ̲FOR ̲RELEASE ̲ERR,
                                 SEND ̲FOR ̲COORDINATION ̲ERR,
                                 SEND ̲FOR ̲CONVERSION ̲ERR,
                                 SEND ̲FOR ̲RELAYING ̲ERR,
                                 SEND ̲FOR ̲PUNCH ̲ERR,
                                 SEND ̲FLASH ̲PUNCH ̲ERR,
                                 SEND ̲FOR ̲SUPERVISOR ̲ERR,




                                 SEND ̲FOR ̲STORAGE ̲ERR,
                                 SEND ̲FORUMAM ̲ERR,
                                 CLOSE ̲RECEIVED ̲VIEW ̲ERR,
                                 OPEN ̲CREATED ̲VIEW ̲ERR,
                                 SEARCH ̲CCIS ̲RI ̲ERR,
                                 SEND ̲ASM ̲ERR,
                                 DISMANTLE ̲SENT ̲VIEW ̲ERR,
                                 DISMANTLE ̲RECEIVED ̲VIEW ̲ERR)






4.2.1.6  C̲o̲m̲m̲o̲n̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲

         This section will describe the shared procedures of
         the Analysis Subpackage.



4.2.1.6.1    C̲o̲m̲m̲o̲n̲ ̲C̲o̲n̲t̲r̲o̲l̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲


4.2.1.6.1.1 D̲a̲t̲a̲ ̲E̲r̲r̲o̲r̲ ̲

         The function of the Data Error procedure is to send
         none acceptable Queue Elements received via the Analysis
         Queue to the GAQ-queue served by SSC for print-out
         at the Operator position.

         The QEL can be sent into the GAQ ̲QUEUE for the following
         reasons:

         -   reception of a QEL from the Log-comp. subqueue
             was not expected.

         -   the parameters of the QEL-header received was illegal

         -   the expected minimum of fields were not present
             in a received view.

         -   the maximum number of fields created in a field
             group was exceeded; this can happen if a message
             is not accepted as valid after 32 MSO-invocations
             for garble correction.

         The reason will be printed together with the contents
         of the QEL ̲Header and the Message ̲contents using the
         USER ̲CC.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         DATA ̲ERROR (R5: DATA ̲ERROR ̲TYPE
                     R6: LINK) (  )

         L̲o̲c̲a̲l̲ ̲D̲a̲t̲a̲

         GARBLE ̲PARAM  : GARBLE ̲PARAMS



         D̲A̲T̲A̲ ̲E̲R̲R̲O̲R̲ ̲(DATA ̲ERROR) (  )


         USER ̲ACTION = CONTINUE


         ERROR ̲TYPE = QERROR


         QEL = QEL ̲REF


         USING QERROR ̲INF:


             RECEIVING ̲Q.MAINQUEUE = ANQ

             RECEIVING ̲Q.SUBQUEUE = RECEIVE ̲SUBQUEUE

             ORIGINAL ̲SENDER = 1

             USER ̲CC = DATA ̲ERROR


         SEND ̲GARBLE (USER ̲ACTION,
                      ERROR ̲TYPE,
                      QEL,
                      ERROR ̲INF) (  ): OK


         RETURN


4.2.1.6.1.2 P̲r̲o̲c̲e̲s̲s̲i̲n̲g̲ ̲E̲r̲r̲o̲r̲ ̲

         The function of the Processing Error procedure is to
         report a processing error to SSC; the report will in
         most cases result in retirement of the Analysis Process,
         so this module will assign specific registers with
         debugging-values (ERROR ̲FUNCTION) before the report
         is sent. But first the view is sent into the GAQ-queue
         using the Data error procedure.

         If the completion-code returned from the system ̲call
         matches the acceptable error-code, the module calling
         this module will itself handle the situation; otherwise
         SSC will retire the processing. When the process is
         retired the register contents will be displayed at
         the operator position, in order to achieve a quick
         debugging facility, R1 will contain the Function ̲Error
         type in this dump.

         If the acceptable ̲CC relates to the CREATE ̲VIEW function,
         the Data Error module will in addition be invoked for
         removal of the received view.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         PROCESSING ̲ERROR    (R4: SAVE ̲LINK TMP ̲CALLS,
                              R5: ERROR ̲FUNCTION ̲TYPE,
                              R7: ERROR ̲CODE SYSTEM ̲CALL
                             (R6: LINK)(  )


         P̲R̲O̲C̲E̲S̲S̲I̲N̲G̲ ̲E̲R̲R̲O̲R̲ ̲(CC, ERROR ̲FUNCTION, SAVE ̲LINK
                           ACCEPT ̲CC)(CC)


         DATA ̲ERROR (FATAL ̲ERROR ̲STOP)


         CASE  ERROR ̲FUNCTION OF:


             CREATE ̲VIEW ̲ERR:       ANALYZE ̲ERROR (CC, 1, 
                                    VIEW ̲OVERFLOW,
                                    ACCEPT ̲CC) (CC)


             OTHERWISE ANALYZE ̲ERROR (CC, O, NO ̲ACCEPT,
                                      ACCEPT ̲CC) (CC)


         RETURN


4.2.1.6.1.3 F̲L̲ ̲C̲o̲n̲t̲r̲o̲l̲

         The FL ̲Control procedure has the function to locate
         the next Format ̲line containing legal data and to set
         up a pointer to this FL, the length of the FL and an
         Area ̲code indicating the Field in where the next ̲FL
         had been located. FLs containing control-characters
         will be considered as errorneous and the SEND ̲FOR ̲GARBLE
         boolean is therefore set to true if such line is detected.

         The procedure is shared between the Analysis Control
         Module and the Garble Reentering Module.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         FL ̲CONTROL  (R7:  FL ̲READ ̲TYPE,
                      R6:  LINK)

                     (R0:  FL ̲POINTER,
                      R3:  FL ̲AREA,
                      R4:  FL ̲LENGTH
                      R5:  COMPLETION)

         E̲x̲t̲e̲r̲n̲a̲l̲ ̲D̲a̲t̲a̲:̲

         FL ̲NUMBER         (m)
         IOC ̲RECORD ̲TYPE   
         FL ̲AREA ̲TYPE
         TEXT ̲POINTER
         TEXT ̲ENDING ̲POINTER
         ACP ̲PARAMS ̲POINTER
         QEL ̲ATTRIBUTE     (m)



         F̲L̲ ̲C̲O̲N̲T̲R̲O̲L̲ (FL ̲POINTER)(FL ̲POINTER, FL ̲AREA)


         LEGAL ̲LINE = FALSE

         LOOP LEGAL ̲LINE:

             FL ̲POINTER = FL ̲POINTER + FLA ̲LENGTH

             FL ̲NUMBER = FL ̲NUMBER + 1

             FL ̲LENGTH = FL ̲POINTER + IOC ̲BYTE ̲COUNT

             FL ̲POINTER + ICO ̲FLAG = NORMAL ̲TERMINATED?

                                       LEGAL ̲LINE = TRUE

             SEND ̲FOR ̲GARBLE = TRUE

             CASE = FL ̲POINTER OF:

                 LT TEXT ̲POINTER?      FL ̲AREA = HEADER

                 EQ TEXT ̲POINTER?      FL ̲AREA = TEXT ̲BEGIN

                 GT TEXT ̲POINTER?      FL ̲AREA = TEXT

             END FL ̲POINTER CASE

             FL ̲POINTER GE TEXT ̲ENDING ̲POINTER? FL.AREA =
                                                  TEXT ̲ENDING

             FL ̲POINTER GE ACP ̲PARAMS ̲POINTER? FL.AREA =
                                                  TEXT ̲FINISH

             FL ̲POINTER = FL ̲POINTER + IOC ̲RECORD ̲SIZE

         END LEGAL ̲LINE LOOP


         RETURN





4.2.1.6.1.4 E̲r̲r̲o̲r̲ ̲C̲o̲l̲l̲e̲c̲t̲i̲o̲n̲

         Management of the Error-list of the ACP-Parameter-
         field; receives error-codes from the analysis-modules
         and collects these plus analysis FL-number; duplicate
         errors (same FL and same code)are not updated; if the
         maximum errors are reached no update is performed either.
         An error can be sorted into the Error-list based on
         the FL-number:

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲:̲

         ERROR ̲COLLECTION   (R5: ANALYSIS ̲ERROR                      
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     R6:
                                                                     LINK)()

         E̲x̲t̲e̲r̲n̲a̲l̲ ̲D̲a̲t̲a̲

         FL ̲NUMBER
         ANALYSIS ̲ERROR ̲TYPE
         ACP ̲PARAMS.NO ̲OF ̲ERRORS       (m)
         ACP ̲PARAMS.ERROR ̲LIST         (m)



4.2.1.6.1.5 S̲e̲n̲d̲ ̲M̲e̲s̲s̲a̲g̲e̲

         Sends a QEL referenced via the SEND ̲QEL ̲REF and
         SEND ̲PARAMS to the queue specified in QUEUE ̲REF; it
         receives as input the delivery-type for use in case
         of processing-error.


         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         SEND ̲MESSAGE          (R5:  DELIVERY ̲TYPE,
                                R6:  LINK) (  )

         E̲x̲t̲e̲r̲n̲a̲l̲ ̲D̲a̲t̲a̲:

         SEND ̲QEL
         SEND ̲PARAMS
         QUEUE ̲REF




4.2.1.6.1.6 M̲o̲v̲e̲ ̲C̲h̲a̲r̲a̲c̲t̲e̲r̲s̲

         Moves a character ̲string from one location to another.

         The locations TO and FROM may be on byte boundary.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         MOVE ̲CHARACTER       (R0:  No of characters
                                R1:  From address
                                R2:  From byte index
                                R3:  To address
                                R4:  To byte index
                                R6:  Link)
                               (R2:  New from index
                                R4:  New to index)



4.2.1.6.1.7 I̲n̲s̲e̲r̲t̲ ̲c̲h̲a̲r̲a̲c̲t̲e̲r̲s̲

         Inserts the wanted character as many times specified
         in the location delivered as input.

         The input location may be on byte boundary.

         C̲a̲l̲l̲ ̲s̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         INSERT ̲CHARACTER       R0:  No of characters,
                                R1:  Start address,
                                R2:  Start byte index,
                                R3:  Insert character
                                R6:  Link)  (  )



4.2.1.6.2    C̲o̲m̲m̲o̲n̲ ̲v̲a̲l̲i̲d̲a̲t̲i̲o̲n̲ ̲p̲r̲o̲c̲e̲d̲u̲r̲e̲s̲



4.2.1.6.2.1 A̲n̲a̲l̲y̲s̲e̲ ̲A̲l̲p̲h̲a̲

         Validates a number of consecutive alpha characters
         (ASCII); this procedure is used for validation of Channel
         Designators, SICs, etc.



         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYSE ̲ALPHA         (R0: FL ̲POINTER
                                R1: NUMBER ̲OF ̲CHAR
                                R6: LINK)
                               (R1: NEW ̲FL ̲POINTER
                                R5: CC)



4.2.1.6.2.2  A̲n̲a̲l̲y̲s̲e̲ ̲N̲u̲m̲e̲r̲i̲c̲

         Validates a number of consecutive numeric characters
         (ASCII); this procedure is used for validation of TSN,
         SSN, etc.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYSE ̲NUMERIC       (R0: FL ̲POINTER
                                R1:  NUMBER ̲OF ̲CHAR
                                R6:  LINK)
                                R1:  NEW ̲FL ̲POINTER
                                R5:  CC)


4.2.1.6.2.3 L̲o̲c̲a̲t̲e̲ ̲a̲f̲t̲e̲r̲ ̲C̲h̲a̲r̲a̲c̲t̲e̲r̲

         Receives a pointer and a character-value as input;
         searches the line for that character or a sequence
         of that character ̲type; returns the position after
         the character (sequence) or a NOT ̲OK completion.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         LOCATE ̲AFTER ̲CHARACTER        (R0:       FL ̲POINTER
                                        R5:       CHARACTER
                                        R6:       LINK)
                                       (R1:       NEW ̲FL ̲POINTER
                                        R5:       CC



4.2.1.6.2.4 L̲o̲c̲a̲t̲e̲ ̲a̲f̲t̲e̲r̲ ̲S̲p̲a̲c̲e̲

         From the position of a FL the next valid character
         after a (sequence) of space(s) will be located and
         a pointer to that delivered as output; if the position
         pointed out as input is not a space, then a space will
         be searched first before described procedure; the detect
         of EOLN is equivalent to detect of a space.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲:̲

         LOCATE ̲AFTER ̲SPACE          (R0:         FL ̲POINTER
                                      R6:         LINK)
                                     (R1:         NEW ̲FL ̲POINTER
                                      R5:         CC)



4.2.1.6.2.5 L̲o̲c̲a̲t̲e̲ ̲C̲h̲a̲r̲a̲c̲t̲e̲r̲

         Receives a pointer of a format-line and a character
         to be searched; if found before the line is terminated
         it returns the position, otherwise a Not-ok completion.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         LOCATE ̲CHARACTER     (R0:     FL ̲POINTER
                               R5:     CHARACTER
                               R6:     LINK)
                              (R0:     NEW ̲FL ̲POINTER
                               R5:     CC)




4.2.1.6.2.6 F̲o̲r̲m̲a̲t̲ ̲L̲i̲n̲e̲ ̲D̲e̲t̲e̲c̲t̲i̲o̲n̲

         Receives a pointer to a string and another pointer
         to a compare string plus the length of it.

         Compares the two strings and returns a OK or Not ̲OK
         completion.

         This procedure is mainly used to detect the start-sequence
         of a format line.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         FL ̲DETECTION       (RO:       FL ̲pointer,
                             R2:       Address detection parameter
                             R3:       Length detection parameter,
                             R6:       LINK)
                            (R1:       New FL-pointer                  R5: CC)


4.2.1.6.2.7 A̲S̲C̲I̲I̲ ̲t̲o̲ ̲B̲i̲n̲a̲r̲y̲

         This procedure converts up to 4 already validated ASCII
         numeric characters into a binary value.

         C̲a̲l̲l̲ ̲s̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ASCII ̲BINARY       (RO:       FL ̲pointer,
                             R1:       Number of characters
                             R6:       LINK)
                            (R2:       Binary value)


4.2.1.6.3    C̲o̲m̲m̲o̲n̲ ̲A̲n̲a̲l̲y̲s̲i̲s̲ ̲p̲r̲o̲c̲e̲d̲u̲r̲e̲s̲



4.2.1.6.3.1 A̲n̲a̲l̲y̲s̲e̲ ̲C̲l̲a̲s̲s̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         Locates the most used characters out of 5. It receives
         a pointer to the first character  Returns the class-type
         or a Not ̲ok completion.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYSE ̲CLASS       (R0:      FL ̲POINTER
                              R6:      LINK)
                             (R0:      NEW ̲FL ̲POINTER
                              R4:      CLASS ̲TYPE
                              R5:      CC)


4.2.1.6.3.2 A̲n̲a̲l̲y̲s̲e̲ ̲S̲p̲e̲c̲i̲a̲l̲ ̲H̲a̲n̲d̲l̲i̲n̲g̲

         Locates the most used characters out of 5. It receives
         a pointer to the first character  Returns the spec
         handl type or a Not ̲ok completion.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYSE ̲SPEC        (R0:      FL ̲POINTER
                              R6:      LINK)
                             (R0:      NEW ̲FL ̲POINTER
                              R4:      SPEC ̲HANDL ̲TYPE
                              R5:      CC)



4.2.1.6.3.3 A̲n̲a̲l̲y̲s̲e̲ ̲P̲r̲e̲c̲e̲d̲e̲n̲c̲e̲

         Analysis of a character assumed to be a legal precedence
         prosign; if correct the Precedence-type is returned,
         otherwise a Not ̲Ok Completion.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYZE ̲PRECEDENCE   (R0:     FL ̲POINTER
                               R6:     LINK)
                              (R4:     PRECEDENCE ̲TYPE,
                               R5:     CC)





4.2.1.6.3.4 A̲n̲a̲l̲y̲s̲e̲ ̲S̲y̲s̲t̲e̲m̲ ̲C̲o̲d̲e̲

         Analysis of a character assumed to be a system-code
         (ACCIS, SCARS, CAMPS) preceding a SCD. The system-code
         or a negative completion-code will be returned.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYSE ̲SYSTEM ̲CODE  (R0:     FL ̲POINTER,
                               R6:     LINK)
                              (R4:     SYSTEM ̲CODE ̲TYPE,
                               R5:     CC)

4.2.1.6.3.5 A̲n̲a̲l̲y̲s̲e̲ ̲R̲I̲

         Receives a pointer to the start of an assumed RI; the
         first character is validated for R or U and the length
         until next space or EOLN validated against RI ̲LENGTH
         ̲MAX and RI ̲LENGTH ̲MIN; the result is reported back
         in an OK/NOT ̲OK Completion Code.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYSE ̲RI  (R0:     FL ̲POINTER,
                      R6:     LINK)
                     (R1:     NEW ̲FL ̲POINTER,
                      R5:     CC)



4.2.1.6.3.6 A̲n̲a̲l̲y̲s̲e̲ ̲M̲o̲n̲t̲h̲

         Receives a pointer to the start of a 3 letter sequence
         assumed to represent a month in abbreviated form; the
         sequence is validated against a range of months and
         a completion is returned.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYSE ̲MONTH       (R0:      FL ̲POINTER,
                              R6:      LINK)
                             (R5:      CC)


4.2.1.6.3.7 A̲n̲a̲l̲y̲s̲e̲ ̲O̲p̲e̲r̲a̲t̲i̲n̲g̲ ̲S̲i̲g̲n̲a̲l̲

         Receives a pointer to the assumed start of an operating
         signal; this operating signal is validated for syntax
         and semantics, that is:

         The first group (until space or EOLN) is validated,
         and the remaining groups (if any) are considered as
         text associated to be the operating signal.

         Pointers to start and ending are returned or a Not
         ̲OK completion.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYSE ̲OPR ̲SIG               (RO:       FL ̲POINTER
                                        R6        LINK)
                                       (R1:       END ̲FL ̲POINTER
                                        R5:       CC)




         A̲N̲A̲L̲Y̲S̲E̲ ̲O̲P̲R̲ ̲S̲I̲G̲ (FL)(FLN,CC)


         CC = NOT ̲OK

         FL(1) NE
         "Z" or "Q"

         FLN = FL + (OPR ̲SIG ̲SIZE + 1)

         LOOP ̲DIGITS

             FLN (1) = SPACE
             OR EOLN?                  CC = OK
                                         EXIT LOOP

             ANALYSE ̲NUMERIC (FLN, 1)(FLN,CC)

             CC = NOT ̲OK?  EXIT LOOP

         END DIGIT LOOP

         LOCATE ̲CHARACTER (FLN, IOC ̲SEPARATOR) (FLN, CC)

         FLN = FLN = 1

         RETURN



4.2.1.6.4    C̲o̲m̲m̲o̲n̲ ̲U̲p̲d̲a̲t̲e̲ ̲p̲r̲o̲c̲e̲d̲u̲r̲e̲s̲


4.2.1.6.4.1 U̲p̲d̲a̲t̲e̲ ̲S̲p̲e̲c̲.̲-̲H̲a̲n̲d̲l̲i̲n̲g̲

         Maintains the special handling data-element of the
         Administration Field.

         Receives a special handling instruction of scalar-type
         and provides update of above described data-element
         accordingly.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         UPDATE ̲SPEC ̲HANDLING          (R4: SPEC ̲HANDL ̲TYPE,
                                        R6: LINK) (  )

         E̲x̲t̲e̲r̲n̲a̲l̲ ̲D̲a̲t̲a̲

         ADMINISTRATION.SPEC ̲HANDL ̲INSTR          (m)
         ADMINISTRATION.NUMBER ̲OF ̲SPEC ̲HANDL      (m)


4.2.1.6.4.2 U̲p̲d̲a̲t̲e̲ ̲P̲L̲A̲ ̲R̲I̲

         Input is the addressal-type (DYNAMIC, STATIC), the
         RI-category, PLA ̲ref and pointers to start and ending
         of an RI.

         The function is to update an PLA ̲RI Record in accordance
         with this information. See flowgram for details.

         If the space for PLA ̲RI ̲records should be exceeded
         a Not ̲OK completion is returned.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         UPDATE ̲PLA ̲RI (R0:            RI ̲START ̲POINTER
                        R1:            RI ̲END ̲POINTER
                        R2:            PLA ̲REF
                        R3:            ADS ̲OFFSET
                        R4:            ADDRESSAL
                        R5:            RI ̲CAT
                        R6:            LINK)
                       (R5:            CC)

         E̲x̲t̲e̲r̲n̲a̲l̲ ̲D̲a̲t̲a̲

         PLA ̲RI ̲DYNAMIC ̲COUNT          (U)
         PLA ̲RI.STATIC ̲COUNT           (U)
         PLA ̲RI ̲RECORD                 (U)



         U̲P̲D̲A̲T̲E̲ ̲P̲L̲A̲ ̲R̲I (ADDRESSAL, RI ̲CAT, PLA ̲REF, FL, FLN,
                       
                       ADS ̲OFFSET)


         WRITE ̲PLA ̲RI = TRUE

         CASE ADDRESSAL OF:

             DYNAMIC:  INCREMENT PLA ̲RI.DYNAMIC ̲COUNT

                       USE PLA ̲RI ̲RECORD (DYNAMIC ̲COUNT)

             STATIC:   INCREMENT PLA ̲RI.STATIC ̲COUNT

                       USE PLA ̲RI ̲RECORD (STATIC ̲COUNT)

         END ADDRESSAL CASE

         PLA ̲REF, PLA ̲OFFSET, PLA ̲MASK, RI ̲MASK = ZERO

         PLA ̲RI, SELECTED ̲RI = SPACE

         CASE RI ̲CAT OF:

         AIG:        PLA ̲OFFSET = ADS ̲OFFSET
                     PLA ̲MASK = REF ̲AIG
                     PLA ̲REF = PLA ̲REF

         RELAY ̲RI:   SELECTED ̲RI = FL (1..(FLN-FL))
                     RI ̲MASK = RELAY ̲RI

         PILOT ̲RI:   SELECTED ̲RI = FL (1..(FLN-FL))
                     RI ̲MASK = SECONDARY ̲RI

         ZEN:        PLA ̲RI = FL)1..(FLN-FL))
                     PLA ̲MASK = ZEN, REF ̲PLA
                     PLA ̲OFFSET = ADS ̲OFFSET

         X ̲PLA:      PLA ̲RI = FL(1..(FLN-FL))
                     PLA ̲MASK = X ̲PLA, REF ̲PLA
                     PLA ̲OFFSET = ADS ̲OFFSET

         continued



         Continued  UPDATE ̲PLA ̲RI


         NEW ̲RI:     PLA ̲RI = FL (1..(FLN-FL))
                     PLA ̲OFFSET = ADS ̲OFFSET
                     PLA ̲REF = PLA ̲REF
                     PLA ̲MASK = REF ̲PLA

         OLD ̲RI:     PLA ̲RI = FL(1..(FLN-FL))
                     SELECTED ̲RI = PLA ̲RI
                     PLA ̲OFFSET = ADS ̲OFFSET
                     PLA ̲REF = PLA ̲REF
                     PLA ̲MASK = REF ̲PLA

         OTHERWISE:  SELECTED = FL(1..(FLN-FL))

         END RI ̲CAT CASE

         RETURN



4.2.1.6.4.3 U̲p̲d̲a̲t̲e̲ ̲O̲p̲r̲-̲S̲i̲g̲n̲a̲l̲

         Inserts a character-string containing at least one
         operating signal at the beginning of the proper place
         of the administration-field; it receives pointers to
         the string, the format-line-type and a dynamic/static
         indication as input.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         UPDATE ̲OPR ̲SIG            (R0:           OPR ̲START
                                                  ̲POINTER
                                    R1:           OPR ̲END ̲POINTER
                                    R2:           ANALYSIS ̲FL
                                    R4:           OPR ̲FUNCITON
                                    R6:           LINK) ( )

         E̲x̲t̲e̲r̲n̲a̲l̲ ̲D̲a̲t̲a̲:̲

         ADMINISTRATION.MSG ̲HANDL      (m)
         ADMINISTRATION.OPR ̲SIG ̲CHAR ̲COUNT        (m)



         U̲P̲D̲A̲T̲E̲ ̲O̲P̲R̲ ̲S̲I̲G̲ (FL, FLN, ANALYSIS ̲FL, OPR ̲FL)()


         CASE OPR ̲FL OF:

             DYNAMIC   CASE ANALYSIS ̲FL OF:

                         FL4: OPR ̲POINTER = ADMINISTRATION.
                              MSG ̲HANDL ̲FL4 ̲DYNAMIC
                              NUMBER ̲OF ̲FL4 ̲D ̲CHAR = FLN - FL

                         FL5: OPR ̲POINTER = ADMINISTRATION.
                              MSG ̲HANDL ̲FL5 ̲DYNAMIC
                              NUMBER ̲OF ̲FL5 ̲D ̲CHAR = FLN - FL

                       END ANALYSIS ̲FL CASE

             STATIC:   CASE ANALYSIS ̲FL OF:

                         FL4: OPR ̲POINTER = ADMINISTRATION
                              MSG ̲HANDL ̲FL4 ̲DYNAMIC
                              NUMBER ̲OF ̲FL4 ̲D ̲CHAR = FLN - FL

                         FL5: OPR ̲POINTER = ADMINISTRATION
                              MSG ̲HANDL ̲FL5 ̲DYNAMIC
                              NUMBER ̲OF ̲FL5 ̲D ̲CHAR = FLN - FL

                       END ANALYSIS ̲FL CASE

         END OPR ̲FL CASE

         OPR ̲POINTER (1..(FLN-FL)) = FL(1..(FLN-FL))

         RETURN



4.2.1.6.4.4 L̲o̲c̲a̲t̲e̲ ̲P̲L̲A̲ ̲R̲E̲F̲

         Receives a PLA ̲REF and a PLA ̲REF ̲FUNCTION (REF ̲ALL,
         REF ̲PLA, REF ̲AIG) as input; locates an dynamic PLA
         ̲RI-record with match on this information.

         Returns a pointer to the found PLA ̲RI ̲record or a NOT
         ̲FOUND completion.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         LOCATE ̲PLA ̲REF       (R2:     PLA ̲REF
                               R4:     PLA ̲REF ̲FUNCTION
                               R6:     LINK)
                              (R3:     AIG ̲INFO ̲TYPE,
                               R4:     PLA ̲RI ̲REC ̲POINTER
                               R5:     CC)

         E̲x̲t̲e̲r̲n̲a̲l̲ ̲D̲a̲t̲a̲:̲

         PLA ̲RI ̲DYNAMIC ̲COUNT
         PLA ̲RI ̲RECORD ̲TYPE



4.2.1.6.4.5 L̲o̲c̲a̲t̲e̲ ̲P̲L̲A̲ ̲R̲I̲

         Receives pointers to start and ending a string containing
         an RI; locates a dynamic PLA ̲RI ̲record with match upon
         the selected RI and a cleared RI ̲mask. Returns a pointer
         to the found PLA ̲RI ̲record or a NOT ̲FOUND completion.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲:̲

         LOCATE ̲PLA ̲RI        (R0:     RI ̲START ̲POINTER
                               R1:     RI ̲END ̲POINTER
                               R6:     LINK)
                              (R3:     PLA ̲REF ̲FUNCTION
                               R4:     PLA ̲RI ̲REC ̲POINTER,
                               R5:     CC)

         E̲x̲t̲e̲r̲n̲a̲l̲ ̲D̲a̲t̲a̲:̲

         PLA ̲RI ̲DYNAMIC ̲COUNT
         PLA ̲RI ̲RECORD ̲TYPE





4.2.1.6.4.6 D̲e̲l̲e̲t̲e̲ ̲P̲L̲A̲ ̲R̲I̲

         Receives a pointer to the dynamic PLA ̲RI ̲record that
         shall be deleted; overwrites this record with the contents
         of the following records (if any) and decrements finally
         the PLA ̲RI ̲DYNAMIC ̲COUNT.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         DELETE ̲PLA ̲RI        (R4:     PLA ̲RI ̲REC ̲POINTER
                               R6:     LINK) ( )

         E̲x̲t̲e̲r̲n̲a̲l̲ ̲D̲a̲t̲a̲:̲

         PLA ̲RI ̲DYNAMIC ̲COUNT (m)
         PLA ̲RI ̲RECORD        (d)

4.2.1.6.4.7 D̲e̲l̲e̲t̲e̲ ̲P̲L̲A̲ ̲r̲e̲f̲.̲

         Receives a pointer to a dynamic PLA ̲RI ̲record referring
         an AIG. The PLA ̲ref of that record shall be reset.

         C̲a̲l̲l̲ ̲s̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         DELETE ̲PLA ̲REF       (R4:     PLA ̲RI ̲REC ̲POINTER,
                               R6:     LINK) (  )


4.2.1.6.4.8 U̲p̲d̲a̲t̲e̲ ̲A̲d̲d̲r̲e̲s̲s̲

         Receives pointers to the start and ending of an address
         to be appended to the address-field-records. Also it
         receives information to maintain a prefix to preceed
         the address and information necessary for maintenance
         of the administration ̲field address-counters and offsets.

         If the space for address ̲records is exceeded a Not
         ̲OK completion is returned.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲:̲

         UPDATE ̲ADDRESS  (R0: START ̲ADS ̲POINTER
                               R1:     END ̲ADS ̲POINTER
                               R2:     ANALYSIS ̲FL ̲TYPE
                               R4:     ADDRESSAL
                               R5:     PREFIX ̲TYPE
                               R7:     FIRST ̲FL ̲INDICATOR)
                               R6:     LINK)
                              (R3:     ADS ̲OFFSET
                               R5:     CC)

         E̲x̲t̲e̲r̲n̲a̲l̲ ̲D̲a̲t̲a̲

         ADDRESS ̲RECORD                (u)
         ADDRESS ̲POINTER
         ADDRESS ̲WORK ̲POINTER                     (m)
         ADMINISTRATION.GROUP ̲ADS ̲OFFSETS         (m)
         ADMINISTRATION.GROUP ̲ADS ̲COUNTS          (m)



         U̲P̲D̲A̲T̲E̲ ̲A̲D̲D̲R̲E̲S̲S̲  (FL, FLN, ADDRESSAL, FIRST ̲FL, PREFIX
                         ANALYSIS ̲FL, ADS ̲OFFSET)

         WRITE ̲ADDRESS = TRUE

         ADS ̲OFFSET = ADDRESS ̲POINTER - ADDRESS ̲WORK ̲POINTER

         FLW = ADDRESS ̲WORK ̲POINTER + IOC ̲RECORD ̲SIZE

         NEXT ̲FL = FL3? FLW = ADDRESS ̲POINTER + IOC ̲RECORD ̲SIZE

         CASE PREFIX OF:

             NONE:   FLW = FLW

             SINGLE: FLW (1..4) = SPACE
             RI ̲AIG  FLW = FLW + 4

             ZEN:    FLW(1..4) = "ZEN/"
                     FLW = FLW + 4

             X ̲PLA:  FLW (1..4) = "X
                     FLW = FLW + 4

         END PREFIX CASE

         FLW (1..(FLN ̲FL)) = FL(1..(FLN ̲FL))

         FLW = FLW + (FLN-FL)

         ADDRESS ̲WORK ̲POINTER (1) = IOC ̲START ̲BYTE

         ADDRESS ̲WORK ̲POINTER (IOC ̲FLAG) = NORMAL ̲TERMINATED

         ADDRESS ̲WORK ̲POINTER (IOC ̲BYTE ̲COUNT) =
                              FLW - ADDRESS ̲WORK ̲POINTER


         Continued



         Continued UPDATE ̲ADDRESS

         USING ADMINISTRATION ̲FIELD

         CASE DYNAMIC OF:

             FL2:    INCREMENT NUMBER ̲OF ̲TO ̲ADD
                     FIRST ̲FL = FALSE?
                     GROUP ̲TO ̲OFFSET = ADS ̲OFFSET

             FL3:    FLW (FLW..MAX ̲RI ̲SIZE) = SPACE

             FL6:    GROUP ̲FM ̲OFFSET = ADS ̲OFFSET

             FL7:    INCREMENT NUMBER ̲OF ̲TO ̲ADD
                     FIRST ̲FL = FALSE?
                     GROUP ̲TO ̲OFFSET = ADS ̲OFFSET

             FL8:    INCREMENT NUMBER ̲OF ̲INFO ̲ADD
                     FIRST ̲FL = FALSE?
                     GROUP ̲INFO ̲OFFSET = ADS ̲OFFSET

             FL9:    INCREMENT NUMBER ̲OF ̲XMT ̲ADD
                     FIRST ̲FL = FALSE?
                     GROUP ̲XMT ̲OFFSET = ADS ̲OFFSET

         END DYNAMIC ̲CASE

         CASE STATIC OF:

             FL6:    GROUP ̲READD ̲FM ̲OFFSET = ADS ̲OFFSET
             FL7:    INCREMENT NUMBER ̲OF ̲READD ̲TO ̲ADD
                     FIRST ̲FL = FALSE?
                     GROUP ̲READD ̲TO ̲OFFSET = ADS ̲OFFSET

             FL8:    INCREMENT NUMBER ̲OF ̲READD ̲TO ̲ADD
                     FIRST ̲FL = FALSE?
                     GROUP ̲READD ̲INFO ̲OFFSET = ADS ̲OFFSET

             FL9:    INCREMENT NUMBER ̲OF ̲READD ̲TO ̲ADD
                     FIRST ̲FL = FALSE?
                     GROUP ̲READD ̲XMT ̲OFFSET = ADS ̲OFFSET

         END STATIC CASE

         ANALYSIS ̲FL =   FL3? ADD ADS ̲RECORD ̲LENGTH TO ADDRESS
                         ̲WORK ̲POINTER

         RETURN



4.2.1.6.5    C̲o̲m̲m̲o̲n̲ ̲S̲e̲a̲r̲c̲h̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲



4.2.1.6.5.1 S̲e̲a̲r̲c̲h̲ ̲L̲o̲c̲a̲l̲ ̲P̲L̲A̲

         Receives pointers to start and ending of a string assumed
         to contain a local PLA. The PLA is expanded with spaces
         until MAX ̲LOCAL ̲PLA ̲LENGTH/or decreased to that length
         before it is used as input to a TMP-search in the local
         PLA-table. The output is the associated PLA-ref and
         HQ-number or a NOT ̲OK Completion.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         SEARCH ̲CAMPS ̲PLA              (R0:  PLA ̲START ̲POINTER
                                        R1:  PLA ̲END ̲POINTER
                                        R6:  LINK)
                                       (R2:  PLA ̲REF
                                        R4:  HQ ̲NUMBER
                                        R5:  CC)



         S̲E̲A̲R̲C̲H̲ ̲L̲O̲C̲A̲L̲ ̲P̲L̲A̲ ̲T̲A̲B̲L̲E̲ (FL,FLN)(PLA ̲REF, HQ,CC)


         EQUIVALENCE (PLA ̲KEY = KEY ̲AREA)

         EQUIVALENCE (LOCAL ̲PLA ̲RESULT = RESULT ̲AREA)

         PLA (1..(FLN-FL)) = FL(1..(FLN- FL)

         PLA ((FLN-FL)..MAX ̲LOCAL ̲PLA ̲LENGTH) = SPACE

         SEARCH ̲PRIMATY ̲KEY   (LOCAL ̲PLA ̲TABLE ̲ID,
                              PRIMARY ̲LOCAL ̲PLA ̲TYPE
                              KEY ̲AREA ̲POINTER, 1
                              RESULT ̲AREA ̲POINTER, 2
                              LOCAL ̲PLA ̲RESULT)
                              (CC): ERROR ̲OK

         ERROR? PROCESSING ̲ERROR (CC, SEARCH ̲LOCAL ̲PLA, NO ̲ACCEPT)()

         KEY ̲IDENT.COUNT = ZERO? CC = NOT ̲OK

         CC = OK

         PLA ̲REF = LOCAL ̲PLA ̲RESULT.PLA ̲REF

         HQ = LOCAL ̲PLA ̲RESULT ̲HQ

         RETURN



4.2.1.6.5.2 S̲e̲a̲r̲c̲h̲ ̲P̲L̲A̲

         Receives pointers to the start and ending of a string
         assumed to be a global PLA. The PLA is expanded with
         spaces until MAX ̲PLA ̲LENGTH before it is used as input
         to a TMP-search in the global PLA ̲table. The output
         from this procedure is the associated PLA ̲ref or a
         NOT ̲OK completion.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         SEARCH ̲PLA           (R0:     PLA ̲START ̲POINTER,
                               R1:     PLA ̲END ̲POINTER
                               R6:     LINK)
                              (R2:     PLA ̲REF
                               R5:     CC)



         S̲E̲A̲R̲C̲H̲ ̲P̲L̲A̲ ̲T̲A̲B̲L̲E̲  (FL, FLN)(PLA ̲REF, HQ, CC)

         EQUIVALENCE (PLA ̲KEY = KEY ̲AREA)

         EQUIVALENCE (PLA ̲RESULT = RESULT ̲AREA)

         PLA (1..(FLN - FL)) = FL (1..(FLN-FL)

         PLA ((FLN-FL)..MAX ̲PLA ̲LENGTH)) = SPACE

         SEARCH ̲PRIMARY ̲KEY   (PLA ̲TABLE ̲ID,
                              PRIMARY ̲PLA ̲TYPE,
                              KEY ̲AREA ̲POINTER, 1,
                              RESULT ̲AREA ̲POINTER,
                              PLA ̲RESULT)
                              (CC): ERROR ̲OK

         ERROR? PROCESSING ̲ERROR  (CC, SEARCH ̲PLA ̲TABLE, NO
         ̲ACCEPT)()

         KEY ̲IDENT.COUNT = ZERO? CC = NOT ̲OK

         CC = OK

         PLA ̲REF = PLA ̲RESULT.PLA ̲REF

         CC = OK

         PLA ̲REF = PLA ̲RESULT.PLA ̲REF

         RETURN





4.2.1.6.5.3 S̲e̲a̲r̲c̲h̲ ̲C̲C̲I̲S̲ ̲R̲I̲

         Delivers the Routing ̲Indicator associated to CCIS found
         in the Local ̲RI ̲table.

         This is done to narrative already released messages
         incoming from CCIS.

         C̲a̲l̲l̲ ̲s̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         SEARCH ̲CCIS ̲RI       (R6:     LINK)
                              (R4:     Address CCIS ̲RI
                               R5:     CC)



4.2.1.6.5.4 S̲e̲a̲r̲c̲h̲ ̲L̲o̲c̲a̲l̲ ̲R̲I̲

         Receives pointers to the beginning and ending of an
         already validated RI.

         The RI is used as key in a search into the local ̲RI-table.

         Depending on the result the RI ̲CATEGORIES = (UNKNOWN
         ̲RI, LOCAL ̲RI, LOCAL ̲SC) is returned.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         SEARCH ̲LOCAL ̲RI         (R0:  RI ̲START ̲POINTER
                                  R1:  RI ̲END ̲POINTER
                                  R6:  LINK)
                                 (R5:  RI ̲CATEGORY ̲TYPE)




         S̲E̲A̲R̲C̲H̲ ̲L̲O̲C̲A̲L̲ ̲R̲I̲ ̲T̲A̲B̲L̲E̲ (FL, FLN) (RI ̲CAT)


         EQUIVALENCE (LOCAL ̲RI ̲KEY = KEY ̲AREA)

         EQUIVALENCE (LOCAL ̲RI ̲RESULT = RESULT ̲AREA)

         ROUTING ̲INDICATOR = FL(1..(FLN-FL))

         FLN(1..RI ̲MAX ̲SIZE) = SPACE

         SEARCH ̲PRIMARY ̲KEY       (LOCAL ̲RI.TABLE ̲ID,
                                  PRIMARY ̲RI ̲TYPE,
                                  KEY ̲AREA ̲POINTER, 1
                                  RESULT ̲AREA ̲POINTER, 1
                                  SYS ̲ID)
                                  (CC): ERROR ̲OK

         ERROR? PROCESSING ̲ERROR  (CC, SEARCH ̲LOCAL ̲RI, NO ̲ACCEPT)()

         KEY ̲IDENT.COUNT = ZERO?  (RI ̲CAT = UNKNOWN ̲RI, 

         CASE SYS ̲ID OF:

             CAMPS:  RI ̲CAT = LOCAL ̲RI

             SCARS:  RI ̲CAT = LOCAL ̲SC

             CCIS:   RI ̲CAT = LOCAL ̲SC

         END SYS ̲ID CASE

         RETURN



4.2.1.6.5.5 S̲e̲a̲r̲c̲h̲ ̲C̲h̲a̲n̲n̲e̲l̲

         Delivers the outgoing Channel Designator of a channel
         profile based on the logical channel number as input;
         the logical channel is located in the ACP ̲parameter
         Field.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         SEARCH ̲CHANNEL                (R4: CHANNEL ̲NO
                                        R6: LINK)
                                       (R4: OUT ̲DESIGNATOR ̲POINTER
                                        R5: CC)



4.2.1.6.5.6 S̲e̲a̲r̲c̲h̲ ̲S̲e̲c̲o̲n̲d̲ ̲C̲h̲a̲n̲n̲e̲l̲

         Delivers the logical channel number associated to the
         outgoing designator received as input.

         C̲a̲l̲l̲ ̲s̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         SEARCH ̲SECOND ̲CHANNEL         (RO:       FL ̲POINTER
                                                  to designator,
                                        R6:       LINK)
                                       (R4:       CHANNEL ̲NUMBER,
                                        R5:       CC)



4.2.1.6.5.7 S̲e̲a̲r̲c̲h̲ ̲A̲I̲G̲

         Receives a pointer to an AIG of a format-line.

         Delivers this AIG to TMP for a search in the AIG table.

         Returns the number of associated PLA ̲Ref's and a completion
         ̲code.

         C̲a̲l̲l̲ ̲s̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         SEARCH ̲AIG                    (RO:       AIG ̲FL ̲pointer
                                        R6:       LINK)
                                       (R4:       Number of
                                                  PLA
                                        R5:       CC)



4.2.1.6.5.8 S̲e̲a̲r̲c̲h̲ ̲L̲o̲c̲a̲l̲ ̲P̲L̲A̲ ̲R̲e̲f̲

         Receives a PLA ̲Ref to be used in a TMP-search in the
         Local PLA ̲table. 

         The output is the associated HQ ̲number or a Not ̲OK
         completion.

         C̲a̲l̲l̲ ̲s̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         SEARCH ̲LOCAL ̲PLA ̲REF          (R2:       PLA ̲REF,
                                        R6:       LINK)
                                       (R4:       HQ ̲NUMBER
                                        R5:       CC)



4.2.1.6.5.9 A̲n̲a̲l̲y̲s̲e̲ ̲D̲T̲G̲

         Receives a pointer to a sequence of characters assumed
         to be a Julian Date Time Group; the sequence can be
         with or without Year.

         Before the ASCII ̲DTG is transferred to the key-area,
         the Year field is spaced out in case the DTG does not
         contain such (will be overwritten otherwise).

         A call "CONVERT ̲TIME" will be performed and the result
         (a binary ̲DTG) will be returned.



         See principle in procedure ANALYSE ̲FILING ̲TIME.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYZE ̲DTG   (R0:   START ̲DTG
                       (R1:   END ̲DTG
                        R6:   LINK)
                       (R4:   BINARY ̲DTG ̲POINTER
                        R5:   CC)



4.2.1.6.5.10 A̲n̲a̲l̲y̲s̲e̲ ̲F̲i̲l̲i̲n̲g̲ ̲T̲i̲m̲e̲

         Receives a pointer to a sequence of characters assumed
         to be a Filing Time.

         A call "CONVERT ̲TIME" will be performed and the result
         (a binary filing ̲time) will be returned.

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         ANALYZE ̲FILING ̲TIME  (R0:     START ̲FILING ̲TIME,
                               R1:     END FILING ̲TIME
                               R6:     LINK)
                              (R4:     BINARY FILING ̲TIME:
                               R5:     CC)




         A̲N̲A̲L̲Y̲S̲E̲ ̲D̲T̲G̲ (FL,FLN)(BINARY ̲DTG, CC)


         TYPE    ASCII ̲DTG:   DTG ̲TYPE
                 BINARY ̲DTG:  TIME ̲TYPE

         EQUIVALENCE (KEY ̲AREA =       ASCII ̲DTG)
         EQUIVALENCE (RESULT ̲AREA =    BINARY ̲DTG)

         SYSTEM ̲TIME.YEAR = SPACE

         KEY ̲AREA (1..(FLN-FL) = FL(1..(FLN-FL)

         CONVERT ̲TIME  (FROM ̲DTG ̲TYPE,
                        KEY ̲AREA ̲POINTER)
                       (RESULT ̲AREA ̲POINTER, CC)

         ERROR? PROCESSING ̲ERROR (CC, CONVERT ̲DTG, ILLEGAL ̲TIME)()

                CC = NOT ̲OK

         RETURN



         A̲N̲A̲L̲Y̲Z̲E̲ ̲F̲I̲L̲I̲N̲G̲ ̲T̲I̲M̲E̲ (FL) (BINARY ̲FILE ̲TIME, CC)

         TYPE

             ASCII ̲FILE ̲TIME:      JULIAN ̲DATE ̲TYPE

             BINARY ̲FILE ̲TIME:     TIME ̲TYPE

         EQUIVALENCE(KEY ̲AREA = ASCII ̲FILE ̲TIME)

         EQUIVALENCE(RESULT ̲AREA = BINARY ̲FILE ̲TIME)

         KEY ̲AREA(1...FILE ̲TIME ̲SIZE) = FL(1..FILE ̲TIME ̲SIZE)

         CONVERT ̲TIME                  (FROM ̲JULIAN ̲DATE ̲TYPE,
                                       KEY ̲AREA ̲POINTER)
                                       (BINARY ̲FILE ̲TIME, CC)

         ERROR? PROCESSING ̲ERROR(CC, CONVERT ̲FILE ̲TIME
                                       ILLEGAL ̲TIME) (   )

                  CC = NOT ̲OK

         RETURN







4.2.1.7  S̲u̲b̲p̲a̲c̲k̲a̲g̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲s̲

         The application Packages and Subpackages that the ACP127
         Analysis Subpackage interfaces to are:

         -   Message Distribution Package (MDP)
         -   Terminal Package (TEP)
         -   Transport Subpackage (TRS)
         -   ACP127 Conversion Subpackage (ACS)
         -   Log Package (LOG)
         -   Statistics Package (STP)
         -   Storage and Retrieval (SAR)



4.2.1.7.1    I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲M̲D̲P̲

         A̲A̲S̲ ̲t̲o̲ ̲M̲D̲P̲:̲

         a)  Plaindress or Data Messages for incoming message
             distribution (Format E1).

         b)  Messages received from CCIS for coordination or
             to be released for distribution to a terminal position
             indicated by a SCD.

         c)  Distribution of comments and VDU-pages received
             from SCARS or CCIS.



4.2.1.7.2    I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲T̲E̲P̲

         a)  Incoming Message Service Assistance

             -   Garble correction
             -   Message inspection

         b)  Abbreviated and normal Service Messages to Supervisor
             Printer

         c)  VDU-pages received from CCIS or SCARS for storage
             in the VDU-file

         d)  Flash Notification to the common MSO-queue

         e)  Acknowledge to Incoming MSO after finished analysis



         T̲E̲P̲ ̲t̲o̲ ̲A̲A̲S̲:̲

         a)  messages reeentered for analysis from an Incoming
             Message Service Position.



4.2.1.7.3    I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲T̲R̲S̲

         A̲A̲S̲ ̲t̲o̲ ̲T̲R̲S̲

         a)  Incoming Codress or Plaindress Encrypted Message
             to be punched at the PTP.

         b)  Request for automatic generation and transmission
             of:

             -   Flash Acknowledge ASM
             -   Channel Test Reply ASM

         c)  Notification followed by a message view in case
             receipt of:

             -   Flash Acknowledge

         d)  Notification in case receipt of:

             -   Outgoing selfaddressed Channel Check
             -   Channel Number Reset ASM
             -   Channel Close ASM
             -   Channel Open ASM
             -   Channel Test Reply ASM

         e)  Flash notification to the PTP ̲command queue if
             a message of precedence flash has been queued to
             the PTP ̲CIQ

         T̲R̲S̲ ̲t̲o̲ ̲A̲A̲S̲

         a)  Input of messages for ACP127 - analysis with an
             originating source code:


             -   NICS TARE
             -   TRC/Point-to-point
             -   SCARS
             -   CCIS
             -   PTR (teleprinter)
             -   Dedicated PTR

         b)  Input of messages that have been automatically
             terminated or detected as garbled during the incoming
             transport.

             -   Halted message
             -   Preempted message
             -   Oversized message
             -   More than 140 identical consecutive characters
             -   too long lines
             -   expected TSN too low or missing

             An error-code indicated by a queue-info shall indicate
             the error-type:



4.2.1.7.4    I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲A̲C̲S̲

         A̲A̲S̲ ̲t̲o̲ ̲A̲C̲S̲

         a)  Released message in CCIS E1 Format that shall be
             automatically released and converted into ACP127-format
             before onward transmission. A PLA-List will follow
             the message-view for generation of a Selective
             Routing List.

         b)  Messages received from NICS ̲TARE or TRC/Point-to-point
             for relaying based on T-instruction.

         c)  Incoming message for relaying to SCARS or CCIS
             based on RI of FL2.

         d)  Messages received from SCARS for Routing and transmission

         e)  Messages received from NICS TARE or TRC/Point-to-point
             still containing external RIs in FL2 after MSO-incocation
             for routing and transmission.



         f)  Messages entered as complete via a PTR for Routing
             and transmission. A RI-list will follow the message-view
             for routing purposes



4.2.1.7.5    I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲L̲o̲g̲

         a)  Invalid message log

         b)  Incoming message log



4.2.1.7.6    I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲S̲T̲P̲

         a)  Statistics Incoming Message

         b)  Statistics Incoming Invalid Message



4.2.1.7.7    I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲S̲A̲R̲

         Delivery of retrieval-keys associated to an incoming
         message.

         -   Channel Identification (Ti)

         -   SSN + DTG