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

⟦f16f03a0a⟧ Wang Wps File

    Length: 37242 (0x917a)
    Types: Wang Wps File
    Notes: CPS/SDS/033               
    Names: »1997A «

Derivation

└─⟦71c0ba358⟧ Bits:30006098 8" Wang WCS floppy, CR 0151A
    └─ ⟦this⟧ »1997A « 

WangText

…14……00……00……00……00……1d……0a……00……00……1d……0b……1d… …1d……07……1c……0b……1c……0f……0a……08……0a……0c……0a……00……0a… …0a……05……09……09……09……0d……09……01……09… …09……05……86…1                                             …02…           …02…   …02…        

…02…CPS/SDS/033

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









          4.2.6.4.6 NICS TARE Outgoing Message Handling
                        
            4.2.6.4.6.1 Functional Specification ......
                            
            4.2.6.4.6.2 Module Interface ..............
                            
            4.2.6.4.6.3 Module Components .............
                            
            4.2.6.4.6.4 Data Description ..............
                            
            4.2.6.4.6.5 Module Design .................
                            

          4.2.6.4.7 SCARS/CCIS Outgoing Message 
                    Handling ..........................
                        
            4.2.6.4.7.1 Functional Specification ......
                            
            4.2.6.4.7.2 Module Interface ..............
                            
            4.2.6.4.7.3 Module Components .............
                            
            4.2.6.4.7.4 Data Description ..............
                            
            4.2.6.4.7.5 Module Design .................
                            

          4.2.6.4.8 PTP Outgoing Message Handling .....
                        
            4.2.6.4.8.1 Functional Specification ......
                            
            4.2.6.4.8.2 Module Interface ..............
                            
            4.2.6.4.8.3 Module Components .............
                            
            4.2.6.4.8.4 Data Description ..............
                            
            4.2.6.4.8.5 Module Design .................
                            

          4.2.6.4.9   Outgoing Message Transmission
                      ...     
            4.2.6.4.9.1 Functional Specification ......
                            
            4.2.6.4.9.2 Module Interface ..............
                            
            4.2.6.4.9.3   Module Components ...........
                              
            4.2.6.4.9.4 Data Description ..............
                            
            4.2.6.4.9.5 Module Design .................
                            

          4.2.6.4.10    Message Line Generation Module
                             
            4.2.6.4.10.1  Functional Specification
                          ....     
            4.2.6.4.10.2  Module Interface ............
                              
            4.2.6.4.10.3  Module Components ...........
                              
            4.2.6.4.10.4  Data Description ............
                              
            4.2.6.4.10.5  Module Design ...............
                              

    4.3 Memory Layout .................................
            
      4.3.1 Analysis Program ..........................
                
      4.3.2 Conversion Program ........................
                
      4.3.3 Transport Program .........................
                


          4.2.6.4.11    ASM Generation ................
                            
            4.2.6.4.11.1  Functional Specification
                          ....     
            4.2.6.4.11.2  Module Interface ............
                              
            4.2.6.4.11.3  Module Components ...........
                              
            4.2.6.4.11.4  Data Description ............
                              
            4.2.6.4.11.5  Module Design ...............
                              

        4.2.6.5 OTS, Common Subpackage Data ...........
                    

        4.2.6.6 OTS, Common Subpackage Procedures .....
                    
          4.2.6.6.1 Functional Specification ..........
                        
          4.2.6.6.2 Module Interfaces .................
                        

        4.2.6.7 Subpackage Interface ..................
                    


4.2.6.4.7    N̲I̲C̲S̲ ̲T̲A̲R̲E̲ ̲O̲u̲t̲g̲o̲i̲n̲g̲ ̲M̲e̲s̲s̲a̲g̲e̲ ̲H̲a̲n̲d̲l̲i̲n̲g̲



4.2.6.4.7.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         The NT-Outgoing Message Handling supplies the procedures
         which take care of the basic flow of message lines
         through the Outgoing Transport for NICS TARE.

         The functions included are equivalent to TP-Outgoing
         Message Handling (ref. 4.2.6.4.6).



4.2.6.4.7.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

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

         a)  NT ̲OUTG ̲MSG ̲HANDLING (FUNCTION)

         b)  NT ̲OUTG ̲MSG ̲HANDLING (R0,R1,R2,R3,R4,R5,R7,R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R0  Function                (destr.)

         R6  Link                    (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None (All registers destroyed)

         Function: (NEW ̲MSG,IOC ̲BUF,ASM ̲REQ,NEW ̲ASM)



4.2.6.4.7.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The module components are depicted on figure 4.2.6.4.7.3-1.





4.2.6.4.7.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         Ref. section 4.2.3.5



4.2.6.4.7.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Flowgram equivalent to flowgram 4.2.6.4.5-1.

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲N̲T̲ ̲O̲U̲T̲G̲ ̲M̲S̲G̲ ̲H̲A̲N̲D̲L̲I̲N̲G̲

         (R0  C  D   TRS ̲MSG ̲HND ̲TYPE
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure makes the entry point for the NT ̲OUT
         ̲HND module and contains the main logic of this module.

         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲P̲U̲T̲ ̲I̲O̲C̲ ̲R̲E̲P̲L̲Y̲

         (R0  C  D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure inputs the IOC ̲REPLY initiated by the
         systemcall APPEND ̲BYTES.

         The following functions are included:

         -    Input of IOC ̲BUFFER returned from the systemcall
              APPEND ̲BYTES

         -    Check IOC completion codes

         -    Return TRS ̲IOC ̲OPERATION to OUT ̲IOC ̲POOL

         -    Activation of timers if the IOC ̲BUFFER returned
              has contained the last line of a message.














































NT ̲OUTG ̲MSG ̲HANDLING…01…Module Components…01…Figure 4.2.6.4.7.3-1


         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲N̲T̲ ̲T̲R̲A̲N̲S̲M̲I̲S̲S̲I̲O̲N̲ ̲S̲T̲A̲R̲T̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure initiates transmission of a message
         for TRC/POINT TO POINT.

         This includes the following main tasks:

         -    Reading of ACP ̲PARAMETERS
         -    Init of OUTG ̲MSG ̲CHARACTERS
         -    Init of OUTG ̲MSG ̲CTR ̲MASK
         -    Init of paging parameters if paging is required
         -    Init of data collection mask

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲N̲T̲ ̲O̲U̲T̲G̲ ̲T̲I̲M̲E̲R̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R
          R6) C  D   LINK

         This procedure will activate timers related to the
         outgoing transport for NICS TARE.

         The following functions are included:

         -    Flash timer is activated if a flash message requires
              an acknowledge

         -    Outgoing continuity timer

         -    ZID TIMER is activated if the TSN transmitted
              is equal to one and the supervisor has specified
              that the TSN shall be set to one at midnight.





4.2.6.4.8    S̲C̲A̲R̲S̲/̲C̲C̲I̲S̲ ̲O̲u̲t̲g̲o̲i̲n̲g̲ ̲M̲e̲s̲s̲a̲g̲e̲ ̲H̲a̲n̲d̲l̲i̲n̲g̲



4.2.6.4.8.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

             The SC ̲Outgoing Message Handling supplies the procedures
             which takes care of the basic flow of message lines
             through the Outgoing Transport for SCARS/CCIS.

             The functions included are equivalent to TP ̲Outgoing
             Message Handling (ref. 4.2.6.4.6)



4.2.6.4.8.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

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

             a)  SC ̲OUTG ̲MSG ̲HANDLING (FUNCTION)

             b)  SC ̲OUTG ̲MSG ̲HANDLING (R0,R1,R2,R3,R4,R5,R7,R6)

             R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

             C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

             R0 Function                     (destrs.)
             R6 Kept                         (Kept)

             R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

             None (All registers destroyed)

             Function:  (RETRANSMIT,NEW ̲MSG,IOC ̲BUF,ASM ̲REQ,
                         NEW ̲ASM)



4.2.6.4.8.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

             The module components are depicted on figure 4.2.6.4.6.3-1.





4.2.6.4.8.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         Ref. section 4.2.3.5.



4.2.6.4.8.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         The procedures included in SC ̲OUTG ̲MSG ̲HANDLING are
         reentrant.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲C̲ ̲O̲U̲T̲G̲ ̲M̲S̲G̲ ̲H̲A̲N̲D̲L̲I̲N̲G̲

         (R0  C  D   TRS ̲OUTG ̲CTR ̲TYPE
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure makes the entry point for the SC ̲OUT
         HND module and contains the main logic of this module.

         The following tasks are initiated:

         -    Start of transmission of a message received from
              the circuit queue.

         -    Generation and transmission of ASM (incl. transaction
              acknowledge).

         -    Handling of buffers returned from IOS as a reply
              for the syscall APPEND ̲BYTES.

         -    Start of retransmission.

         -    Data collection (incl. Log, Statistics and Storage).

         -    Activation of timers for incoming traffic and
              transaction acknowledge.

















































SC ̲OUTG ̲MSG ̲HANDLING…01…Module Components…01…Figure 4.2.6.4.8.3-1


         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲P̲U̲T̲ ̲I̲O̲C̲ ̲R̲E̲P̲L̲Y̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure inputs the IOC ̲REPLY initiated by the
         systemcall APPEND ̲BYTES.

         The following functions are included:

         -    Input of IOC ̲BUFFER returned from the systemcall
              APPEND ̲BYTES

         -    Check IOC completion codes

         -    Return TRS ̲IOC ̲OPERATION to OUT ̲IOC ̲POOL

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲C̲ ̲T̲R̲A̲N̲S̲M̲I̲S̲S̲I̲O̲N̲ ̲S̲T̲A̲R̲T̲

         (R0     D   TRS ̲OUTG ̲CTR ̲TYPE
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure initiates transmission of a message
         for SCARS/CCIS.

         This includes the following main tasks:

         -    Reading of ACP ̲PARAMETERS
         -    Init of OUTG ̲MSG ̲CHARACTERS
         -    Init of OUTG ̲MSG ̲CTR ̲MASK
         -    Init of paging parameters if paging is required
         -    Init of data collection mask
         -    Init of field list for reading the EMF fields
              from CIF





         PROCEDURE SC ̲OUTG ̲MSG ̲HANDLING (TRS ̲MSG ̲HND
         ̲TYPE)

         EQUIVALENCE(PARAM ̲BASE, TRP : TRANSPORT ̲PARAMETERS)

         START

         SAVE ̲LINK (LINK)(PARAM ̲BASE)

         CASE TRS ̲MSG ̲HND ̲TYPE

             RETRANSMIT?                                         
                                                                 SC
                                                                 ̲TRANSMISSION
                                                                 ̲START
                                                                 (RETRANSMIT)
             NEW ̲MSG   ?                                         
                                                                 SC
                                                                 ̲TRANSMISSION
                                                                 ̲START(NEW
                                                                 ̲MSG)
                                                                 
             IOC ̲BUF   ?                                         
                                                                 INPUT
                                                                 ̲IOC
                                                                 ̲REPLY
             NEW ̲TRACK ?                                         
                                                                 GENERATE
                                                                 ASM
             NEW ̲ASM   ?                                         
                                                                 GENERATE
                                                                 ASM

         END CASE

         Outgoing Transmission Busy ?

         Outgoing Transmission End ?

         OUTG ̲MSG ̲TRANSMISSION


         Outgoing Data Collect EQ FALSE ?

         Outgoing Log EQ FALSE ?

         TRS ̲OUTG ̲LOG


         Outgoing Storage EQ FALSE ?

         TRS ̲OUTG ̲STORAGE


         Outgoing Statistics EQ FALSE ?

         TRS ̲OUTG ̲STATISTICS


         Transaction Acknowledge ?     SET ̲SC ̲TRACK
         ̲TIMER

         Incoming Timer          ?     SET ̲SC ̲INCOM
         ̲TIMER


         RESTORE ̲LINK()(PARAM ̲BASE)

         RETURN
             Flowgram 4.2.6.4.8.5-1


4.2.6.4.9    P̲T̲P̲ ̲O̲u̲t̲g̲o̲i̲n̲g̲ ̲M̲e̲s̲s̲a̲g̲e̲ ̲H̲a̲n̲d̲l̲i̲n̲g̲



4.2.6.4.9.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

             This module supplies the procedures which
             takes care of the basic flow of message
             lines through the Outgoing Transport for
             PTP.

             The following functions are included:

             a)  P̲T̲P̲ ̲T̲r̲a̲n̲s̲m̲i̲s̲s̲i̲o̲n̲ ̲S̲t̲a̲r̲t̲

                 -   Receives queue element from "Circuit
                     Queue".

                 -   Reads ACP-PARAMETERS of the External
                     Message Format specified by queue
                     element.

                 -   Updates masks for transmission
                     control (i.e. Outgoing State Mask,
                     Outgoing Message Control Mask,
                     Outgoing Data Collection Mask).

                 -   Prepare a field list for sequential
                     reading from CIF containing the
                     message.

             b)  I̲O̲C̲ ̲-̲ ̲B̲U̲F̲F̲E̲R̲ ̲-̲ ̲R̲E̲C̲E̲I̲V̲E̲D̲

                 Receives empty buffer from IOC and
                 returns it to IOC ̲OUT ̲POOL.

             c)  O̲u̲t̲g̲o̲i̲n̲g̲ ̲M̲e̲s̲s̲a̲g̲e̲ ̲T̲r̲a̲n̲s̲m̲i̲s̲s̲i̲o̲n̲

                 (ref. section 4.2.6.4.10)

             d)  O̲u̲t̲g̲o̲i̲n̲g̲ ̲L̲o̲g̲

                 Constructs outgoing message log for
                 PTP.


4.2.6.4.9.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

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

             a)  PTP ̲OUTG ̲MSG ̲HANDLING (FUNCTION)

             b)  PTP ̲OUTG ̲MSG ̲HANDLING (Ro,R1,R2,R3,R4,R5,R7,R6)

             R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

             C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

             R0  Function                         (destr.)
             R6  Link                                            
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 (kept)

             R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

             None (All registers destroyed)

             Function:                                           (NEW
                                                                 ̲MSG,IOC
                                                                 ̲BUF)



4.2.6.4.9.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

             The module components are depicted on
             figure 4.2.6.4.9.3-1.



4.2.6.4.9.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

             Ref. section 4.2.3.5.



4.2.6.4.9.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲                                        
             The procedures included in this module
             are reentrant.

             PTP ̲OUTG ̲MSG ̲HANDLING: Flowgram 4.2.6.4.9.5-1















































PTP ̲OUTG ̲MSG ̲HANDLING…01…Module Components…01…Figure 4.2.6.4.9.3-1


         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲P̲T̲P̲ ̲O̲U̲T̲G̲ ̲M̲S̲G̲ ̲H̲A̲N̲D̲L̲I̲N̲G̲

         (R0  C  D   TRS ̲MSG ̲HND ̲TYPE
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure makes the entry point for the PTP ̲OUT
         ̲HND module and contains the main logic of this module.

         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲P̲U̲T̲ ̲I̲O̲C̲ ̲R̲E̲P̲L̲Y̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure inputs the IOC ̲REPLY initiated by the
         systemcall APPEND ̲BYTES.

         The following functions are included:

         -    Input of IOC ̲BUFFER returned from the systemcall
              APPEND ̲BYTES

         -    Check IOC completion codes

         -    Return TRS ̲IOC ̲OPERATION to OUT ̲IOC ̲POOL

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲P̲T̲P̲ ̲T̲R̲A̲N̲S̲M̲I̲S̲S̲I̲O̲N̲ ̲S̲T̲A̲R̲T̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK



         This procedure initiates transmission of a message
         for a PTP transport.

         This includes the following main tasks:

         -    Reading of ACP ̲PARAMETERS
         -    Init of OUTG ̲MSG ̲CHARACTERS
         -    Init of OUTG ̲MSG ̲CTR ̲MASK
         -    Init of paging parameters if paging is required
         -    Init of data collection mask





         PROCEDURE PTP ̲OUTG ̲MSG ̲HANDLING (TRS ̲MSG ̲HND
         ̲TYPE)

         EQUIVALENCE (PARAM ̲BASE, TRP: TRANSPORT ̲PARAMETERS)


         START

         SAVE ̲LINK (LINK)(PARAM ̲BASE)

         CASE TRS ̲MSG ̲HND ̲TYPE

             NEW ̲MSG   ?                                         PTP
                                                                 ̲TRANSMISSION
                                                                 ̲START

             IOC ̲BUF   ?                                         INPUT
                                                                 ̲IOC
                                                                 ̲REPLY

         END CASE

         Outgoing Transmission Busy ?

         Outgoing Transmission End EQ FALSE ?

         OUTG ̲MSG ̲TRANSMISSION


         Outgoing Log EQ FALSE ?

         TRS ̲OUTG ̲LOG (OUT ̲PTP ̲LOG)


         RESTORE ̲LINK()(PARAM ̲BASE)

         RETURN







             Flowgram 4.2.6.4.9.5-1


4.2.6.4.10   O̲u̲t̲g̲o̲i̲n̲g̲ ̲M̲e̲s̲s̲a̲g̲e̲ ̲T̲r̲a̲n̲s̲m̲i̲s̲s̲i̲o̲n̲



4.2.6.4.10.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

             The Outgoing Message Transmission Module
             supplies procedures for transmission of
             a message described by:

                 Outgoing State Mask (ref. figure 4.2.6.3.3-1)

                 Outgoing Message Control Mask (ref.
                 figure 4.2.6.3.3-2 and 4.2.6.3.3-3)

             The masks are constructed by the Outgoing
             Message Handling prior to the start of
             each message transmission.

             The main functions includes the following
             subjects:

             a)  I̲O̲C̲ ̲B̲u̲f̲f̲e̲r̲ ̲C̲o̲n̲t̲r̲o̲l̲

             -   Receives empty OUT ̲IOC ̲BUFFER from
                 OUT ̲IOC ̲POOL.

             -   Moves message lines from OUT ̲EMF ̲BUF
                 or MSG ̲FRAMING ̲BUFFER to OUT ̲IOC ̲BUFFER

             -   Sends the OUT ̲IOC ̲BUFFER to IOC.

             b)  P̲r̲e̲e̲m̲p̲t̲i̲o̲n̲ ̲C̲o̲n̲t̲r̲o̲l̲

             -   Checks preemption indicator and constructs
                 preemption sequence in MSG ̲FRAMING
                 ̲BUFFER if preemption is indicated.

             c)  P̲a̲g̲e̲ ̲C̲o̲n̲t̲r̲o̲l̲

             -   Checks page indicator and page line
                 counter.

             -   Constructs page sequence in MSG ̲FRAMING
                 ̲BUFFER if a new page shall be generated.



             d)  M̲e̲s̲s̲a̲g̲e̲ ̲L̲i̲n̲e̲ ̲C̲o̲n̲t̲r̲o̲l̲

             -   Controls the sequence of message line
                 transmission according to Outgoing
                 Message Control Mask.

             -   Reads message lines from the External
                 Message Format into OUT ̲EMF ̲BUF

             -   Initiates generation of message lines
                 in MSG ̲FRAMING ̲BUFFER.



4.2.6.4.10.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

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

             a)  OUTG ̲MSG ̲TRANSMISSION

             b)  OUTG ̲MSG ̲TRANSMISSION (R0,R1,R2,R3,R4,R5,R7,R6)

             R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

             C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

             R6  Link                       (Kept)

             R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

             None (All registers destroyed)



4.2.6.4.10.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

             The components of this module are depicted
             on figure 4.2.6.4.10.3-1.



4.2.6.4.10.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

             Ref. section 4.2.3.5





4.2.6.4.10.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲O̲U̲T̲G̲ ̲M̲S̲G̲ ̲T̲R̲A̲N̲S̲M̲I̲S̲S̲I̲O̲N̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure is the entry point for the OUTGOING
         ̲MESSAGE ̲HANDLING module.

         The procedure controls the sequence of the following
         main tasks:

         -    IOC  ̲BUFFER ̲CONTROL
         -    PREEMPTION ̲CONTROL
         -    PAGE ̲CONTROL
         -    MESSAGE ̲LINE ̲CONTROL

         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲M̲E̲S̲S̲A̲G̲E̲ ̲L̲I̲N̲E̲ ̲C̲O̲N̲T̲R̲O̲L̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure takes care of the sequence of message
         lines as prescribed by the OUTG ̲MSG ̲CTR ̲MASK of the
         running subprocess.

         The procedure updates the data structure TRS ̲SEND ̲INFO
         with location and length of the next message line (IOC
         ̲RECORD) to be transmitted.



         An IOC ̲RECORD may have two origins:

         -    The record is constructed into the MSG ̲FRAME ̲BUF
              by calling GENERATE ̲MSG ̲LINE:

         -    The record is read into the OUT ̲EMF ̲BUF from the
              current EMF filed of the CIF containing the message.

         If by reading a new line the OUTG ̲MSG ̲CTR ̲MASK has
         been set to zero, the procedure will set the OUTG ̲TRANSMISSION
         ̲END bit of the OUTG ̲STATE ̲MASK. Furthermore the transmit
         indication of the TRS ̲LINE ̲INFO is set to YES.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲O̲C̲ ̲B̲U̲F̲F̲E̲R̲ ̲C̲O̲N̲T̲R̲O̲L̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK
              ERROR ̲OK

         This procedure takes care of the buffer control related
         to the transfer of a message line (IOC ̲RECORD) to the
         IOC through the systemcall APPEND ̲BYTES.

         The buffers are taken from the TRS ̲OUT ̲IOC ̲POOL of
         the running subprocess.

         A buffer is transferred to IOC if:

         -    The buffer has been filled with characters.

         -    A complete line has been stored into the buffer
              and the transmit indicator of TRS ̲SEND ̲INFO is
              true.

         EXITS: ERROR - TRS ̲OUT ̲IOC ̲POOL is empty
                OKAY  - Msg line specified by TRS ̲SEND ̲INFO
                     has
                        been stored in an IOC ̲BUFFER.



         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲P̲A̲G̲E̲ ̲C̲O̲N̲T̲R̲O̲L̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK
              BOOLEAN

         This procedure controls the pageing of a message if
         this has been specified in the DATA ̲STRUCTURE
         PAGE ̲PARAM of the runnig subprocess.

         Each time the PAGE ̲LINE ̲CNT exceeds the NO ̲OF ̲PAGE
         ̲LINES, the page sequence is constructed by calling
         GENERATE ̲MSG ̲LINE.

         The PAGE ̲ID counter is incremented for each page.

         EXITS: TRUE  - a page sequence has been constructed.
                FALSE - no page sequence has been generated.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲P̲R̲E̲E̲M̲P̲T̲I̲O̲N̲ ̲C̲O̲N̲T̲R̲O̲L̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK
              BOOLEAN

         This procedure initiates preemption of a message if
         prescribed by the data structure PREEMPT of the running
         subprocess.

         Two types of preemption are handled:

         STOP ̲PREEMPT:  Unconditional preemption containing
                        the following stepps:

                        -  generation of preemption sequence.
                        -  Return of the message to the circuit
                           queue.
                        -  Indication of OUTG ̲CLOSE ̲DOWN and
                           OUTG ̲MESSAGE ̲END.
 


         FLASH ̲PREEMPT: Conditional preemption which only takes
                        place if a flash message is available
                        in the circuit queue and no ASM is being
                        transmitted. The preemption sequence
                        is generated and the message is returned
                        to the circuit queue.

         Each time a preemption takes place a report is transmitted
         to the supervisor's printer.

         EXITS: TRUE  - Preemption sequence generated.
                FALSE - No preemption

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲M̲O̲V̲E̲ ̲I̲O̲C̲ ̲R̲E̲C̲O̲R̲D̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK
              :ERROR ̲OK

         This procedure will move an IOC ̲RECORD from a cyclic
         buffer into an IOC ̲BUFFER related to an TRS ̲IOC ̲OPERATION.

         Prior to the call of this procedure the data structure
         TRS ̲SEND ̲INFO of the running subprocess must be updated.

         EXITS: ERROR - IOC ̲BUFFER has been filled with characters.
                        Only a part of the
                        IOC ̲RECORD has been moved.

                OKAY  - Acomplete IOC ̲RECORD has been moved
                        to the IOC ̲BUFFER.
















































OUTG ̲MSG ̲TRANSMISSION…01…Module Components…01…Figure 4.2.6.4.10.3-1


         PROCEDURE OUTG ̲MSG ̲TRANSMISSION

         EQUIVALENCE (PARAM ̲BASE, TRP: TRANSPORT ̲PARAMETERS)

         START

         SAVE ̲LINK(LINK)(PARAM ̲BASE)

         LOOP

             IOC ̲BUFFER ̲CONTROL (CC): (WAIT, NO ̲WAIT)

             CC EQ WAIT?                                         
                                                                 EXIT
                                                                 LOOP

             CHECK ̲INDICATOR (TRP.OUTG ̲STATE ̲MASK,
                                                                 TRANSMISSION
                                                                 ̲END)(CC):
                                                                 BOOLEAN

             CC EQ TRUE?                                         
                                                                 
                                                                 
                                                                 EXIT
                                                                 LOOP

             PREEMPTION ̲CONTROL (CC): BOOLEAN

             CC EQ TRUE?

             PAGE ̲CONTROL (CC) : BOOLEAN

             CC EQ TRUE?

             MESSAGE ̲LINE ̲CONTROL


         END LOOP

         RESTORE ̲LINK

         RETURN










             Flowgram 4.2.6.4.10.5-1


4.2.6.4.11    M̲e̲s̲s̲a̲g̲e̲ ̲L̲i̲n̲e̲ ̲G̲e̲n̲e̲r̲a̲t̲i̲o̲n̲ ̲M̲o̲d̲u̲l̲e̲



4.2.6.4.11.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

             The Message Line Generation Module includes
             the procedures which generates the message
             line related to framing of the message.

             The module may generates the following
             types of lines:

             NT ̲SOM           :                                  Start
                                                                 of
                                                                 message
                                                                 block,
                                                                 NICS
                                                                 ̲TARE
             SC ̲SOM           :                                  Start
                                                                 of
                                                                 message
                                                                 block,
                                                                 SCARS/CCIS
             TAPE ̲START       :                                  Start
                                                                 of
                                                                 tape
                                                                 Sequence,
                                                                 PTP
             ACP ̲FL1          :                                  ACP127
                                                                 Format
                                                                 Line
                                                                 1
             PTP ̲FL1          :                                  Dummy
                                                                 Format,
                                                                 Line
                                                                 1,
                                                                 PTP
             BT               :                                  Text
                                                                 Separator
             ACP ̲FL14         :                                  ACP127
                                                                 Format
                                                                 Line
                                                                 14
             ACP ̲FL15         :                                  ACP127
                                                                 Format
                                                                 Line
                                                                 15
             ACP ̲FL16         :                                  ACP127
                                                                 Format
                                                                 Line
                                                                 16
             NT ̲EOM           :                                  End
                                                                 of
                                                                 message
                                                                 Block,
                                                                 NICS
                                                                 ̲TARE
             SC ̲EOM           :                                  End
                                                                 of
                                                                 message
                                                                 Block,
                                                                 SCARS/CCIS
             TAPE ̲END         :                                  End
                                                                 of
                                                                 tape
                                                                 Sequence,
                                                                 PTP
             PAGE ̲ID          :                                  New
                                                                 page
                                                                 sequence
             MSG ̲PREEMP       :                                  Preemption
                                                                 sequence
                                                                 for
                                                                 message
             TAPE ̲PREEMP      :                                  Tape
                                                                 preemption
                                                                 sequence,
                                                                 PTP
             FL1A             :                                  ACP
                                                                 Pilot
                                                                 Format
                                                                 Line
                                                                 1A


             All lines mentioned above are constructed
             in MSG ̲FRAMING ̲BUFFER.


4.2.6.4.11.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

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

             a)  GENERATE ̲MSG ̲LINE (LINE Id) (CC) :
                 OK

             b)  GENERATE ̲MSG ̲LINE (R1, R6) : OK

             R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

             C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

             R1      TRS ̲MSG ̲LINE ̲TYPE       (destr.)
             R6      LINK                (kept)

             R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

             None



4.2.6.4.11.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

             As depicted on figure 4.2.6.4.11.3-1.



4.2.6.4.11.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

             All the data used in this module are contained
             within the Transport Parameters defined
             in section 4.2.3.5.



4.2.6.4.11.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

             GENERATE ̲MSG ̲LINE:                                  Flowgram
                                                                 4.2.6.4.11.5-1.


             The procedures "Tape Start Sequence" and
             "Tape Preemption Seq" outputs visible
             characters to the PTP according to the
             functions described in section 4.2.6.1.3.12
             and 4.2.6.1.3.14.


             The Conversion Table on figure 4.2.6.4.11.5-1
             specifies the sequence of characters to
             be transmitted for each of the visible
             characters which may occur.

             Two alphabet formats are handled: IA2
             and IA5. The alphabet to be used is stored
             in the LTUX ̲LINE ̲TABLE and is read during
             a start Up command.










































              Figure 4.2.6.4.11.3-1

                       and

CONVERSION TABLE…01…FOR…01…VISIBLE TAPE CHARACTERS…01…FIGURE 4.2.6.4.11.5-1


         PROCEDURE GENERATE ̲MSG ̲LINE (Line Id) : OK

         START

         SAVE ̲LINK(LINK)(PARAM ̲BASE)

         CASE LINE ̲ID

             NT ̲SOM           ?                                  NT
                                                                 ̲SOM
                                                                 ̲BLOCK
                                                                 

             SC ̲SOM           ?                                  SC
                                                                 ̲SOM
                                                                 ̲BLOCK

             TAPE ̲START       ?                                  TAPE
                                                                 ̲START
                                                                 ̲SEQUENCE

             ACP ̲FL1          ?                                  ACP
                                                                 ̲FORMAT
                                                                 ̲LINE
                                                                 ̲1

             PTP ̲FL1          ?                                  PTP
                                                                 ̲FORMAT
                                                                 ̲LINE
                                                                 ̲1

             BT               ?                                  TEXT
                                                                 ̲SEPERATOR

             ACP ̲FL14         ?                                  ACP
                                                                 ̲FORMAT
                                                                 ̲LINE
                                                                 ̲14

             ACP ̲FL15         ?                                  ACP
                                                                 ̲FORMAT
                                                                 ̲LINE
                                                                 ̲15

             ACP ̲FL16         ?                                  ACP
                                                                 ̲FORMAT
                                                                 ̲LINE
                                                                 ̲16

             NT ̲EOM           ?                                  NT
                                                                 ̲EOM
                                                                 ̲BLOCK

             SC ̲EOM           ?                                  SC
                                                                 ̲EOM
                                                                 ̲BLOCK

             TAPE ̲END         ?                                  TAPE
                                                                 ̲END
                                                                 ̲SEQUENCE

             PAGE ̲ID          ?                                  PAGE
                                                                 ̲ID
                                                                 ̲SEQUENCE

             MSG ̲PREEMP       ?                                  PREEMPTION
                                                                 ̲SEQUENCE

             TAPE ̲PREEMP      ?                                  TAPE
                                                                 ̲PREEMPTION
                                                                 ̲SEQ

             FL1A             ?                                  ACP
                                                                 ̲PILOT
                                                                 ̲FL1A


         END CASE

         RESTORE ̲LINK

         RETURN

             Flowgram 4.2.6.4.11.5-1


4.2.6.4.12    A̲S̲M̲ ̲G̲e̲n̲e̲r̲a̲t̲i̲o̲n̲



4.2.6.4.12.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

             The ASM Generation Module supplies the
             procedures for automatic generation of
             ASM in the Outgoing Transport.

             The module may generate the following
             types of ASM:

             ACP ̲ZBC                                             :
                                                                 Identical
                                                                 Characters

             ACP ̲FLASH                                           :
                                                                 Flash
                                                                 Receipt

             ACP ̲SELF ̲CHK     : Self Addressed Channel
                              Check

             ACP ̲ZID                                             :
                                                                 TSN.
                                                                 Check
                                                                 Message

             ACP ̲QRV                                             :
                                                                 Open
                                                                 Incoming
                                                                 Traffic

             ACP ̲QRT                                             :
                                                                 Close
                                                                 Incoming
                                                                 Traffic
                                                                 
                                                                 

             ACP ̲IBZ ̲N                                           :
                                                                 Test
                                                                 Message
                                                                 Reply

             ACP ̲INT ̲ZBZ                                         :
                                                                 Test
                                                                 Message

             ACP ̲CONT ̲MSG     : Continuity Message

             ACP ̲FINAL ̲MSG    : Final Number Message

             ACP ̲CHN ̲MSG                                         :
                                                                 Channel
                                                                 Check
                                                                 Message

             E1 ̲FINAL ̲MSG     : E1 Final Number Message

             E1 ̲CHN ̲MSG                                          :
                                                                 E1
                                                                 Channel
                                                                 Check
                                                                 Message

             TRANS ̲ACK                                           :
                                                                 Transaction
                                                                 Acknowledge

             All the ASM types above have been defined
             in section 4.2.6.5.


4.2.6.4.12.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

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

             a)  GENERATE ̲ASM (ASM ̲ID)(CC) : OK

             b)  GENERATE ̲ASM (R1, R6) : OK

             R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲

             C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

             R1 Pointer to ASM ̲ID                                
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 (destr.)
             R6 LINK                                             
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 (kept)
                                                                 
                                                                 

             R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

             None



4.2.6.4.12.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

             GENERATE ̲ASM:    Calls the specified ASM
                              procedure

             ASM Procedures:  For each type of ASM
                              a specific procedure
                              is designed.



4.2.6.4.12.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

             The specified ASM is constructed in OUT
             ̲EMF ̲BUF.
             (ref. 4.2.3.5)



4.2.6.4.12.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

             GENERATE ̲ASM     : Flowgram 4.2.6.4.12.5-1.















































ASM ̲GENERATION…01…Module Components…01…Figure 4.2.6.4.12.3-1


     PROCEDURE ASM ̲GENERATION (ASM ̲TYPE)


     START

     SAVE ̲LINK(LINK)(PARAM ̲BASE)

     CASE ASM ̲TYPE

         ACP ̲ZBC     ?                                           IDENCITAL
                                                                 ̲CHARACTERS

         ACP ̲FLASH   ?                                           FLASH
                                                                 ̲RECEIPT
                                                                 (TSN)

         ACP ̲SELF ̲CHK?                                           SELF
                                                                 ̲ADDRESSED
                                                                 ̲CHANNEL
                                                                 ̲CHECK

         ACP ̲ZID     ?                                           TSN
                                                                 ̲CHECK
                                                                 ̲MSG
                                                                 (TSN)

         ACP ̲QRV     ?                                           OPEN
                                                                 ̲INCOMING
                                                                 ̲TRAFFIC

         ACP ̲QRT     ?                                           CLOSE
                                                                 ̲INCOMING
                                                                 ̲TRAFFIC

         ACP ̲ZBZ ̲N   ?                                           TEST
                                                                 ̲MESSAGE
                                                                 ̲REPLY
                                                                 (N)

         ACP ̲INT ̲ZBZ ̲TP?                                         TP
                                                                 ̲TEST
                                                                 ̲MESSAGE

         ACP ̲INT ̲ZBZ ̲NT?                                         NT
                                                                 ̲TEST
                                                                 ̲MESSAGE

         ACP ̲CONT ̲MSG?                                           CONTINUITY
                                                                 ̲MESSAGE

         ACP ̲FINAL ̲MSG        ?                                  FINAL
                                                                 ̲NUMBER
                                                                 ̲MESSAGE
                                                                 (TSN)

         ACP ̲CHN ̲MSG          ?                                  CHANNEL
                                                                 ̲CHECK
                                                                 ̲MESSAGE

         E1 ̲FINAL ̲MSG         ?                                  E1
                                                                 ̲FINAL
                                                                 ̲NUMBER
                                                                 ̲MESSAGE
                                                                 (TSN)

         E1 ̲CHN ̲MSG           ?                                  E1
                                                                 CHANNEL
                                                                 ̲CHECK
                                                                 ̲MESSAGE

         TRANS ̲ACK            ?                                  TRANSACTION
                                                                 ̲ACKNOWLEDGE
                                                                 (TSN)


     END CASE

     RESTORE ̲LINK

     RETURN

             Flowgram 4.2.6.4.12.5-1


4.2.6.5  O̲T̲S̲,̲ ̲C̲o̲m̲m̲o̲n̲ ̲S̲u̲b̲p̲a̲c̲k̲a̲g̲e̲ ̲D̲a̲t̲a̲

         Ref. Transport Subpackage Data section 4.2.3.5.



4.2.6.6  O̲T̲S̲,̲ ̲C̲o̲m̲m̲o̲n̲ ̲S̲u̲b̲p̲a̲c̲k̲a̲g̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲

         Two common modules are identified for the OTS:

         OTS ̲EMF ̲COM and OTS ̲COMMON



4.2.6.6.1     O̲T̲S̲ ̲E̲M̲F̲ ̲C̲O̲M̲ ̲M̲o̲d̲u̲l̲e̲

         This module supplies a number of procedures which are
         common to the modules within the outgoing transport.

         The following functions are included:

         -    Set Up a Field ̲List for reading message lines
              from a CIF into OUT ̲EMF ̲BUF

         -    Read message line from a CIF into the OUT ̲EMF
              ̲BUF

         -    Read a message line from the OUT ̲EMF ̲BUF

         -    Set pilot mark in ACP ̲PARAMS

         -    Return preempted message



4.2.6.6.1.1 R̲e̲a̲d̲ ̲M̲e̲s̲s̲a̲g̲e̲ ̲L̲i̲n̲e̲s̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲A̲D̲ ̲E̲M̲F̲ ̲L̲I̲N̲E̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure reads the next msg line from the external
         message format of a CIF during transmission of a message.
         Information about the msg line is stored into TRS ̲SEND
         ̲INFO





4.2.6.6.1.2 S̲e̲t̲u̲p̲ ̲F̲i̲e̲l̲d̲ ̲L̲i̲s̲t̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲E̲T̲U̲P̲ ̲F̲I̲L̲E̲D̲ ̲L̲I̲S̲T̲

         (R0  C  D   TRS ̲TRANSMISSION ̲CONTROL ̲TYPE
          R1  C  D   ACP ̲PARAMETERS (TRUE/FALSE)
          R2  C  D   INIT ̲SWITCH (TRUE/FALSE)
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure  constructs a field list for reading
         a message from a CIF into the OUT ̲EMF ̲BUF of the running
         subprocess.

         The following possibilities exist.

         1    Setup a FIELD ̲LIST for reading the ACP ̲PARAMS
              R1 = TRUE

         2    Init a FIELD ̲LIST for reading a pilot
              R0 = OUTG ̲PILOT ̲FLB, OUTG ̲PILOT ̲FLC
              R1 = FALSE
              R2 = TRUE

         3    Init a FIELD ̲LIST for reading message
              R0 = OUTG ̲HEADER, OUTG ̲PREAMBLE, OUTG ̲TEXT
              R1 = FALSE
              R2 = TRUE

         4    Setup FIELD ̲LIST for reading message
              R0 = OUTG ̲PILOT ̲FLB, OUTG ̲PILOT ̲FLC
              R1 = FALSE
              R2 = FALSE

         5    Setup FIELD ̲LIST for reading message
              R0 = OUTG ̲HEADER, OUTG ̲PREAMBLE, OUTG ̲TEXT
              R1 = FALSE
              R2 = FALSE



4.2.6.6.1.3 R̲e̲a̲d̲ ̲E̲M̲F̲ ̲F̲i̲e̲l̲d̲s̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲A̲D̲ ̲E̲M̲F̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure will read the content of the EMF FIELDS
         of a file as prescribed by the TRS ̲OUT ̲FIELD ̲LIST.
         

         If the field list prescribes that the ACP ̲PARAM field
         shall be read no other fields must be prescribed. The
         procedure will itself select the address and size for
         the correct output buffer to be used (OUT ̲OF ̲EMF ̲BUF
         ̲
         CHAR.

4.2.6.6.1.4 S̲e̲t̲ ̲P̲i̲l̲o̲t̲ ̲M̲a̲r̲k̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲E̲T̲ ̲P̲I̲L̲O̲T̲ ̲M̲A̲R̲K̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         The procedure sets the PILOT ̲MARK of the TRS ̲OUT ̲ACP
         ̲
         PARAM ̲TYPE to TRUE. Prior to the call the QEL referencing
         the message must be stored in CIQ ̲QEL ̲REF and the view
         must be opened.


4.2.6.6.1.5 R̲e̲t̲u̲r̲n̲ ̲P̲r̲e̲e̲m̲p̲t̲e̲d̲ ̲M̲e̲s̲s̲a̲g̲e̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲T̲U̲R̲N̲ ̲P̲R̲E̲E̲M̲P̲T̲E̲D̲ ̲M̲E̲S̲S̲A̲G̲E̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK



         This procedure returns a preempted message to the circuit
         queue related to the running subprocess. 

         Prior to the call the QEL referencing the message must
         be stored in CIQ ̲QEL ̲REF and the view must be opened.

         The procedure sets the PILOT ̲MARK of the TRS ̲OUT ̲ACP
         ̲
         PARAM ̲TYPE to TRUE.



4.2.6.6.2     O̲T̲S̲ ̲C̲O̲M̲M̲O̲N̲ ̲M̲o̲d̲u̲l̲e̲

         This module supplies a number of procedures which are
         common to the modules within the outgoing transport.

         The following functions are included:

         -    Open view received from circuit queue.
         -    Close view received From Circuit queue.
         -    Dismantle view received from circuit queue.
         -    Return acknowledge for ASM transmission request
              to TCS.
         -    Init transfere of a message from the circuit queue.
         -    Receive a message from the circuit queue.
         -    Init output to IOC by system call APPEND ̲BYTE.
         -    Return a message to conversion for rerouting.
         -    Return all messages in the circuit queue to conversion.
         -    Move characters until space is read.
         -    Read system parameters for transmission.


4.2.6.6.2.1 O̲p̲e̲n̲ ̲V̲i̲e̲w̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲R̲S̲ ̲O̲P̲E̲N̲ ̲V̲I̲E̲W̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK
              ERROR ̲OK

         This procedure will open the view referenced by 
         CIQ ̲QEL ̲REF.


         If the view has been stopped, the msg. is dismantled
         from the circuit queue.

         EXITS:  ERROR:  The view has been stopped prior to
                         the call. In this the procedure will
                         dismantle the view from the circuit
                         queue.
                 OKAY:   The view has been opened.



4.2.6.6.2.2 C̲l̲o̲s̲e̲ ̲V̲i̲e̲w̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲R̲S̲ ̲C̲L̲O̲S̲E̲ ̲V̲I̲E̲W̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure will close the view referenced by 
         CIQ ̲QEL ̲REF.



4.2.6.6.2.3 D̲i̲s̲m̲a̲n̲t̲l̲e̲ ̲V̲i̲e̲w̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲R̲S̲ ̲D̲I̲S̲M̲A̲N̲T̲L̲E̲ ̲V̲I̲E̲W̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure will dismantle the view referenced by
         
         CIQ ̲QEL ̲REF from the circuit queue.




4.2.6.6.2.4 R̲e̲t̲u̲r̲n̲ ̲A̲S̲M̲ ̲A̲c̲k̲n̲o̲w̲l̲e̲d̲g̲e̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲T̲U̲R̲N̲ ̲A̲S̲M̲ ̲A̲C̲K̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure returns an acknowledge to the TCS with
         the result of previous ASM transmission request.



4.2.6.6.2.5 I̲n̲i̲t̲ ̲T̲r̲a̲n̲s̲f̲e̲r̲ ̲F̲r̲o̲m̲ ̲C̲i̲r̲c̲u̲i̲t̲ ̲Q̲u̲e̲u̲e̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲I̲T̲ ̲C̲I̲R̲C̲U̲I̲T̲ ̲T̲R̲A̲N̲S̲F̲E̲R̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure initializes a transfer of message from
         the circuit queue related to the running subprocess.

         The answer is associated to OT ̲OPSEM of the running
         subprocess (Main waiting point for outgoing transport).

         NOTE: The procedure contains a waiting point.



4.2.6.6.2.6 R̲e̲c̲e̲i̲v̲e̲ ̲O̲u̲t̲g̲o̲i̲n̲g̲ ̲M̲e̲s̲s̲a̲g̲e̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲C̲E̲I̲V̲E̲ ̲O̲U̲T̲G̲O̲I̲N̲G̲ ̲M̲E̲S̲S̲A̲G̲E̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4  C  D   POINTER TO OPERATION
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK



         This procedure receives a message from the circuit
         related to running subprocess and referred to by an
         operation.

         Prior to the call the transfer of the message must
         have been initialized (by initiating system call 
         RECEIVE ̲FIRST ̲QEL through OT ̲OPEM).

         The procedure will store the view reference into 
         CIQ ̲QEL ̲REF.

         The operation is returned to TRS ̲OP ̲POOL.

         NOTE: This procedure contains a waiting point.


4.2.6.6.2.7 O̲u̲t̲p̲u̲t̲ ̲M̲e̲s̲s̲a̲g̲e̲ ̲L̲i̲n̲e̲s̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲I̲T̲ ̲I̲O̲C̲ ̲O̲U̲T̲P̲U̲T̲

         (R0     D
          R1     D
          R2     D
          R3  C  D   BUFFER ̲IO ̲TYPE
          R4  C  D   POINTER TO OPERATION
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure sends a buffer to the IOC by initiating
         the system call APPEND ̲BYTES.

         The buffer must be referenced by an operation defined
         as the data structure TRS ̲IOC ̲OPERATION. The procedure
         associates the answer to OT ̲OPSEM (main waiting point
         for the outgoing transport).

         NOTE: This procedure contains a waiting point.


4.2.6.6.2.8 R̲e̲r̲o̲u̲t̲e̲ ̲M̲e̲s̲s̲a̲g̲e̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲R̲O̲U̲T̲E̲ ̲M̲E̲S̲S̲A̲G̲E̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK



         This procedure sends a message received from the circuit
         queue (CIQ) to conversion for rerouting (Ref.CPS/ICD/009
         5.6.5.1).

         The message is checkpointed at the conversion queue
         and dismantled from the circuit queue.



4.2.6.6.2.9 R̲e̲r̲o̲u̲t̲e̲ ̲C̲i̲r̲c̲u̲i̲t̲ ̲M̲e̲s̲s̲a̲g̲e̲s̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲R̲O̲U̲T̲E̲ ̲C̲I̲R̲C̲U̲I̲T̲ ̲M̲E̲S̲S̲A̲G̲E̲S̲

         (R0     D
          R1  C  D   CONDITIONAL REROUTING (TRUE/FALSE)
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure sends all messages stored in the circuit
         queue to conversion for rerouting. If more than one
         message is represented with the same CIF ̲ID, only the
         first one of these is returned for rerouting.

         The procedure destroys the OUT ̲ACP ̲PARAMS, the OUT
         ̲EMF ̲BUF and the save area for CIQ ̲QEL ̲REF.

         If CONDITIONAL REROUTING is requested the message is
         only rerouted if all channels within the circuit are
         closed.

         NOTE: This procedure contains waiting points.



4.2.6.6.2.10 C̲a̲n̲c̲e̲l̲ ̲O̲T̲S̲ ̲A̲c̲t̲i̲v̲i̲t̲y̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲A̲N̲C̲E̲L̲ ̲O̲T̲S̲ ̲A̲C̲T̲I̲V̲I̲T̲Y̲

         REROUTE ̲TYPE:BOOLEAN)
         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK



         This procedure will cancel the OTS activity by executing
         the following tasks:

         A)   Return of transmitted flash messages (waiting
              for acknowledge) to the circuit queue.

         B)   Cancel of initiated RECEIVE ̲FIRST ̲QEL from the
              circuit queue.

         C)   Rerouting of messages stored in the circuit queue.
              If REPORT ̲TYPE is true the messages are only rerouted
              if the channel connectivity is zero.

         D)   The procedure terminates its activity by sending
              the OUT ̲CLOSE ̲ACK operation to the TCS.



4.2.6.6.2.11 R̲e̲a̲d̲ ̲O̲u̲t̲g̲o̲i̲n̲g̲ ̲S̲y̲s̲t̲e̲m̲ ̲P̲a̲r̲a̲m̲e̲t̲e̲r̲s̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲A̲D̲ ̲O̲U̲T̲G̲ ̲S̲Y̲S̲ ̲P̲A̲R̲A̲M̲S̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure reads the following SYS ̲PARAMETERS:

         -    No. of spaces to be inserted into FL1 (stored
              in ACP ̲127 ̲PARAMS).

         -    DE ̲RI (Stored in NET ̲WORK ̲PARAMETERS)

         NOTE:   The procedure makes use of OUT ̲EMF ̲BUF
                 The procedure has a waiting point.





4.2.6.6.2.12 M̲o̲v̲e̲ ̲C̲h̲a̲r̲a̲c̲t̲e̲r̲s̲ ̲U̲n̲t̲i̲l̲ ̲S̲p̲a̲c̲e̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲M̲O̲V̲E̲ ̲U̲N̲T̲I̲L̲ ̲S̲P̲A̲C̲E̲

         (R1  C  R   MAX ̲NO ̲OF ̲BYTES/NO ̲OF ̲BYTES moved
          R2  C  D   START ̲INDEX, DESTINATION
          R3  C  D   START ̲ADDRESS, DESTINATION
          R4  C  D   START ̲INDEX. SOURCE
          R5     D   START ̲ADDRESS, SOURCE
          R7     K
          R6) C  D   LINK

         This procedure moves a string of characters from a
         SOURCE ̲BUFFER into a DESTINATION ̲BUFFER.

         If a SPACE character is read before the MAX ̲NO ̲OF ̲BYTES
         has been moved the procedure returns with the number
         of bytes moved until then.



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

                 a)  A̲A̲S̲ ̲t̲o̲ ̲O̲T̲S̲

                     Incoming message for punch
                     (ref. ICD 009, sec. 5.6.2.1)

                 b)  A̲C̲S̲ ̲t̲o̲ ̲O̲T̲S̲

                     Outgoing Message for transmission (ref.
                     ICD 009, sec. 5.6.4.1).

                     SCARS/CCIS comment or VDU-page for transmission
                     (ref. ICD 009, sec. 5.6.4.2).

                 c)  O̲T̲S̲ ̲t̲o̲ ̲A̲C̲S̲

                     Outgoing Message returned for rerouting.
                     (ref. ICD 009, sec. 5.6.5.1)

                 d)  T̲C̲S̲ ̲t̲o̲/̲f̲r̲o̲m̲ ̲O̲T̲S̲

                     (ref. section 4.2.3.7)

                 e)  O̲T̲S̲ ̲t̲o̲ ̲T̲E̲P̲

                     Reports to supervisor printer (ref. ICD
                     009, sec. 5.2.2.14)



                 f)  O̲T̲S̲ ̲t̲o̲ ̲S̲A̲R̲

                     Retrieval keys for outg. msg. (ref. ICD
                     009, sec. 5.3.1.2)

                 g)  O̲T̲S̲ ̲t̲o̲ ̲L̲O̲G̲

                     Outgoing message Log. (ref. ICD 009, sec.
                     5.4.2.4).

                 h)  O̲T̲S̲ ̲t̲o̲ ̲S̲T̲P̲

                     Outgoing Message per channel.

                     (Ref. ICD 009, sec. 3.3 and 6.1.1.3.2.2)