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 - metrics - download

⟦156318766⟧ Wang Wps File

    Length: 58355 (0xe3f3)
    Types: Wang Wps File
    Notes: CPS/SDS/048               
    Names: »4708A «

Derivation

└─⟦249f842e7⟧ Bits:30006192 8" Wang WCS floppy, CR 0445A
    └─⟦this⟧ »4708A « 

WangText




…02…CPS/SDS/048

…02…JBS/840815…02……02…
MESSAGE SERVICE VDU
…02……02…CAMPS










         4.2.2.5 Common Subpackage Data .............
                     
         4.2.2.6 Common Subpackage Procedures .......
                     
           4.2.2.6.1 Request FC-Key Input ...........
                         
           4.2.2.6.2 Delete FC-Key Input Request ....
                         
           4.2.2.6.3 Set Cursor .....................
                         
           4.2.2.6.4 Display Header Field ...........
                         
           4.2.2.6.5 Read Command Line ..............
                         
           4.2.2.6.6 Display Response Message .......
                         
           4.2.2.6.7 Execute DERM Command ...........
                         
           4.2.2.6.8 Fetch and Validate Key .........
                         
           4.2.2.6.9 Set Header Feet ................
                         
           4.2.2.6.10  Free SFCO Operation ..........
                           
           4.2.2.6.11  Fetch SFCO Operation .........
                           
           4.2.2.6.12  Send SVCO Answer .............
                           
           4.2.2.6.13  Send SVDIA Command ...........
                           
           4.2.2.6.14  Send SCREP Command ...........
                           
           4.2.2.6.15  Wait SFCO Event ..............
                           
           4.2.2.6.16  Exception VDU ................
                           
           4.2.2.6.17  Fetch Sequence Record ........
                           
           4.2.2.6.18  Simple Parameter Check .......
                           
           4.2.2.6.19  Compute Error Number .........
                           
           4.2.2.6.20  FC-Key Parameter Validation ..
                           
           4.2.2.6.21  Lookup Parameters ............
                           
           4.2.2.6.22  Extract Parameter ............
                           
           4.2.2.6.23  Log Reporting ................
                           
           4.2.2.6.24  Accounting ...................
                           
           4.2.2.6.25  Set Cursor Position ..........
                           
           4.2.2.6.26  Set Format Name ..............
                           
           4.2.2.6.27  Calculate Menu ...............
                           
           4.2.2.6.28  Calculate Message Handling Menu
                          
           4.2.2.6.29  Request Answer Queue Input ...
                           
           4.2.2.6.30  Transaction Accounting
                       (Initial) ....................
                           
           4.2.2.6.31  Empty Action .................
                           
           4.2.2.6.32  OK Action ....................
                           
           4.2.2.6.33  Calculate Receive Queue Format
                           
           4.2.2.6.34  Calculate Preparation Header
                       Format .......................
                           
           4.2.2.6.35  Copy Request .................
                           
           4.2.2.6.36  Display Response From SAR ....
                           
           4.2.2.6.37  Calculate Retrieval Key Format
                           
           4.2.2.6.38  Send Request to SAR ..........
                           
           4.2.2.6.39  Send to THP ..................
                           
           4.2.2.6.40  Send to MDP ..................
                           
           4.2.2.6.41  Send to OCR ..................
                           
           4.2.2.6.42  Send Flash Notification ......
                           
           4.2.2.6.43  Send for Print ...............
                           
           4.2.2.6.44  Return CIF to Queue ..........
                           


           4.2.2.6.45  Send Special .................
                           
           4.2.2.6.46  Reserve Buffer ...............
                           
           4.2.2.6.47  Send Deletion Notification ...
                           
           4.2.2.6.48  Send Retrieval Request .......
                           
           4.2.2.6.49  Request Open CIF .............
                           
           4.2.2.6.50  Wait Open SIF ................
                           
           4.2.2.6.51  Return View ..................
                           
           4.2.2.6.52  Save View ....................
                           
           4.2.2.6.53  Change Profile ...............
                           
           4.2.2.6.54  Read View Attributes .........
                           
           4.2.2.6.55  Make CIF Permanent ...........
                           
           4.2.2.6.56  Collect Atomal Log Data ......
                           
           4.2.2.6.57  Ring the Bell ................
                           
           4.2.2.6.58  Change VDU Field Attributes ..
                           
           4.2.2.6.59  Perform Invert Bell Command ..
                           
           4.2.2.6.60  Enable F/C Keys ..............
                           
           4.2.2.6.61  Calculate Retrieval Display
                       Format .......................
                           

       4.2.3 VDU Dialogue Subpackage (VDIA) .........
                 
       4.2.4 Retrieve Subpackage ....................
                 
         4.2.4.1 Functional Specification ...........
                     
           4.2.4.1.1 Initialization (1.0) ...........
                         
           4.2.4.1.2 MAVCO Command Processing (2.0) .
                         
           4.2.4.1.3 Retrieval Processing (3.0) .....
                         
           4.2.4.1.4 Error Handling (4.0) ...........
                         

         4.2.4.2 Software Structure .................
                     
         4.2.4.3 Data Flow and Control Logic within 
                 MART ...............................
                     
           4.2.4.3.1 Data Flow ......................
                         
           4.2.4.3.2 Control Logic ..................
                         

         4.2.4.4 MART Module Specification ..........
                     
           4.2.4.4.1 MART Main ......................
                         

         4.2.4.5 Common Subpackage Data .............
                     

     4.3 MEMORY LAYOUT ..............................
             


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

         a)  Common Types

         Refer source list for

         GEN ̲PREFIX.S
         IO ̲PREFIX.S
         CMD ̲PREFIX.S
         MAFCO ̲GENERAL.S

         b)  Common Data

         Refer source list for

         COROU ̲DATA.S
         CMD ̲DATA.S
         IO ̲DATA.S
         MAFCO ̲DATA.S
         MMON ̲DATA.S



4.2.2.6  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̲



4.2.2.6.1    R̲e̲q̲u̲e̲s̲t̲ ̲F̲C̲-̲K̲e̲y̲ ̲I̲n̲p̲u̲t̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.2    D̲e̲l̲e̲t̲e̲ ̲F̲C̲-̲K̲e̲y̲ ̲I̲n̲p̲u̲t̲ ̲R̲e̲q̲u̲e̲s̲t̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.3    S̲e̲t̲ ̲C̲u̲r̲s̲o̲r̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.4    D̲i̲s̲p̲l̲a̲y̲ ̲H̲e̲a̲d̲e̲r̲ ̲F̲i̲e̲l̲d̲

         Refer CPS/SDS/035, sec. 4.2.2.6





4.2.2.6.5    R̲e̲a̲d̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲L̲i̲n̲e̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.6    D̲i̲s̲p̲l̲a̲y̲ ̲R̲e̲s̲p̲o̲n̲s̲e̲ ̲M̲e̲s̲s̲a̲g̲e̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.7    E̲x̲e̲c̲u̲t̲e̲ ̲D̲E̲R̲M̲ ̲C̲o̲m̲m̲a̲n̲d̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.8    F̲e̲t̲c̲h̲ ̲a̲n̲d̲ ̲V̲a̲l̲i̲d̲a̲t̲e̲ ̲K̲e̲y̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.9    S̲e̲t̲ ̲H̲e̲a̲d̲e̲r̲ ̲T̲e̲x̲t̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.10   F̲r̲e̲e̲ ̲S̲F̲C̲O̲ ̲O̲p̲e̲r̲a̲t̲i̲o̲n̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.11   F̲e̲t̲c̲h̲ ̲S̲F̲C̲O̲ ̲O̲p̲e̲r̲a̲t̲i̲o̲n̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.12   S̲e̲n̲d̲ ̲S̲V̲C̲O̲ ̲A̲n̲s̲w̲e̲r̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.13   S̲e̲n̲d̲ ̲S̲V̲D̲I̲A̲ ̲C̲o̲m̲m̲a̲n̲d̲

         Refer CPS/SDS/035, sec. 4.2.2.6





4.2.2.6.14   S̲e̲n̲d̲ ̲S̲C̲R̲E̲P̲ ̲C̲o̲m̲m̲a̲n̲d̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.15   W̲a̲i̲t̲ ̲S̲F̲C̲O̲ ̲E̲v̲e̲n̲t̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.16   E̲x̲c̲e̲p̲t̲i̲o̲n̲ ̲V̲D̲U̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.17   F̲e̲t̲c̲h̲ ̲S̲e̲q̲u̲e̲n̲c̲e̲ ̲R̲e̲c̲o̲r̲d̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.18   S̲i̲m̲p̲l̲e̲ ̲P̲a̲r̲a̲m̲e̲t̲e̲r̲ ̲C̲h̲e̲c̲k̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.19   C̲o̲m̲p̲u̲t̲e̲ ̲E̲r̲r̲o̲r̲ ̲N̲u̲m̲b̲e̲r̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.20   F̲C̲-̲K̲e̲y̲ ̲P̲a̲r̲a̲m̲e̲t̲e̲r̲ ̲V̲a̲l̲i̲d̲a̲t̲i̲o̲n̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.21   L̲o̲o̲k̲u̲p̲ ̲P̲a̲r̲a̲m̲e̲t̲e̲r̲s̲

         Refer CPS/SDS/035, sec. 4.2.2.6



4.2.2.6.22   E̲x̲t̲r̲a̲c̲t̲ ̲P̲a̲r̲a̲m̲e̲t̲e̲r̲

         Refer CPS/SDS/035, sec. 4.2.2.6





4.2.2.6.23   L̲o̲g̲ ̲R̲e̲p̲o̲r̲t̲i̲n̲g̲



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

         Creates a log report based on the current contents
         of the sequence record and log data collected. The
         report is sent to LOG and an answer is awaited. If
         the answer is a negative acknowledge then a queue error
         is reported.



4.2.2.6.23.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  REPORT ̲LOG (LOG ̲TYPE: SVUP ̲LOG ̲TYPE)

         b)  REPORT ̲LOG (R0,R6)

         Register Convention

         Call Registers

             R0                  LOG TYPE        (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             SVUP ̲REQ ̲ANS ̲Q      (m)
             SVUP ̲ARRQ
             TRANSACTION ̲ID
             SVUP ̲LOG            (m)
             SEQ ̲REC
             ACCOUNT ̲AREA        (m)
             PROBLEM ̲NO          (m)
             INIT ̲AREA


             SVUP ̲SEND ̲PARAMS    (m)
             SVUP ̲SEND ̲Q         (m)
             SVUP ̲QEL ̲ATTR       (m)

         c)  Local Data
             Refer source list



4.2.2.6.23.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.23.1



4.2.2.6.24   A̲c̲c̲o̲u̲n̲t̲i̲n̲g̲



4.2.2.6.24.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 procedure performs the following functions:

         -   storage of messages and comments
         -   status reporting.

         Data is set up according to interface description.



4.2.2.6.24.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  ACCOUNT (FUNCTION: MASS/SVUP ̲FUNCTION ̲TYPE
                      SEND ̲TYPE:  MASS ̲ACCOUNT ̲CALL ̲TYPE)

         b)  ACCOUNT (R0, R1, R6)

         Register Convention

         Call Registers

             R0                  FUNCTION        (DEST)
             R1                  SEND ̲TYPE       (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)





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

         a)  Data References

             Refer source list

         b)  External Data

             INIT ̲AREA
             SEQ ̲REC
             SVUP ̲SEND ̲Q         (m)
             SVUP ̲SEND ̲PARAMS    (m)
             OUTPUT ̲CIF

         c)  Local Data

             Refer source list



4.2.2.6.24.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.24.1



4.2.2.6.25   S̲e̲t̲ ̲C̲u̲r̲s̲o̲r̲ ̲P̲o̲s̲i̲t̲i̲o̲n̲



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

         Inserts command line position in Sequence record.



4.2.2.6.25.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  SET ̲CURSOR ̲POS (  )

         b)  SET ̲CURSOR ̲POS (R6)

         Register Convention

         Call Registers
             R6                  LINK            (DEST)

         Return Registers
             R0,R6                               (DEST)
             R1-R5,R7                            (KEPT)





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

         a)  Data References

             Refer source list

         b)  External Data

             SEQ ̲REC.CURSOR (m)

         c)  Local Data

             None



4.2.2.6.25.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.25.1



4.2.2.6.26   S̲e̲t̲ ̲F̲o̲r̲m̲a̲t̲ ̲N̲a̲m̲e̲



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

         Inserts calculated format name in Sequence record.



4.2.2.6.26.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specifications

         a)  SET ̲FOR (TEXT ̲1,
                      TEXT ̲2,
                      TEXT ̲4: INTEGER);

         b)  SET ̲FOR (TEXT ̲1, TEXT ̲2, TEXT ̲4,R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R3,R6                               (DEST)
         R0-R2,R4-R5,R7                          (KEPT)





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

         a)  Data References

             Refer source list

         b)  External Data

             SEQ ̲REC.SVDIA ̲FORMAT (m)

         c)  Local Data

             None



4.2.2.6.26.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.26.1





4.2.2.6.27   C̲a̲l̲c̲u̲l̲a̲t̲e̲ ̲M̲e̲n̲u̲



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

         Depending on current mode either the MSO menu or the
         MDCO menu is selected. The text to be displayed in
         the VDU header area is calculated.



4.2.2.6.27.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  CALC ̲MENU (  )
                       (HD ̲TXT: HEADER ̲TEXT)

         b)  CALC ̲MENU (R1,R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R1                  HD ̲TXT
             R0,R2-R7                            (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             SEQ ̲REC (m)

         c)  Local Data

             Refer source list.



4.2.2.6.27.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.27.1





4.2.2.6.28   C̲a̲l̲c̲u̲l̲a̲t̲e̲ ̲M̲e̲s̲s̲a̲g̲e̲ ̲H̲a̲n̲d̲l̲i̲n̲g̲ ̲M̲e̲n̲u̲



4.2.2.6.28.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 format name for current MSGH menu is calculated.
         Terminal Function and classification is displayed in
         the VDU header area.



4.2.2.6.28.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  CALC ̲MSGH ̲MENU (  )
                            (CC: SEQ ̲STATE)

         b)  CALC ̲MSGH ̲MENU (R5,R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R5                  CC
         R0-R4,R6-R7                             (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             SEQ ̲REC (m)

         c)  Local Data

             Refer source list



4.2.2.6.28.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.28.1


4.2.2.6.29   R̲e̲q̲u̲e̲s̲t̲ ̲A̲n̲s̲w̲e̲r̲ ̲Q̲u̲e̲u̲e̲ ̲I̲n̲p̲u̲t̲



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

         An init receive first QEL call is initiated. The call
         is associated semaphore SFCO ̲SEM.



4.2.2.6.29.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  REQUEST ̲ANQ ̲INPUT (  )

         b)  REQUEST ̲ANQ ̲INPUT(R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             SVUP ̲QNAME (m)
             SVUP ̲ARRQ
             ANQ ̲ATTR
             ANQ ̲OP ̲PT
             SFCO ̲SEM

         c)  Local Data

             Refer source list



4.2.2.6.29.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.29.1


4.2.2.6.30   T̲r̲a̲n̲s̲a̲c̲t̲i̲o̲n̲ ̲A̲c̲c̲o̲u̲n̲t̲i̲n̲g̲ ̲(̲I̲n̲i̲t̲i̲a̲l̲)̲



4.2.2.6.30.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 next transaction serial number is fetched from
         TMP and ACOOUNT ̲AREA is updated. If the transaction
         in progress is concerning a CIF then the view attributes
         will be read.



4.2.2.6.30.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  TEP ̲TRSERNO (  )

         b)  TEP ̲TRSERNO (R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             ACCOUNT ̲AREA (m)
             SVUP ̲RECV ̲ATTR
             INIT ̲AREA
             CUR ̲TIME
             TRANSACTION ̲ID (m)

         c)  Local Data

             Refer source list




4.2.2.6.30.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.30.1.



4.2.2.6.31   E̲m̲p̲t̲y̲ ̲A̲c̲t̲i̲o̲n̲



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

         Performs the clean up action if a receive command is
         terminated due to a queue empty completion code.



4.2.2.6.31.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  EMPTY ̲ACTION (  )
                          (CC: SEQ ̲STATE)

         b)  EMPTY ̲ACTION (R5, R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R5                  CC
         R0-R4,R6-R7                             (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             INPUT ̲CIF (m)
             CURRENT ̲MAINQUEUE

         c)  Local Data

             Refer source list





4.2.2.6.31.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.31.1.



4.2.2.6.32   O̲K̲ ̲A̲c̲t̲i̲o̲n̲


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

         Updates the VDU header with classification and header
         text in case of successfull termination of a receive
         command.



4.2.2.6.32.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  OK ̲ACTION (QEL: QEL ̲REFERENCE)
                       (CC: SEQ ̲STATE)

         b)  OK ̲ACTION (R2,R5,R6)

         Register Convention

         Call Registers

             R2                  QEL             (KEPT)
             R6                  LINK            (DEST)

         Return Registers

             R5                  CC
         R0-R1,R3-R4,R6-R7                       (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             INPUT ̲CIF (m)
             OUTPUT ̲CIF (m)
             SVUP ̲RECV ̲ATTR



         c)  Local Data

             Refer source list.


4.2.2.6.32.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.32.1.



4.2.2.6.33   C̲a̲l̲c̲u̲l̲a̲t̲e̲ ̲R̲e̲c̲e̲i̲v̲e̲ ̲Q̲u̲e̲u̲e̲ ̲F̲o̲r̲m̲a̲t̲


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

         Validates the attributes received and sets up format
         ID. An error completion is returned if invalid attributes
         are received.



4.2.2.6.33.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  CALC ̲RECV ̲FOR(ATTRIBUTES: QEL ̲ATTRIBUTES)
                          (CC: RECV ̲CC)

         b)  CALC ̲RECV ̲FOR (R0,R4,R6)

         Register Convention

         Call Registers

             R4                  o/o ATTRIBUTES  (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0                  CC
             R1-R7                               (DEST)



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

         a)  Data References

             Refer source list



         b)  External Data

             HD ̲TXT (m)
             SEQ ̲REC (m)

         c)  Local Data

             Refer source list


4.2.2.6.33.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.33.1



4.2.2.6.34   C̲a̲l̲c̲u̲l̲a̲t̲e̲ ̲P̲r̲e̲p̲a̲r̲a̲t̲i̲o̲n̲ ̲H̲e̲a̲d̲e̲r̲ ̲F̲o̲r̲m̲a̲t̲



4.2.2.6.34.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 name of the format to be used during preparation
         of the message/command header is calculated



4.2.2.6.34.2 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Call Specification

         a)  CALC ̲PREP ̲HD (  )

         b)  CALC ̲PREP ̲HD (R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)





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

         a)  Data References

             Refer source list

         b)  External Data

             ACCOUNT ̲AREA

         c)  Local Data

             Refer source list



4.2.2.6.34.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.34.1.



4.2.2.6.35   C̲o̲p̲y̲ ̲R̲e̲q̲u̲e̲s̲t̲


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

         Sends a copy CIF command to VDIA and awaits answer.
         The procedure can be abnormally terminated by a stop
         command. Function keys are accepted but have no effect.



4.2.2.6.35.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  COPY ̲REQUEST (DESTINATION : VIEW ̲REFERENCE,
                                 SOURCE: VIEW ̲REFERENCE
                                 CMD   : COPY ̲TYPE)
                          (CC : SEQ ̲STATE)

         b)  COPY ̲REQUEST (R0,R1,R2,R5,R6)

         Register Convention

         Call Registers

             R0                  DESTINATION     (DEST)
             R1                  SOURCE          (DEST)
             R2                  CMD             (DEST)
             R6                  LINK            (DEST)



         Return Registers

             R5                  CC
         R0-R4,R6-R7                             (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             ITEM ̲REC (m)

         c)  Local Data

             Refer source list


4.2.2.6.35.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.35.1.



4.2.2.6.36   D̲i̲s̲p̲l̲a̲y̲ ̲R̲e̲s̲p̲o̲n̲s̲e̲ ̲F̲r̲o̲m̲ ̲S̲A̲R̲



4.2.2.6.36.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 completion code returned by SAR is checked and
         a response message is displayed.



4.2.2.6.36.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  DISP ̲SAR ̲RESP (RESP: SAR ̲CC)

         b)  DISP ̲SAR ̲RESP (R1,R6)

         Register Convention



         Call Registers

             R1                  RESP            (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             None

         c)  Local Data

             Refer source list



4.2.2.6.36.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.36.1



4.2.2.6.37   C̲a̲l̲c̲u̲l̲a̲t̲e̲ ̲R̲e̲t̲r̲i̲e̲v̲a̲l̲ ̲K̲e̲y̲ ̲F̲o̲r̲m̲a̲t̲



4.2.2.6.37.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 retrieval keys are read from the buffer returned
         by SAR, and the format in which the keys shall be displayed
         is caluclated.



4.2.2.6.37.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  CALC ̲RETR ̲BUF ̲FOR (BUFFER: BUFFER ̲REFERENCE)



         b)  CALC ̲RETR ̲BUF ̲FOR (R2,R6)

         Register Convention

         Call Registers

             R2                  BUFFER          (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             SFCO ̲TMP ̲REC        (m)
             SEQ ̲REC             (m)
             HD ̲TXT              (m)
             SVUP ̲RECV ̲ATTR

         c)  Local Data

             Refer source list


4.2.2.6.37.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.37.1.



4.2.2.6.38   S̲e̲n̲d̲ ̲R̲e̲q̲u̲e̲s̲t̲ ̲t̲o̲ ̲S̲A̲R̲



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

         A buffer is reserved and the retrieval keys read from
         the VDU is sent to SAR.





4.2.2.6.38.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  SEND ̲SAR ̲REQUEST (REQUEST: SAR ̲SEND ̲TYPE)

         b)  SEND ̲SAR ̲REQUEST (R0,R6)

         Register Convention

         Call Registers

             R0                  REQUEST         (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             SVDIA ̲TMP ̲REC ̲PT

         c)  Local Data

             Refer source list



4.2.2.6.38.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.38.1





4.2.2.6.39   S̲e̲n̲d̲ ̲t̲o̲ ̲T̲H̲P



4.2.2.6.39.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 purpose of this procedure is to collect data in
         accordance with interface definition for the following
         interfaces:

         -   messages sent from garble correction
         -   messages sent from inspection
         -   messages sent from RI-assignment
         -   abbreviated service messages sent for transmission



4.2.2.6.39.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  SEND ̲THP (REQUEST: THP ̲MDP ̲SEND ̲TYPE)

         b)  SEND ̲THP (R0,R6)

         Register Convention

         Call Registers

             R0                  REQUEST         (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data references

             Refer source list

         b)  External Data
             SVUP ̲RECV ̲ATTR
             ACCOUNT ̲AREA
             SVUP ̲SEND ̲PARAMS (m)
             SVUP ̲SEND ̲Q (m)
             SVUP ̲REQ ̲ANS ̲Q (m)
             OUTPUT ̲CIF
             SVUP ̲ARRQ



         c)  Local Data
             Refer source list



4.2.2.6.39.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.39.1.



4.2.2.6.40   S̲e̲n̲d̲ ̲t̲o̲ ̲M̲D̲P̲



4.2.2.6.40.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 purpose of this procedure is to collect data in
         accordance with interface definition for the following
         interfaces:

         -   messages sent from alternative distribution
         -   messages sent from incoming distribution



4.2.2.6.40.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  SEND ̲MDP (REQUEST: THP ̲MDP ̲SEND ̲TYPE)

         B)  SEND ̲MDP (R0,R6)

         Register Convention

         Call Registers

             R0                  REQUEST         (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)


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

         a)  Data References

             Refer source list



         b)  External Data

             SVUP ̲RECV ̲ATTR
             SVUP ̲SEND ̲PARAMS (m)
             SVUP ̲SEND ̲Q (m)
             SVUP ̲REQ ̲ANS ̲Q (m)
             SVUP ̲ARRQ
             OUTPUT ̲CIF

         c)  Local Data

             Refer source list



4.2.2.6.40.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.40.1



4.2.2.6.41   S̲e̲n̲d̲ ̲t̲o̲ ̲O̲C̲R̲


4.2.2.6.41.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 messages received from OAS for garble correction
         is returned for further analysis. Data are collected
         in accordance with interface definition.



4.2.2.6.41.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  SEND ̲OCR (  )

         b)  SEND ̲OCR (R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)





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

         a)  Data References

             Refer source list

         b)  External Data

             SVUP ̲SEND ̲PARAMS (m)
             SVUP ̲SEND ̲Q (m)
             SVUP ̲REQ ̲ANS ̲Q (m)
             SVUP ̲ARRQ
             OUTPUT ̲CIF

         c)  Local Data

             Refer source list



4.2.2.6.41.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.41.1



4.2.2.6.42   S̲e̲n̲d̲ ̲F̲l̲a̲s̲h̲ ̲N̲o̲t̲i̲f̲i̲c̲a̲t̲i̲o̲n̲



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

         Sends a Flash notification to the atomal or associated
         printer when a message with precedence flash has been
         sent for print.



4.2.2.6.42.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  SEND ̲FLASH (KIND: PRINT ̲KIND)

         b)  SEND ̲FLASH (R0,R6)

         Register Convention



         Call Registers

             R0                  KIND            (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             SVUP ̲SEND ̲PARAMS (m)
             SVUP ̲SEND ̲Q (m)

         c)  Local Data

             Refer source list



4.2.2.6.42.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.42.1



4.2.2.6.43   S̲e̲n̲d̲ ̲f̲o̲r̲ ̲P̲r̲i̲n̲t̲



4.2.2.6.43.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 currently displayed on the VDU is sent
         for printout. Data are collected in accordance with
         interface specification. If the associated printer
         has too low classification then the message is sent
         to the atomal printer. If the classification of the
         atomal printer is too low too, or if the printer queue
         is blocked then the print request will be rejected.
         A response message telling the result of the print
         request will be displayed on the VDU.





4.2.2.6.43.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  SEND ̲PRINT (REQUEST: PRINT ̲TYPE,
                         SPECIAL: SPEC ̲TYPE)
         b)  SEND ̲PRINT (R0,R1,R6)

         Register Convention

         Call Registers
             R0                  REQUEST         (DEST)
             R1                  SPECIAL         (DEST)
             R6                  LINK            (DEST)

         Return Registers
             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data
             ACCOUNT ̲AREA
             CURRENT ̲SUBQUEUE
             OUTPUT ̲CIF
             SVUP ̲RECV ̲ATTR
             INPUT ̲CIF
             SVUP ̲SEND ̲PARAMS (m)
             INIT ̲AREA
             TRANSACTION ̲ID
             SVUP ̲SEND ̲Q (m)

         c)  Local Data
             Refer source list



4.2.2.6.43.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲
         Refer 4.2.2.6.43.1.


4.2.2.6.44   R̲e̲t̲u̲r̲n̲ ̲C̲I̲F̲ ̲t̲o̲ ̲Q̲u̲e̲u̲e̲



4.2.2.6.44.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 CIF currently worked upon is sent to the queue
         from where it was received.



4.2.2.6.44.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  RETURN ̲CIF ̲TO ̲QUEUE (CIF: VIEW ̲REFERENCE)

         b)  RETURN ̲CIF ̲TO QUEUE (R2,R6)

         Register Convention

         Call Registers

             R2                  CIF             (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             CURRENT ̲MAINQUEUE
             CURRENT ̲SUBQUEUE
             SVUP ̲SEND ̲Q (m)
             SVUP ̲RECV ̲ATTR
             SVUP ̲SEND ̲PARAMS (m)

         c)  Local Data

             Refer source list





4.2.2.6.44.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.44.1.



4.2.2.6.45   S̲e̲n̲d̲ ̲S̲p̲e̲c̲i̲a̲l̲



4.2.2.6.45.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 purpose of this procedure is to collect data in
         accordance with interface description for the following
         interfaces:

         -   messages sent for rerun
         -   messages sent for readdressal
         -   messages sent for redistribution
         -   comments sent for distribution



4.2.2.6.45.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  SEND ̲SPECIAL (REQUEST: SEND ̲BIT)

         b)  SEND ̲SPECIAL (R0, R6)

         Register Convention

         Call Registers

             R0                  REQUEST         (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list



         b)  External Data

             INPUT ̲CIF (m)
             OUTPUT ̲CIF (m)
             SVUP ̲RECV ̲ATTR
             SVUP ̲SEND ̲PARAMS (m)
             SVUP ̲SEND ̲Q (m)

         c)  Local Data

         Refer source list



4.2.2.6.45.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.45.1.



4.2.2.6.46   R̲e̲s̲e̲r̲v̲e̲ ̲B̲u̲f̲f̲e̲r̲



4.2.2.6.46.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 purpose of this procedure is to reserve a buffer.
         The size will be as specified by caller.



4.2.2.6.46.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  MAFCO ̲RESERVE ̲BUFFER (SIZE: INTEGER)
                                  (BUFFER: BUFFER ̲REFERENCE)

         b)  MAFCO ̲RESERVE ̲BUFFER (R0,R2,R6)

         Register Convention

         Call Registers

             R0                  SIZE            (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R2                  BUFFER
             R0-R1, R3-R7                        (DEST)





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

         a)  Data References

             Refer source list

         b)  External Data

             SVUP ̲REQ ̲ANS ̲Q (m)
             SVUP ̲ARRQ

         c)  Local Data

             Refer source list



4.2.2.6.46.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.46.1



4.2.2.6.47   S̲e̲n̲d̲ ̲D̲e̲l̲e̲t̲i̲o̲n̲ ̲N̲o̲t̲i̲f̲i̲c̲a̲t̲i̲o̲n̲



4.2.2.6.47.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 purpose of this procedure is to send a deletion
         notification to the drafter of the message which has
         been deleted. If the user queue is blocked then the
         MSA operator will be informed.



4.2.2.6.47.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  SEND ̲DEL ̲NOT (USER: LOGICAL ̲DESIGNATOR,
                         BUFFER: BUFFER ̲REFERENCE)

         b)  SEND ̲DEL ̲NOT (R1,R2,R6)

         Register Convention

         Call Registers

             R1                  USER            (DEST)
             R2                  BUFFER          (DEST)
             R6                  LINK            (DEST)



         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             SVUP ̲SEND ̲Q (m)
             SVUP ̲SEND ̲PARAMS (m)

         c)  Local Data

             Refer source list.



4.2.2.6.47.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.47.1.



4.2.2.6.48   S̲e̲n̲d̲ ̲R̲e̲t̲r̲i̲e̲v̲a̲l̲ ̲R̲e̲q̲u̲e̲s̲t̲



4.2.2.6.48.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 retrieval keys read from the VDU is sent to SAR
         in a buffer. Data are collected in accordance with
         interface description.



4.2.2.6.48.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification.

         a)  SEND ̲SAR ̲BUFFER (REQUEST: SAR ̲SEND ̲TYPE
                              BUFFER : BUFFER ̲REFERENCE

         b)  SEND ̲SAR ̲BUFFER (R0,R2,R6)



         Register Convention

         Call Registers

             R0                  REQUEST         (DEST)
             R2                  BUFFER          (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             SVUP ̲REQ ̲ANS ̲Q (m)
             SVUP ̲SEND ̲Q (m)
             SVUP ̲ARRQ
             SVUP ̲SEND ̲PARAMS (m)
             ACCOUNT ̲AREA

         c)  Local Data

             Refer source list.



4.2.2.6.48.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.48.1.



4.2.2.6.49   R̲e̲q̲u̲e̲s̲t̲ ̲O̲p̲e̲n̲ ̲C̲I̲F̲



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

         An init open view call is initiated. The call is associated
         semaphore SFCO ̲SEM.





4.2.2.6.49.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification.

         a)  REQUEST ̲OPEN ̲CIF (CIF: VIEW ̲REFERENCE)

         b)  REQUEST ̲OPEN ̲CIF (R2,R6)

         Register Convention

         Call Registers

             R2                  CIF             (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             OPEN ̲CIF ̲OP ̲PT
             SFCO ̲SEM

         c)  Local Data

             Refer source list.



4.2.2.6.49.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.49.1.



4.2.2.6.50   W̲a̲i̲t̲ ̲O̲p̲e̲n̲ ̲C̲I̲F̲



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

         Completion of an initiated open CIF is awaited. The
         result of the open request is returned in a completion
         code.




4.2.2.6.50.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  WAIT ̲OPEN ̲CIF (  )
                           (CC: OPEN ̲CC)

         b)  WAIT ̲OPEN ̲CIF (R0,R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R0                  CC
             R1-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             OPEN ̲CIF ̲OP ̲PT

         c)  Local Data

             Refer source list



4.2.2.6.50.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.50.1.



4.2.2.6.51   R̲e̲t̲u̲r̲n̲ ̲V̲i̲e̲w̲



4.2.2.6.51.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 referenced item will be returned to the queue from
         which it was received . If specified the CIF will be
         closed.




4.2.2.6.51.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  TEP ̲RETURN ̲VIEW (QEL: QEL ̲REFERENCE,
                            CLOSE: NO ̲YES)

         b)  TEP ̲RETURN ̲VIEW (R1,R3,R6)

             Register Convention

             Call Registers

                 R1              o/o QEL         (DEST)
                 R3              CLOSE           (DEST)
                 R6              LINK            (DEST)

         Return Registers

                 R0-R7                           (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             None

         c)  Local Data

             Refer source list



4.2.2.6.51.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.51.1.



4.2.2.6.52   S̲a̲v̲e̲ ̲V̲i̲e̲w̲



4.2.2.6.52.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 referenced CIF will be check-pointed by call to
         message monitor.





4.2.2.6.52.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  TEP ̲SAVE ̲VIEW (CIF: VIEW ̲REFERENCE)

         b)  TEP ̲SAVE ̲VIEW (R2,R6)

         Register Convention

         Call Registers

             R2                  CIF             (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             None

         c)  Local Data

             Refer source list



4.2.2.6.52.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.52.1.



4.2.2.6.53   C̲h̲a̲n̲g̲e̲ ̲P̲r̲o̲f̲i̲l̲e̲



4.2.2.6.53.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 access profile of the CIF is changed according
         to data read from the VDU.




4.2.2.6.53.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  TEP ̲CHANGE ̲PROFILE (CIF: VIEW ̲REFERENCE)

         b)  TEP ̲CHANGE ̲PROFILE (R2,R6)

         Register Convention

         Call Registers

             R2                  CIF             (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             ACCOUNT ̲AREA

         c)  Local Data

             Refer source list



4.2.2.6.53.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.53.1.



4.2.2.6.54   R̲e̲a̲d̲ ̲V̲i̲e̲w̲ ̲A̲t̲t̲r̲i̲b̲u̲t̲e̲s̲



4.2.2.6.54.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 view attributes of the referenced CIF is read by
         call to message monitor.




4.2.2.6.54.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  READ ̲VIEW ̲ATTR (CIF: VIEW ̲ATTRIBUTES)

         b)  READ ̲VIEW ̲ATTR (R2,R6)

         Register Convention

         Call Registers

             R2                  CIF             (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             CIF ̲ATTR (m)
             CUR ̲IT ̲REF (m)
             ACCOUNT ̲AREA (m)

         c)  Local Data

             Refer source list



4.2.2.6.54.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.54.1.



4.2.2.6.55   M̲a̲k̲e̲ ̲C̲I̲F̲ ̲P̲e̲r̲m̲a̲n̲e̲n̲t̲





4.2.2.6.55.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 status of a retrieved CIF is changed from temporary
         to permanent. The view attributes are read and status
         for each field is set to permanent.



4.2.2.6.55.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  MAKE ̲PERMANENT (CIF: VIEW ̲REFERENCE)

         b)  MAKE ̲PERMANENT (R2,R6)

         Register Convention

         Call Registers

             R2                  CIF             (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)


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

         a)  Data References

             Refer source list

         b)  External Data

             CIF ̲ATTR (m)

         c)  Local Data

             Refer source list


4.2.2.6.55.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.55.1.


4.2.2.6.56   C̲o̲l̲l̲e̲c̲t̲ ̲A̲t̲o̲m̲a̲l̲ ̲L̲o̲g̲ ̲D̲a̲t̲a̲



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

         Collects and converts data required for reporting of
         CTS deletion log. If classification is equal to Cosmic
         Top Secret or if special handling is equal to Atomal
         then the collected data will be written in the administration
         field of the referenced CIF.



4.2.2.6.56.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  COLLECT ̲CTS ̲LOG (CIF: VIEW ̲REFERENCE)

         b)  COLLECT ̲CTS ̲LOG (R2,R6)

         Register Convention

         Call Registers

             R2                  CIF             (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             CIF ̲ATTR (m)
             CUR ̲TIME
             ACCOUNT ̲AREA
             INIT ̲AREA

         c)  Local Data

             Refer source list





4.2.2.6.56.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.56.1.



4.2.2.6.57   R̲i̲n̲g̲ ̲t̲h̲e̲ ̲B̲e̲l̲l̲



4.2.2.6.57.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 purpose of this procedure is to ring the bells
         on the VDU. If the format handler call fails then an
         error completion is returned.



4.2.2.6.57.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  RING ̲BELL (  ) (CC: ERROR ̲OK)

         b)  RING ̲BELL (R7,R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R7                  CC
             R0-R6                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             HEADER ̲IFCB

         c)  Local Data

             Refer source list





4.2.2.6.57.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.57.1.



4.2.2.6.58   C̲h̲a̲n̲g̲e̲ ̲V̲D̲U̲ ̲F̲i̲e̲l̲d̲ ̲A̲t̲t̲r̲i̲b̲u̲t̲e̲s̲



4.2.2.6.58.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 attributes of the referenced field is changed in
         accordance with call parameter.



4.2.2.6.58.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  INV ̲FIELD (ATTR: FIELD ̲ATTRIBUTES,
                       FIELD: FIELD ̲NUMBER,
                          CC: ERROR ̲OK)

         b)  INV ̲FIELD (R2,R4,R7,R6)

         Register Convention

         Call Registers

             R2                  ATTR            (DEST)
             R4                  FIELD           (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R7                  CC
             R0-R6                               (DEST)



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

         a)  Data References

             Refer source list



         b)  External Data

             CR ̲FIELD ̲DESC (m)
             HEADER ̲IFCB

         c)  Local Data

             Refer source list



4.2.2.6.58.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.58.1



4.2.2.6.59   P̲e̲r̲f̲o̲r̲m̲ ̲I̲n̲v̲e̲r̲t̲ ̲B̲e̲l̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲



4.2.2.6.59.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 procedure analyzes the operation received from
         MVCO and performs the corresponding action. The procedure
         can be abnormally terminated by a split failure.



4.2.2.6.59.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  RE ̲IN ̲BELL (OPERATION: COROUTINE ̲OPERATION):ERROR
             ̲OK

         b)  RE ̲IN ̲BELL (R5,R6): ERROR ̲OK

         Register Convention

         Call Registers

             R5                  o/o OPERATION   (DEST)
             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)





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

         a)  Data References

             Refer source list

         b)  External Data

             None

         c)  Local Data

             Refer source list



4.2.2.6.59.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.59.1.



4.2.2.6.60   E̲n̲a̲b̲l̲e̲ ̲F̲/̲C̲ ̲K̲e̲y̲s̲



4.2.2.6.60.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 VDU F/C keys are enabled by call to format handler.



4.2.2.6.60.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  ENABLE ̲KEYS (  )

         b)  ENABLE ̲KEYS (R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)





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

         a)  Data References

             Refer source list

         b)  External Data

             FORMAT ̲IFCB

         c)  Local Data

             Refer source list



4.2.2.6.60.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.60.1



4.2.2.6.61   C̲a̲l̲c̲u̲l̲a̲t̲e̲ ̲R̲e̲t̲r̲i̲e̲v̲a̲l̲ ̲D̲i̲s̲p̲l̲a̲y̲ ̲F̲o̲r̲m̲a̲t̲



4.2.2.6.61.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 attributes received from SAR is analyzed. The format
         in which the item shall be displayed is defined and
         the text to be displayed in the VDU header area is
         calculated. The result of the validation is returned
         in a completion code.



4.2.2.6.61.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  CALC ̲RETR ̲FORMAT (CIF: VIEW ̲REFERENCE,
                              ATTR: QEL ̲ATTRIBUTES)
                              (CC : EXIT ̲CC)

         b)  CALC ̲RETR ̲FORMAT (R0,R2,R4,R6)

         Register Convention

         Call Registers
             R2                  CIF             (KEPT)
             R4                  o/o ATTR        (KEPT)
             R6                  LINK            (DEST)



         Return Registers
             R0                  CC
             R1-R5                               (KEPT)
             R6-R7                               (DEST)



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

         a)  Data References

             Refer source list

         b)  External Data

             ACCOUNT ̲AREA (m)
             SEQ ̲REC (m)
             HD ̲TXT (m)

         c)  Local Data

             Refer source list



4.2.2.6.61.4 P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Refer 4.2.2.6.61.1



4.2.3    V̲D̲U̲ ̲D̲i̲a̲l̲o̲g̲u̲e̲ ̲S̲u̲b̲p̲a̲c̲k̲a̲g̲e̲ ̲(̲V̲D̲I̲A̲)̲

         This subpackage handles:

         -   output of data to VDU
         -   input of data from VDU
         -   validation of input data

         The task is to transform data from the internal format
         to the format presented to the VDU user and vice versa.

         This subpackage is common for SUP, VUP and MSA.

         For details refer CPS/SDS/039



4.2.4    R̲e̲t̲r̲i̲e̲v̲e̲ ̲S̲u̲b̲p̲a̲c̲k̲a̲g̲e̲

         The M̲essage A̲ssistance R̲et̲rieve Subpackage (MART) is
         responsible for reception and treatment of retrieve
         answers from SAR.



4.2.4.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 subpackage contains the following functions:

         -   Initialization
         -   MAVCO command processing
         -   Retrieval processing
         -   Error handling.

         Figure 4.2.4.1-1 presents the functional breakdown.



















































                     FIGURE 4.2.4.1-1
              MART FUNCTIONAL SPECIFICATION


4.2.4.1.1    I̲n̲i̲t̲i̲a̲l̲i̲z̲a̲t̲i̲o̲n̲ ̲(̲1̲.̲0̲)̲

         a)  Initialization Operations (1.1)

             Performs initialization of local coroutine operations.
             The operations are included in the pool of shared
             operations.



4.2.4.1.2    M̲A̲V̲C̲O̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲P̲r̲o̲c̲e̲s̲s̲i̲n̲g̲ ̲(̲2̲.̲0̲)̲

         a)  Start MART (2.1)

             This command received from MAVCO starts the retrieve
             coroutine. An init receive first queue element
             is issued.

         b)  Stop MART (2.2)

             The retrieve coroutine is stopped by MAVCO. A previously
             initiated system call is cancelled.



4.2.4.1.3    R̲e̲t̲r̲i̲e̲v̲a̲l̲ ̲P̲r̲o̲c̲e̲s̲s̲i̲n̲g̲ ̲(̲3̲.̲0̲)̲

         a)  Analyze Input (3.1)

             The QEL attributes received from SAR are analyzed.

         b)  Send Notification (3.2)

             Signals the result of a retrieval to MAFCO

         c)  Send Online Retrieved Items (3.3)

             Sends an online retrieved item to MAFCO

         d)  Send Offline Retrieved Items (3.4)

             Sends an offline retrieved item to the response
             queue.





4.2.4.1.4    E̲r̲r̲o̲r̲ ̲H̲a̲n̲d̲l̲i̲n̲g̲ ̲(̲4̲.̲0̲)̲

         a)  Inform SSC (4.1)

             Reports to SSC that an unexpected queue element
             has been received.

         b)  Inform MAFCO (4.2)

             Signals a queue error notification to MAFCO.



4.2.4.2  S̲o̲f̲t̲w̲a̲r̲e̲ ̲S̲t̲r̲u̲c̲t̲u̲r̲e̲

         The retrieve subpackage consists of one coroutine containing
         the following module and procedures:

         M̲o̲d̲u̲l̲e̲s̲

         RETR ̲MAIN

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

         None

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

         -   PERFORM ̲CANCEL
         -   PERFORM ̲RETRIEVAL
         -   OFFLINE ̲HANDLING
         -   VALIDATION ̲RETR ̲MSG
         -   CHECK ̲ATTRIBUTES
         -   RETR ̲SIGNAL
         -   RETURN ̲ACKNOWLEDGE



4.2.4.3  D̲a̲t̲a̲ ̲F̲l̲o̲w̲ ̲a̲n̲d̲ ̲C̲o̲n̲t̲r̲o̲l̲ ̲L̲o̲g̲i̲c̲ ̲w̲i̲t̲h̲i̲n̲ ̲M̲A̲R̲T̲



4.2.4.3.1    D̲a̲t̲a̲ ̲F̲l̲o̲w̲

         The HIPO diagrams overleaf show the dataflow through
         MART



4.2.4.3.2    C̲o̲n̲t̲r̲o̲l̲ ̲L̲o̲g̲i̲c̲

         The call structure within MART is shown on figure 4.2.4.3-4
         identifying all calls between modules and module components.



















































                     FIGURE 4.2.4.3-1
               ONLINE/OFFLINE NOTOFICATION



















































                     FIGURE 4.2.4.3-2
                     ONLINE RETRIEVAL



















































                     FIGURE 4.2.4.3-3
                    OFFLINE RETRIEVAL



















































                     FIGURE 4.2.4.3-4
                  MODULE CALL STRUCTURE


4.2.4.4  M̲A̲R̲T̲ ̲M̲o̲d̲u̲l̲e̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲



4.2.4.4.1    M̲A̲R̲T̲ ̲M̲a̲i̲n̲



4.2.4.4.1.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 main purpose of this module is to receive input
         from the retrieve queue and to analyze the received
         QEL attributes. The result of the analysis is signalled
         to MAFCO in case of online retrieval. In case of offline
         retrieval the item received will be sent to the response
         queue. The module may be started or stopped by MVCO.



4.2.4.4.1.2 I̲n̲t̲e̲r̲f̲a̲c̲e̲ ̲D̲e̲f̲i̲n̲i̲t̲i̲o̲n̲

         Call Specification

         a)  RETR ̲MAIN (  )

         b)  RETR ̲MAIN (R6)

         Register Convention

         Call Registers

             R6                  LINK            (DEST)

         Return Registers

             R0-R7                               (DEST)



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



4.2.4.4.1.3.1 P̲E̲R̲F̲O̲R̲M̲ ̲C̲A̲N̲C̲E̲L̲

         The previously initiated system call is cancelled.
         If the cancel is not succeeded the received QEL is
         dismantled. Operation is returned to pool.




4.2.4.4.1.3.2 P̲E̲R̲F̲O̲R̲M̲ ̲R̲E̲T̲R̲I̲E̲V̲A̲L̲

         Objects received in the retrieve queue are analyzed.

         The following actions are taken:

         -   unknown QEL ̲types are sent to SSC and MAFCO is
             informed
         -   online/offline notifications are signalled to MAFCO

         For online retrieval it is checked if a new user is
         signed on. If so, the retrieved item is treated as
         offline retrieval.

         Online retrieval results are signalled to MAFCO. Offline
         retrieved items are sent to the response queue.



4.2.4.4.1.3.3 O̲F̲F̲L̲I̲N̲E̲ ̲H̲A̲N̲D̲L̲I̲N̲G̲

         The procedure sends a retrieved item to the response
         queue. Operation is returned to pool.



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

         a)  Data References

             Refer source list

         b)  External Data

             SVCO ̲SEM
             SFCO ̲SEM
             SFCO ̲WAIT ̲STATE
             SVUP ̲SEND ̲PARAMS (m)

         c)  Local Data

             Refer source list



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

         Refer 4.2.4.4.1.1.





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

         None



4.2.5    M̲e̲s̲s̲a̲g̲e̲ ̲A̲s̲s̲i̲s̲t̲a̲n̲c̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲ ̲S̲u̲b̲p̲a̲c̲k̲a̲g̲e̲



4.2.5.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 MAPR subpackage contains all validation and conversion
         procedures needed to validate, store and display the
         data in the users formats.

         During output of data to the formats the display procedures
         are used to convert data from internal representation
         to strings which can be displayed on the VDU.

         During input syntax and semantic procedures are used
         to validate the contents of the field which are read
         from the VDU. If an error is detected, an error will
         be generated and the field containing the error will
         be inverted, else the field will be converted to internal
         representation and stored in a CIF or a memory record.

         The action performed is selected by interpreting the
         Format Control Program which contains a reference (case
         label) of the procedure, which is able to validate
         or display the specific field.





4.2.5.1.1    D̲i̲s̲p̲l̲a̲y̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲

         The display procedures are a set of procedures, which
         are able to convert data in internal representation
         to displayable string. Data in internal representation
         can be numbers (byte, interger or long) or ASCII strings,
         while external representation is IOC records. E.g.
         a long of time type can be converted to an ASCII string.



4.2.5.1.2    S̲y̲n̲t̲a̲x̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲

         The syntax procedures are a set of procedures which
         are able to validate and convert data from external
         format to internal representation. I.e. a SCD is validated
         against the SCD table and stored as an ASCII string,
         and a PLA is validated against the PLA table and stored
         as a PLA-ref (integer) and as an ASCII string.



4.2.5.1.3    S̲e̲m̲a̲n̲t̲i̲c̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲

         The semantic procedures are a set of procedures which
         are able to validate the context between different
         fields in format. E.g. it is in message header validated
         that info precedence is not higher than action precedence.



4.2.5.2  S̲o̲f̲t̲w̲a̲r̲e̲ ̲S̲t̲r̲u̲c̲t̲u̲r̲e̲

         The structure of the three kinds of user procedures
         are alike as they all are built as big cases, switching
         to the wanted action. If needed a new procedure easily
         can be added by adding a new case label and coding
         a new procedure with the call convensions for the module.
         This procedure can now be activated from the Format
         Control Program simply by using its reference (case
         label) while reading or writing on the VDU.



4.2.5.3  D̲a̲t̲a̲ ̲F̲l̲o̲w̲

         The user procedures have no data of their own because
         they get a pointer to the memory where it can fetch
         data and where to put them when they are converted.



         If, however, the procedures need a dataarea for calculation,
         they can use the memory management for allocating working
         space, though it is important that the memory used
         is released before exit.



4.2.5.4  M̲A̲P̲R̲ ̲M̲o̲d̲u̲l̲e̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲



4.2.5.4.1    M̲S̲A̲ ̲S̲Y̲N̲T̲A̲X̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲



4.2.5.4.1.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 function of this module is to contain a validation
         procedure for each possible field of the user formats.
         The function of each procedure will be shown in a schematic
         form. This scheme (ref. 4.2.5.4.1.4) will describe
         the main functions of a procedure. If further details
         are necessary please refer to the source list.



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

         All syntax procedures have the same interface, thus
         they will be described as one.

         SYNTAX ̲PROC (R6)

         Register conventions:

         R0: Syntax procedure reference (case label)
         R1: Pointer to field bundle
         R4: Pointer to memory record 1 (ACCOUNT ̲AREA)
         R5: Pointer to memory record 3 (SEMAN ̲VAL)
         R7: P ̲STACK % INTEGER pointing to stack of type WORK
             containing: 
             BUF,
             WRK1,
             PROC ̲NO: Working location for subaction
             R0:      Result value OK/NOT ̲OK
             R1-R6:   Call registers.

         The subaction should return directly to caller of VUP
         ̲SYNTAX by use of the stacked link (r6). The record
         WORK should be unstacked prior to return.





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

         Procedure S̲E̲A̲R̲C̲H̲ ̲T̲E̲R̲M̲ ̲S̲C̲D̲

         (R0  C  K   SCD: CHARS 1 AND 2
          R1  C      SCD: CHAR 3
                 R   SCD CHAR 3 AND SPACE
          R3     R   RESULT: OK OR ERROR CODE
          R6) C      LINK

         A trailing space is added to the 3 char SCD. The SCD
         is searched in the terminal profile for the terminal
         (found via init area in M.O).

         Procedure D̲E̲C̲I̲S̲I̲O̲N̲

         (R0  C      LOCATION OF DECISION CODE TABLE
          R1  C      % FIELD BUNDLE
          R5  C      % M.3 (VUP ̲SEMAN ̲RECORD)
          R7  C      P ̲STACK ̲INTEGER - WORK RECORD
          R6) C      DUMMY LINK

         Searches the first char in input from field bundle
         field 1 in the in-code table addressed by R0:

         CHAR FOUND - DECISION CODE = ACCOUNT ̲AREA.PRIM ̲DEL
         CHAR NOT COUND - ERROR CODE= M ̲INVALID

         Procedure returns directly to caller of MSA ̲SYNTAX.

         Subactions should look as follows:

         PROCEDURE ...
              LABEL TABLE
                 BEGIN
                     LOCATION (TABLE) = R0
                     DECISION (R0, R1, R5, R7, R6)
                     TABLE
                     (CHAR) (DECISION ̲CODE)
                       ...        ...
                        0                       END OF TABLE
                 END



         Procedure C̲A̲L̲L̲ ̲T̲M̲P̲

         (VAL ̲REF:   INTEGER   VALIDATION PROC REC - USED FOR
                               FATAL ERROR REPORTING
          TABLE ̲ID:  TABLE ̲ID ̲TYPE
          FUNCTION:  TMP ̲FUNCTION
          MASK1:     BITMASK
          MASK2:     BITMASK
          R0  C  K   TMP ̲PARAM.ENTRY
          R1  C  K   TMP ̲PARAM.BUFFER1
          R2  C  K   TMP ̲PARAM.COUNT
          R3  C  K   TMP ̲PARAM.BUFFER2
          R4  C  K   % TMP ̲PARAM
          R5  C  K   TMP ̲PARAM.BUFFER2 ̲LENGTH
          R6) C      LINK

         Performs a TMP call using the call parameters in constant
         parameter record and in registers. The register R4
         should point to a TMP param record allocated for the
         TMP call.

         Procedure M̲A̲N̲D̲A̲T̲O̲R̲Y̲

         (R0  -  K
          R1  C  K   %FIELD BUNDLE
          R2  -  D   UNDEFINED AT RETURN
          R3  -  D   UNDEFINED AT RETURN
          R4  -  K
          R5  -  K
          R7  C  K   P ̲STACK ̲INTEGER - SYNTAX WORK STACK
          R6) C  -   LINK

         Checks that the first field in bundle in non-blank.
         If field is blank, the procedure issues a validation
         error and returns directly to caller of MSA ̲SYNTAX.
         Field is not blank, the procedure returns to LINK.

         A field is considered blank if:

         -    It is without IOC header and first char is space
         -    It is with IOC header and IOC count is = 0

         Procedure V̲A̲L̲ ̲E̲R̲R̲O̲R̲

         (R2  C  K   FIELD NO IN BUNDLE (1, 2, ...)
          R3  C  K   ERROR CODE
          R7  C  K   =P ̲STACK ̲INTEGER, must point to main stack
                     record stacked by MSA ̲SYNTAX main entry
                     i.e. record in stack of type WORK
          R6) C      LINK



         Calls UPDATE ̲ERROR ̲LIST using information from field
         bundle, found from address in stack (WORK.REG 1). Updates
         stacked result code (WORK.REG 0).



4.2.5.4.1.4 S̲o̲f̲t̲w̲a̲r̲e̲ ̲D̲e̲s̲i̲g̲n̲

              VAL ̲CLASS

         FILE:       SYNTAX ̲VAL2.S
         PROCEDURE:  CLASS
         VALIDATION: Classification, 2 chars without IOC
         STORAGE 0:  bin value 2 bytes
         STORAGE 1:  -
         MSA ̲SEMAN.UC.CLASS bin values
         MASS ̲TABLES:TAB ̲CLASS ̲SHORT
         TMP:    -
         COMMENTS:   -

              VAL ̲SPH

         FILE:       SYNTAX ̲VAL2.S
         PROCEDURE:  SPH
         VALIDATION: Special Handling bundle max. 2 fields without
                     IOC
         STORAGE 0:  bitmask, national name 6 bytes
         STORAGE 1:  number of sphs 2 bytes
         MSA ̲SEMAN.UC.SPH bitmask
         MASS ̲TABLES:-
         TMP:    SPECIAL ̲HANDLING ̲TABLE
         COMMENTS:   -

              VAL ̲MHI ̲DECISION

         FILE:       SYNTAX ̲VAL2.S
         PROCEDURE:  MHI ̲DECISION
         VALIDATION: Message Handling decision "Y" or " "
         STORAGE 0:  -
         STORAGE 1:  -
         MSA ̲SEMAN -
         MASS ̲TABLES -
         TMP:    -
         COMMENTS:   -



              VAL ̲PREC ̲ACTION

         FILE    SYNTAX ̲VAL2.S
         PROCEDURE   PREC ̲ACTION
         VALIDATION  Action precedence - mandatory 2 chars.
                     without IOC
         STORAGE 0   bin value 2 bytes
         STORAGE 1   -
         MSA ̲SEMAN.UC.ACTION ̲PREC bin value
         MASS ̲TABLES TAB ̲PREC ̲SHORT
         TMP     -
         COMMENTS    -

              VAL ̲PREC ̲INFO

         FILE    SYNTAX ̲VAL2.S
         PROCEDURE   PREC ̲INFO
         VALIDATION  Info precedence - optional 2 chars without
                     IOC
         STORAGE 0   bin value 2 bytes
         STORAGE 1   -
         MSA ̲SEMAN.INFO ̲PRECEDENCE bin value
         MASS ̲TABLES TAB ̲PREC ̲SHORT
         TMP     -
         COMMENTS    -

              VAL ̲SCDS

         FILE    SYNTAX ̲VAL2.S
         PROCEDURE   SCDS
         VALIDATION  SCD - optional bundle max. 16 fields without
                     IOC
         STORAGE 0   non blank SCDs 4 characters
         STORAGE 1   -
         MSA ̲SEMAN
         MASS ̲TABLES -
         TMP     SCD ̲TABLE
         COMMENTS    -

              VAL ̲ORIG ̲SCD

         FILE    SYNTAX ̲VAL2.S
         PROCEDURE   ORIG ̲SCD
         VALIDATION  Originator SCD 1 field 3 chars. without
                     IOC
         STORAGE 0   SCD 4 chars.
         STORAGE 1   -
         MSA ̲SEMAN.UC.ORG ̲SCD SCD 4 chars.
         MASS ̲TABLES -
         TMP     TERMINAL ̲TABLE
         COMMENTS    -



                 VAL ̲MANDAT ̲FIXED

         FILE        SYNTAX ̲VAL2.S
         PROCEDURE   MANDAT ̲FIXED
         VALIDATION  Checks that the field is not blank - without
                     IOC
         STORAGE 0   field
         STORAGE 1   -
         MSA ̲SEMAN   -
         MASS ̲TABLES -
         TMP         -
         COMMENTS    -

                 VAL ̲MANDAT ̲VAR

         FILE        SYNTAX ̲VAL2.S
         PROCEDURE   MANDAT ̲VAR
         VALIDATION  Checks that the field is not blank - without
                     IOC
         STORAGE 0   field
         STORAGE 1   -
         MSA ̲SEMAN   -
         MASS ̲TABLES -
         TMP         -
         COMMENTS    -

                 VAL ̲SIC

         FILE        SYNTAX ̲VAL.S
         PROCEDURE   SIC
         VALIDATION  SIC - 1 field 3 chars. without IOC
         STORAGE 0   field without IOC
         STORAGE 1   field with IOC
         MSA ̲SEMAN
         MASS ̲TABLES -
         TMP         -
         COMMENTS

                 VAL ̲TEXT ̲LINE

         FILE        SYNTAX ̲VAL2.S
         PROCEDURE   TEXT ̲LINE
         VALIDATION  1 field with IOC
         STORAGE 0   field with IOC
         STORAGE 1   -
         MSA ̲SEMAN.EMTY ̲LINE ̲COUNT
         MASS ̲TABLES -
         TMP         -
         COMMENTS    If a field is empty nothing is stored,
                     is an non empty field is met the empty
                     lines are stored



                 VAL ̲MSG ̲DEC

         FILE        SYNTAX ̲VAL.S
         PROCEDURE   MSG ̲DEC
         VALIDATION  1 field without IOC S, D or space
         STORAGE 0   -
         STORAGE 1   -
         MSA ̲SEMAN.UC.PRIM ̲DEC
         MASS ̲TABLES -
         TMP         -
         COMMENTS    -

                 VAL ̲RETR ̲DEC

         FILE        SYNTAX ̲VAL.S
         PROCEDURE   RETR ̲DEC
         VALIDATION  A, B, C, D, or E
         STORAGE 0   Decision text without IOC
         STORAGE 1   -
         MSA ̲SEMAN.UC.PRIM ̲DEC
         MASS ̲TABLES 
         TMP         -
         COMMENTS    

                 VAL ̲READ ̲DEC

         FILE        SYNTAX ̲VAL.S
         PROCEDURE   READ ̲DEC
         VALIDATION  A, B or E
         STORAGE 0   -
         STORAGE 1   -
         MSA ̲SEMAN.UC.PRIM ̲DEC
         MASS ̲TABLES -
         TMP         -
         COMMENTS    -

                 VAL ̲ASCII ̲INTEGER

         FILE        SYNTAX ̲VAL.S
         PROCEDURE   ASCII INTEGER
         VALIDATION  Field contains anly digits or spaces converts
                     from ascii to integer
         STORAGE 0   integer value 2 bytes
         STORAGE 1   -
         MSA ̲SEMAN   -
         MASS ̲TABLES -
         TMP         -
         COMMENTS    



                 VAL ̲TIME ̲STAMP

         FILE        SYNTAX ̲VAL.S
         PROCEDURE   TIME ̲STAMP
         VALIDATION  The procedure CONVERT ̲TIME converts and
                     validates
         STORAGE 0   Time type (long) 4 bytes
         STORAGE 1   -
         MSA ̲SEMAN   -
         MASS ̲TABLES -
         TMP         -
         COMMENTS    -

                 VAL ̲TERMINAL ̲SCD

         FILE        SYNTAX ̲VAL.S
         PROCEDURE   TERMINAL ̲SCD
         VALIDATION  Gets logical terminal number from init
                     ̲area and looks up the SCD at TMP 
         STORAGE 0   SCD + trailing space 4 bytes
         STORAGE 1   -
         MSA ̲SEMAN ̲REC -
         MASS ̲TABLES -
         TMP         TERMINAL ̲TABLE
         COMMENTS    

                 VAL ̲MSA ̲DECISION

         FILE        SYNTAX ̲VAL.S
         PROCEDURE   MSA ̲DECISION
         VALIDATION  1 field without IOC "Y" or "N" as first
                     char
         STORAGE 0   -
         STORAGE 1   -
         MSA ̲SEMAN.UC.PRIM ̲DEC
         MASS ̲TABLES -
         TMP         -
         COMMENTS    -

                 VAL ̲MAN ASCII ̲INTEGER

         FILE        SYNTAX ̲VAL.S
         PROCEDURE   MAN ̲ASCII ̲INTEGER
         VALIDATION  1 field without IOC - mandatory
         STORAGE 0   integer value 2 bytes
         STORAGE 1   -
         MSA ̲SEMAN
         MASS ̲TABLES -
         TMP         -
         COMMENTS    Field contains only digits or spaces. Converts
                     from ASCII to integer



                 VAL ̲MAN ̲TIME ̲STAMP

         FILE        SYNTAX ̲VAL.S
         PROCEDURE   MAN ̲TIME ̲STAMP
         VALIDATION  1 field without IOC - mandatory
         STORAGE 0   time type (long) 4 bytes
         STORAGE 1   -
         MSA ̲SEMAN   -
         MASS ̲TABLES -
         TMP         -
         COMMENTS    The procedure CONVERT ̲TIME converts and
                     validates

                 VAL ̲FROM ̲PLA

         FILE        PLA ̲SYNTAX.S
         PROCEDURE   FROM ̲PLA
         VALIDATION  1 field without IOC
         STORAGE 0   PLA with IOC
         STORAGE 1   PLA ref.
         MSA ̲SEMAN   -
         MASS ̲TABLES -
         TMP         LOCAL ̲PLA ̲TABLE
         COMMENTS    -

                 VAL ̲PLA ̲GRP

         FILE        PLA ̲SYNTAX.S
         PROCEDURE   PLA ̲GRP
         VALIDATION  bundle of max 6 fields without IOC
         STORAGE 0   PLA's or AIG's with IOC
         STORAGE 1   PLA refs. 0 for blank field
         MSA ̲SEMAN.SING ̲PLA ̲COUNT
         MASS ̲TABLES -
         TMP         PLA ̲REF ̲TABLE, LOCAL ̲PLA ̲TABLE
                     PLA ̲TABLE, AIG ̲TABLE
         COMMENTS    Each field may contain any of the following:

                     AIG ref.  "AIG" followed by 4 digits
                     AG ref.   "AG" followed by 4 chars.
                     X PLA     "X /" followed by any string
                     ZEN PLA   "ZEN /" followed by any string
                     Full PLA  any other string
                     PLA ref.  4 digits





                 VAL ̲EXEMPT

         FILE        PLA ̲SYNTAX.S
         PROCEDURE   PLA ̲GRP
         VALIDATION  bundle with max 6 fields without IOC
         STORAGE 0   PLA's or AIG's with IOC
         STORAGE 1   PLA refs. 0 for blank field
         MSA ̲SEMAN.EXEMPT ̲COUNT
         MASS ̲TABLES -
         TMP         PLA ̲REF ̲TABLE, LOCAL ̲PLA ̲TABLE
                     PLA ̲TABLE, AIG ̲TABLE
         COMMENTS    Each field may contain any of the following:

                     AIG ref.  "AIG" followed by 4 digits
                     AG ref.   "AG" followed by 4 chars.
                     X PLA     "X /" followed by any string
                     ZEN PLA   "ZEN /" followed by any string
                     Full PLA  any other string

                 VAL ̲OPT ̲LOC ̲PLA

         FILE        PLA ̲SYNTAX.S
         PROCEDURE   OPT ̲LOC ̲PLAD
         VALIDATION  1 field without IOC 2 bytes
         STORAGE 0   PLA ref. 2 bytes
         STORAGE 1   -
         MSA ̲SEMAN   -
         MASS ̲TABLES -
         TMP         LOCAL ̲PLA ̲TABLE
         COMMENTS    -

                 VAL ̲OPT ̲GLO ̲PLA

         FILE        PLA ̲SYNTAX.S
         PROCEDURE   OPT ̲GLO ̲PLAD
         VALIDATION  1 field without IOC 54 chars.
         STORAGE 0   PLA ref. 2 bytes
         STORAGE 1   -
         MSA ̲SEMAN   -
         MASS ̲TABLES -
         TMP         PLA ̲TABLE
         COMMENTS    -




4.2.5.4.2    S̲E̲M̲A̲N̲ ̲V̲A̲L̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲



4.2.5.4.2.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 function of this module is to contain validation
         procedures for each format, in order to validate the
         context of the format.

         In insertion of a new subaction requires the following:

         1.  The code is inserted as a subprocedure (or declared
             as an import module, if it is contained in a separate
             module).

         2.  Case table and switch table at the end of the module
             are extended with the extra entry.



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

         All semantic procedures has the same interface, thus
         they will be described as one.

         SEMAN ̲PROC (R0, R4, R5, R6);

         Register conventions:

         R0(call):   Format number (from last 3 digits in format
                     name)
         R0(return): Result OK, NOT ̲OK
         R4:         Memory record M.1 (i.e. ACCOUNT ̲AREA)
         R5:         Memory record M.3 (i.e. SEMAN ̲REC)



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

         None





4.2.5.4.3    D̲I̲S̲P̲L̲A̲Y̲ ̲F̲I̲E̲L̲D̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲ ̲



4.2.5.4.3.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 function of this module is to contain display procedures
         for each possible field in the user formats.



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

         All display procedures have the same interfaces, thus
         they will be described as one.

         DISPLAY ̲PROC (R0, R1, R3, R4, R5, R6);

         Register conventions:

         R0: Display procedure reference
         R1: VDU field type
         R3: Size of data
         R4: Pointer to input data
         R5: Pointer to output data



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

         None.



4.3      M̲E̲M̲O̲R̲Y̲ ̲L̲A̲Y̲O̲U̲T̲

         As a basis for calculation the following figures are
         used:

         M̲V̲C̲O̲ ̲C̲O̲R̲O̲U̲T̲I̲N̲E̲

         Approx 1.5 KW code

         M̲A̲F̲C̲O̲ ̲C̲O̲R̲O̲U̲T̲I̲N̲E̲

         Approx 13.5 KW code

         V̲D̲I̲A̲ ̲C̲O̲R̲O̲U̲T̲I̲N̲E̲

         Approx 12.5 KW code



         M̲A̲R̲T̲ ̲C̲O̲R̲O̲U̲T̲I̲N̲E̲

         Approx 0.5 KW code

         T̲O̲T̲A̲L̲

         Approx 28.0 KW code Data ̲Area is estimated to 6 K.
         Words, thus the Memory turns to be approx 34 KW.