home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / cicsussr / ecker-utf8.asm < prev    next >
Assembly Source File  |  2011-08-12  |  275KB  |  3,297 lines

  1. * IF YOU DON'T SEE RUSSIAN TEXT SET YOUR BROWSER'S ENCODING TO UTF-8
  2. *    
  3.          PRINT ON,GEN                                                   00010001
  4. *********************************************************************** 00020000
  5. * * *              C O U R I E R   -   C I C S  (KAMA)            * * * 00030006
  6. *********************************************************************** 00040000
  7. *     ╨ƒPO╨ôPAMMA COURIER - CICS PEA╨¢╨ÿ╨ù╨úET ╨ƒPOTOKO╨¢ ╨ƒEPE╨öA╨º╨ÿ ╨ñA╨Ö╨¢OB     * 00050006
  8. *     KERMIT.  COURIER - CICS PA╨æOTAET C ╨ƒCEB╨öOTEPM╨ÿHA╨¢OM EC-8570.    * 00060006
  9. *     PEA╨¢╨ÿ╨ùOBAH TO╨¢╨¼KO ╨ú╨öA╨¢EHH╨½╨Ö BAP╨ÿAHT. H╨ÿ╨ûE ╨ƒP╨ÿBE╨öEH╨½ BO╨ùMO╨ûHOCT╨ÿ,* 00070000
  10. *     PEA╨¢╨ÿ╨ùOBAHH╨½E B BEPC╨ÿ╨ÿ 2.20 ╨ƒPO╨ôPAMM╨½ COURIER - CICS.           * 00080006
  11. *                                                                     * 00090000
  12. *      - ╨¢OKA╨¢╨¼H╨½╨Ö BAP╨ÿAHT PA╨æOT╨½.                                    * 00100000
  13. *      + ╨ú╨öA╨¢EHH╨½╨Ö BAP╨ÿAHT.                                           * 00110000
  14. *      + ╨ƒEPE╨öA╨ºA TEKCTOB╨½X ╨ñA╨Ö╨¢OB.                                   * 00120000
  15. *      + ╨ƒEPE╨öA╨ºA ╨öBO╨ÿ╨ºH╨½X ╨ñA╨Ö╨¢OB.                                    * 00130000
  16. *      - ╨ôP╨ú╨ƒ╨ƒOBA╨» ╨ƒEPE╨öA╨ºA ╨ñA╨Ö╨¢OB.                                   * 00140000
  17. *      - TA╨ÖMA╨úT.                                                     * 00150000
  18. *      + ╨ƒPE╨ñ╨ÿKCA╨ª╨ÿ╨» CTAP╨¿E╨ôO ╨æ╨ÿTA.                                   * 00160000
  19. *      - C╨ûAT╨ÿE ╨ƒOBTOP╨»╨«╨⌐E╨ÖC╨» ╨ÿH╨ñOPMA╨ª╨ÿ╨ÿ.                             * 00170000
  20. *      - A╨¢╨¼TEPHAT╨ÿBH╨½E KOHTPO╨¢╨¼H╨½E C╨úMM╨½.                            * 00180000
  21. *      + A╨¢╨¼TEPHAT╨ÿBH╨½E TA╨æ╨¢╨ÿ╨ª╨½ ╨ƒEPEKO╨ö╨ÿPOBK╨ÿ.                        * 00190000
  22. *      - ╨ƒPEP╨½BAH╨ÿE ╨ƒEPE╨öA╨º╨ÿ.                                         * 00200004
  23. *      - PA╨æOTA B PE╨û╨ÿME CEPBEPA.                                     * 00210000
  24. *      - ╨ú╨ƒPAB╨¢EH╨ÿE ╨¢OKA╨¢╨¼H╨½M╨ÿ ╨ñA╨Ö╨¢AM╨ÿ.                               * 00220000
  25. *      - O╨æPA╨æOTKA ATP╨ÿ╨æ╨úTOB ╨ñA╨Ö╨¢OB.                                  * 00230000
  26. *      - MAKPOKOMAH╨ö╨½.                                                * 00240000
  27. *      - KOMAH╨öH╨½E ╨ñA╨Ö╨¢╨½.                                             * 00250000
  28. *                                                                     * 00260000
  29. *     COURIER - CICS (BEPC╨ÿ╨» 2.20)                                    * 00270001
  30. *     PA╨ùPA╨æOTAH B ME╨û╨ö╨úHAPO╨öHOM ╨ªEHTPE HA╨ú╨ºHO╨Ö ╨ÿ TEXH╨ÿ╨ºECKO╨Ö         * 00280000
  31. *     ╨ÿH╨ñOPMA╨ª╨ÿ╨ÿ.                                                     * 00290000
  32. *                                                                     * 00300000
  33. *                             MOCKBA, 1988 ╨ôO╨ö.                       * 00310000
  34. *********************************************************************** 00320000
  35.          TITLE 'COURIER - CICS'                                         00330000
  36. *********************************************************************** 00340000
  37.          MACRO                                                          00350000
  38. &N       WRMESS &TEXT                                                   00360000
  39.          LCLA  &NUM                                                     00370000
  40. &NUM     SETA  K'&TEXT                                                  00380000
  41. &NUM     SETA  &NUM-2                                                   00390000
  42. &N       MVI   PACKAGE,&NUM                                             00400000
  43.          MVC   PACKAGE+1(&NUM),=C&TEXT                                  00410000
  44.          L     14,=A(WRITMS)                                            00420000
  45.          BALR  15,14                                                    00430000
  46.          MEND                                                           00440000
  47. *********************************************************************** 00450000
  48.          MACRO                                                          00460000
  49. &N       WRTEXT &ADR,&LN                                                00470000
  50. &N       MVI   PACKAGE,&LN                                              00480000
  51.          MVC   PACKAGE+1(&LN),&ADR                                      00490000
  52.          L     14,=A(WRITMS)                                            00500000
  53.          BALR  15,14                                                    00510000
  54.          MEND                                                           00520000
  55. *********************************************************************** 00530000
  56.          MACRO                                                          00540000
  57. &N       BINCVRT ®,&AREA,&DBLWRK                                     00550000
  58. &N       CVD   ®,&DBLWRK                                             00560000
  59.          MVC   &AREA.(6),=X'402020202120'                               00570000
  60.          ED    &AREA.(6),&DBLWRK+5                                      00580000
  61.          MEND                                                           00590000
  62. *********************************************************************** 00600000
  63.          MACRO                                                          00610000
  64. &LABEL   CALL  &PROG                                                    00620000
  65. &LABEL   L     14,=A(&PROG)                                             00630000
  66.          BALR  15,14                                                    00640000
  67.          MEND                                                           00650000
  68. *********************************************************************** 00660000
  69.          MACRO                                                          00670000
  70. &LABEL   SAVE                                                           00680000
  71.          DS    0H                                                       00690000
  72. &LABEL   ST    15,$ADDR$SV+4                                            00700000
  73.          L     15,$ADDR$SV                                              00710000
  74.          LA    15,36(15)              9 PE╨ô╨ÿCTPOB (9 * 4 = 36)          00720000
  75.          ST    15,$ADDR$SV                                              00730000
  76.          ST    BASE,0(15)                                               00740000
  77.          STM   0,6,8(15)                                                00750000
  78.          MVC   4(4,15),$ADDR$SV+4                                       00760000
  79.          MEND                                                           00770000
  80. *********************************************************************** 00780000
  81.          MACRO                                                          00790000
  82. &LABEL   RETURN                                                         00800000
  83. &LABEL   L     15,$ADDR$SV                                              00810000
  84.          LM    0,6,8(15)                                                00820000
  85.          MVC   $ADDR$SV(8),0(15)                                        00830000
  86.          SH    15,=H'36'              9 PE╨ô╨ÿCTPOB                       00840000
  87.          L     BASE,$ADDR$SV                                            00850000
  88.          ST    15,$ADDR$SV                                              00860000
  89.          L     15,$ADDR$SV+4                                            00870000
  90.          BR    15                                                       00880000
  91.          MEND                                                           00890000
  92. *********************************************************************** 00900000
  93.             MACRO                                                       00910000
  94. &NAME       BRTORC &RC0,&RC2,&RC4,&RC6,&RC8,&RC10,&RC12,&REST=          00920000
  95.             AIF   (N'&SYSLIST NE 0).L010                                00930000
  96. .L000       MNOTE 8,'HEBEPHA╨» ╨ùA╨ƒ╨ÿC╨¼ MAKPOKOMAH╨ö╨½'                      00940000
  97.             MEXIT                                                       00950000
  98. .L010       AIF   (K'&REST EQ 0).L000                                   00960000
  99.             AIF   (N'&SYSLIST NE 1).L020                                00970000
  100.             LTR   14,14                                                 00980000
  101.             BNZ   &REST                                                 00990000
  102.             B     &RC0                                                  01000000
  103.             MEXIT                                                       01010000
  104. .L020       AIF   (N'&SYSLIST NE 2).L030                                01020000
  105.             CH    14,=H'2'                                              01030000
  106.             AGO   .L100                                                 01040000
  107. .L030       AIF   (N'&SYSLIST NE 3).L040                                01050000
  108.             CH    14,=H'4'                                              01060000
  109.             AGO   .L100                                                 01070000
  110. .L040       AIF   (N'&SYSLIST NE 4).L050                                01080000
  111.             CH    14,=H'6'                                              01090000
  112.             AGO   .L100                                                 01100000
  113. .L050       AIF   (N'&SYSLIST NE 5).L060                                01110000
  114.             CH    14,=H'8'                                              01120000
  115.             AGO   .L100                                                 01130000
  116. .L060       AIF   (N'&SYSLIST NE 6).L070                                01140000
  117.             CH    14,=H'10'                                             01150000
  118.             AGO   .L100                                                 01160000
  119. .L070       AIF   (N'&SYSLIST NE 7).L000                                01170000
  120.             CH    14,=H'12'                                             01180000
  121. .L100       BH    &REST                                                 01190000
  122.             SLL   R14,1                  ╨úMHO╨û╨ÿM HA 2                   01200000
  123.             LA    15,BR&SYSNDX                                          01210000
  124.             AR    15,14                                                 01220000
  125.             BR    15                                                    01230000
  126. BR&SYSNDX   B     &RC0                                                  01240000
  127.             B     &RC2                                                  01250000
  128.             AIF   (N'&SYSLIST EQ 2).L200                                01260000
  129.             B     &RC4                                                  01270000
  130.             AIF   (N'&SYSLIST EQ 3).L200                                01280000
  131.             B     &RC6                                                  01290000
  132.             AIF   (N'&SYSLIST EQ 4).L200                                01300000
  133.             B     &RC8                                                  01310000
  134.             AIF   (N'&SYSLIST EQ 5).L200                                01320000
  135.             B     &RC10                                                 01330000
  136.             AIF   (N'&SYSLIST EQ 6).L200                                01340000
  137.             B     &RC12                                                 01350000
  138. .L200       MEXIT                                                       01360000
  139.             MEND                                                        01370000
  140. *********************************************************************** 01380000
  141. *====================================================================== 01390000
  142.          PRINT ON,NOGEN                                                 01400000
  143. *====================================================================== 01410000
  144. *              KO╨ö╨½ BO╨ùBPATA                                            01420000
  145. E$OK     EQU   X'00'               O╨¿╨ÿ╨æOK HET                           01430000
  146. E$CHECK  EQU   X'01'               O╨¿╨ÿ╨æKA B KOHTPO╨¢╨¼HO╨Ö C╨úMME           01440000
  147. E$LENG   EQU   X'02'               HEBEPHA╨» ╨ö╨¢╨ÿHA ╨ƒAKETA                01450000
  148. E$LENA   EQU   X'02'               HEBEPH╨½╨Ö ATP╨ÿ╨æ╨úT ╨ö╨¢╨ÿH╨½               01460000
  149. E$INIT   EQU   X'03'               HEBEPH╨½E ╨ƒAPAMETP╨½ INIT              01470000
  150. E$NUM    EQU   X'04'               HEBEPH╨½╨Ö HOMEP ╨ƒAKETA                01480000
  151. E$TYPE   EQU   X'05'             * HEKOPPEKTH╨½╨Ö T╨ÿ╨ƒ ╨ƒAKETA              01490005
  152. E$ERR    EQU   X'06'             * O╨æ╨¢OMA╨¢C╨» ╨ƒAPTHEP                    01500005
  153. E$STATE  EQU   X'07'             * HEPAC╨ƒO╨ùHAHHOE COCTO╨»H╨ÿE SEND        01510005
  154. E$PIO    EQU   X'08'             * PERMANENT I/O ERROR                  01520005
  155. E$BAD    EQU   X'09'               ╨úTEP╨»H ╨ƒAKET OT ╨ƒAPTHEPA             01530000
  156. E$NAK    EQU   X'0A'               NAK OT ╨ƒAPTHEPA                      01540000
  157. E$B37    EQU   X'0B'             * SYSTEM CODE B37                      01550005
  158. E$HSTLEN EQU   X'0C'             * MO╨» ╨ƒPO╨ôPAMMHA╨» O╨¿╨ÿ╨æKA               01560005
  159. E$SPACE  EQU   X'0D'             * HET MECTA B ╨ñA╨Ö╨¢E                    01570005
  160. E$CICS   EQU   X'0E'             * HE╨ƒOH╨»THA╨» O╨¿╨ÿ╨æKA CICS               01580005
  161. E$TRUNC  EQU   X'0F'               ╨ƒEPE╨öAHHA╨» TEKCT. CTPOKA ╨æ╨½╨¢A ╨úCE╨º.  01590000
  162. E$HSTNUM EQU   X'10'             * MO╨» ╨ƒPO╨ôPAMMHA╨» O╨¿╨ÿ╨æKA               01600005
  163. E$HSTTYP EQU   X'11'             * MO╨» ╨ƒPO╨ôPAMMHA╨» O╨¿╨ÿ╨æKA               01610005
  164. E$LIMIT  EQU   X'12'             * MO╨» ╨ƒPO╨ôPAMMHA╨» O╨¿╨ÿ╨æKA               01620005
  165. *              T╨ÿ╨ƒ╨½ ╨ƒAKETOB                                             01630000
  166. AA       EQU   X'41'               'A'    B KO╨ÿ-7                       01640000
  167. AB       EQU   X'42'               'B'                                  01650000
  168. AD       EQU   X'44'               'D'                                  01660000
  169. AE       EQU   X'45'               'E'                                  01670000
  170. AF       EQU   X'46'               'F'                                  01680000
  171. AN       EQU   X'4E'               'N'                                  01690000
  172. AS       EQU   X'53'               'S'                                  01700000
  173. AY       EQU   X'59'               'Y'                                  01710000
  174. AZ       EQU   X'5A'               'Z'                                  01720000
  175. *====================================================================== 01730000
  176. R0       EQU   0                                                        01740000
  177. R1       EQU   1                                                        01750000
  178. R2       EQU   2                                                        01760000
  179. R3       EQU   3                                                        01770000
  180. R4       EQU   4                                                        01780000
  181. PPTCBAR  EQU   4              ╨æA╨ùA                                      01790000
  182. R5       EQU   5                                                        01800000
  183. DCTCBAR  EQU   5              ╨æA╨ùA                                      01810000
  184. R6       EQU   6                                                        01820000
  185. TDOABAR  EQU   7              ╨æA╨ùA O╨æ╨¢. B╨½BO╨öA DESTINATION              01830000
  186. TDIABAR  EQU   8              ╨æA╨ùA O╨æ╨¢. BBO╨öA DESTINATION               01840000
  187. TIOABAR  EQU   9              ╨æA╨ùA O╨æ╨¢. BBO╨öA/B╨½BO╨öA TEPM╨ÿHA╨¢A          01850000
  188. TCTTEAR  EQU   10             ╨æA╨ùA TA╨æ╨¢. ╨ú╨ƒPAB╨¢EH╨ÿ╨» TEPM╨ÿHA╨¢AM╨ÿ         01860000
  189. BASE     EQU   11             ╨æA╨ùA ╨ƒPO╨ôPAMM╨½                            01870000
  190. *TCACBAR EQU   12                                                       01880000
  191. CSACBAR  EQU   13                                                       01890000
  192. R14      EQU   14             ! MO╨ûHO ╨ÿC╨ƒO╨¢╨¼╨ùOBAT╨¼ KAK PA╨æO╨º╨ÿE, HO ╨ƒP╨ÿ  01900000
  193. R15      EQU   15             ! B╨½╨ùOBE ╨ƒO╨ö╨ƒPO╨ôPAMM OH╨ÿ ╨ƒOPT╨»TC╨»         01910000
  194. *                                                                       01920000
  195. *        COPY  DFHTCTTE       TA╨æ╨¢╨ÿ╨ªA ╨ú╨ƒPAB╨¢EH╨ÿ╨» TEPM╨ÿHA╨¢AM╨ÿ      (TCT) 01930000
  196. *        COPY  DFHTIOA        O╨æ╨¢ACT╨¼ BBO╨öA/B╨½BO╨öA TEPM╨ÿHA╨¢A     (TIOA) 01940000
  197. *        COPY  DFHDCTDS       TA╨æ╨¢╨ÿ╨ªA ╨ú╨ƒPAB╨¢EH╨ÿ╨» ╨ƒ╨úHKTAM╨ÿ HA╨ùH.   (DCT) 01950000
  198. *        COPY  DFHTDIA        O╨æ╨¢ACT╨¼ BBO╨öA TPAH╨ù╨ÿTH╨½X ╨öAHH╨½X    (TDIA) 01960000
  199. *UTDIA   EQU   *                                                        01970000
  200. *        COPY  DFHTDOA        O╨æ╨¢ACT╨¼ B╨½BO╨öA TPAH╨ù╨ÿTH╨½X ╨öAHH╨½X   (TDOA) 01980000
  201. *        COPY  DFHPPTDS                                                 01990000
  202. *        COPY  DFHCSADS       O╨æ╨⌐A╨» C╨ÿCTEMHA╨» O╨æ╨¢ACT╨¼             (CSA) 02000000
  203. *        COPY  DFHTCADS       O╨æ╨¢ACT╨¼ ╨ú╨ƒPAB╨¢EH╨ÿ╨» ╨ùA╨öA╨ºE╨Ö          (TCA) 02010000
  204. *                                                                       02020000
  205.          PRINT OFF                                                      02030000
  206.          COPY  DFHTCTTE       TA╨æ╨¢╨ÿ╨ªA ╨ú╨ƒPAB╨¢EH╨ÿ╨» TEPM╨ÿHA╨¢AM╨ÿ      (TCT) 02040000
  207.          COPY  DFHTIOA        O╨æ╨¢ACT╨¼ BBO╨öA/B╨½BO╨öA TEPM╨ÿHA╨¢A     (TIOA) 02050000
  208.          COPY  DFHDCTDS       TA╨æ╨¢╨ÿ╨ªA ╨ú╨ƒPAB╨¢EH╨ÿ╨» ╨ƒ╨úHKTAM╨ÿ HA╨ùH.   (DCT) 02060000
  209.          COPY  DFHTDIA        O╨æ╨¢ACT╨¼ BBO╨öA TPAH╨ù╨ÿTH╨½X ╨öAHH╨½X    (TDIA) 02070000
  210. UTDIA    EQU   *                                                        02080000
  211.          COPY  DFHTDOA        O╨æ╨¢ACT╨¼ B╨½BO╨öA TPAH╨ù╨ÿTH╨½X ╨öAHH╨½X   (TDOA) 02090000
  212.          COPY  DFHPPTDS                                                 02100000
  213.          COPY  DFHCSADS       O╨æ╨⌐A╨» C╨ÿCTEMHA╨» O╨æ╨¢ACT╨¼             (CSA) 02110000
  214.          COPY  DFHTCADS       O╨æ╨¢ACT╨¼ ╨ú╨ƒPAB╨¢EH╨ÿ╨» ╨ùA╨öA╨ºE╨Ö          (TCA) 02120000
  215.          PRINT ON,NOGEN                                                 02130000
  216. *====================================================================== 02140000
  217. *              TWA COURIER - CICS                                       02150000
  218. *====================================================================== 02160000
  219. COURTWA  EQU   *                                                        02170000
  220. *::::::::::::::::: ONLY COURIER ::::::::::::::::::::::::::::::::::::::: 02180000
  221. PROMPT   DS    CL24                "COURIER"                       INIT 02190000
  222. TRTNAME  DS    CL8                 ╨ÿM╨» TEK╨ú╨⌐E╨Ö TA╨æ╨¢╨ÿ╨ª╨½             INIT 02200000
  223. NEWTRT   DS    CL8                 ╨ÿM╨» HOBO╨Ö TA╨æ╨¢╨ÿ╨ª╨½                    02210000
  224. *                                                                       02220000
  225. PARSELST DS    3F                  C╨ƒ╨ÿCOK A╨öPECOB ╨ƒAPAMETPOB            02230000
  226. *                                                                       02240000
  227. *        SAVE  AREA                                                     02250000
  228. *                                                                       02260000
  229. $ADDR$SV DS    2F                  B 1 C╨¢OBE  =A($SAVE$RG-36)      INIT 02270000
  230.          ORG   *-36                                                     02280000
  231. $ADDR$AS EQU   *                                                        02290000
  232.          ORG                                                            02300000
  233. $SAVE$RG DS    90F               10 ╨úPOBHE╨Ö B╨¢O╨ûEH╨ÿ╨» ╨ƒPO╨ôPAMM ╨ƒO 9 REG  02310000
  234. *:::::::::::::::: COURIER+COURRS :::::::::::::::::::::::::::::::::::::: 02320000
  235. FILEDEST DS    F                   ╨ÿM╨» ╨ƒ╨úHKTA HA╨ùH. SEND/RECEIVE        02330000
  236. DBGDEST  DS    F                   ╨ÿM╨» ╨ƒ╨úHKTA HA╨ùH. DEBUG          INIT 02340000
  237. PACKDEST DS    F                   ╨ÿM╨» TEPM╨ÿHA╨¢A                   INIT 02350000
  238. *                                                                       02360000
  239. PACKET   DS    H                   26 <= ? <= 94                   INIT 02370000
  240. DELAY    DS    H                   1 <= ? <= 32 767                INIT 02380000
  241. RETRY    DS    H                   ╨º╨ÿC╨¢O ╨ƒOBTOPOB ╨ƒAKETA           INIT 02390000
  242. QUOTE    DS    X                   ╨ƒPE╨ñ╨ÿKC CTRL                    INIT 02400000
  243. PREF     DS    X                   ╨ƒPE╨ñ╨ÿKC 8 ╨æ╨ÿTA                  INIT 02410000
  244. REPEAT   DS    X                   ╨ƒPE╨ñ╨ÿKC ╨ƒOBTOP╨»╨«╨⌐╨ÿXC╨» ╨öAHH╨½X    INIT 02420000
  245. R#EOT    DS    X                   EOL - RECEIVE                   INIT 02430000
  246. S#EOT    DS    X                   EOL - SEND                      INIT 02440000
  247. R#SOH    DS    X                   SOH - RECEIVE                   INIT 02450000
  248. S#SOH    DS    X                   SOH - SEND                      INIT 02460000
  249. #ERROR   DS    X                   HOMEP O╨¿╨ÿ╨æK╨ÿ                    INIT 02470004
  250. RETCODE  DS    X                   HOMEP O╨¿╨ÿ╨æK╨ÿ ╨ƒPE╨ö. KOMAH╨ö╨½      INIT 02480000
  251. ERRTBL#A DS    F                   A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½ ERROR-COO╨æ╨⌐EH╨ÿ╨Ö        02490000
  252. *                                                                       02500000
  253. PGMSTAT  DS    X                CTAT╨úC ╨ƒ.H. ╨ñA╨Ö╨¢A               INIT    02510004
  254. *        1...  ....                SEND / RECEIVE                       02520000
  255. *        .1..  ....                TEXT / BINARY                        02530000
  256. *        ..1.  ....                PREFIX  ON / OFF                     02540000
  257. *        ...1  ....                REPEAT  ON / OFF                     02550000
  258. *        ....  1...                BIGPACK ON / OFF                     02560000
  259. *        ....  .XXX                RESERVED                             02570000
  260. FILSTAT  DS    X                CTAT╨úC ╨ƒ.H. ╨ñA╨Ö╨¢A               INIT    02580000
  261. *        01..  ....                EXTRA                                02590000
  262. *        11..  ....                INTRA                                02600000
  263. *        ..1.  ....                INPUT / OUTPUT                       02610000
  264. *        ...1  ....                APPEND ON / OFF                      02620000
  265. *        ....  10..                F                                    02630000
  266. *        ....  01..                V                                    02640000
  267. *        ....  11..                U                                    02650000
  268. *        ....  ..X.                RESERVED                             02660000
  269. *        ....  ...1                OPEN / CLOSE                         02670000
  270. DBGSTAT  DS    X                CTAT╨úC ╨ƒ.H. ╨ñA╨Ö╨¢A OT╨¢A╨öK╨ÿ       INIT    02680000
  271. *        01..  ....                EXTRA                                02690000
  272. *        11..  ....                INTRA                                02700000
  273. *        ..1.  ....                INPUT / OUTPUT                       02710000
  274. *        ...1  ....                APPEND ON / OFF                      02720000
  275. *        ....  10..                F                                    02730000
  276. *        ....  01..                V                                    02740000
  277. *        ....  11..                U                                    02750000
  278. *        ....  ..X.                RESERVED                             02760000
  279. *        ....  ...1                OPEN / CLOSE                         02770000
  280. PRMSTAT  DS    X                CTAT╨úC ╨ƒAPAMETPOB ╨ƒEPE╨öA╨º╨ÿ      INIT    02780000
  281. *        00..  ....                CHECK 1                              02790000
  282. *        01..  ....                      2                              02800000
  283. *        11..  ....                      3                              02810000
  284. *        ..XX  ....                RESERVED                             02820000
  285. *        ....  00..                DEBUG OFF                            02830000
  286. *        ....  01..                      PROTOCOL                       02840000
  287. *        ....  10..                      STATISTIC                      02850000
  288. *        ....  11..                      ON                             02860000
  289. *        ....  ..XX                RESERVED                             02870000
  290. *        SET TABLE                                                      02880000
  291. A#TRT#SI DS    F                   A╨öPEC TA╨æ╨¢. ╨ƒEPEKO╨ö. ╨ÿ╨ù ╨¢╨ÿH╨ÿ╨ÿ   INIT 02890000
  292. A#TRT#SO DS    F                   A╨öPEC TA╨æ╨¢. ╨ƒEPEKO╨ö. B ╨¢╨ÿH╨ÿ╨«    INIT 02900000
  293. A#TRT#EA DS    F                   A╨öPEC TR TABL ╨ƒP╨ÿ ╨ºTEH╨ÿ╨ÿ ╨ö╨ÿCKA  INIT 02910000
  294. A#TRT#AE DS    F                   A╨öPEC TRT ╨ƒP╨ÿ ╨ùA╨ƒ╨ÿC╨ÿ HA ╨ö╨ÿCK    INIT 02920000
  295. *                                                                       02930000
  296. F#REC    DS    H                   MAKC╨ÿMA╨¢╨¼HA╨» ╨ö╨¢╨ÿHA ╨ùA╨ƒ╨ÿC╨ÿ FILE       02940000
  297. D#REC    DS    H                   MAKC╨ÿMA╨¢╨¼HA╨» ╨ö╨¢╨ÿHA ╨ùA╨ƒ╨ÿC╨ÿ DEBUG      02950000
  298. I#REC    DS    H                   MAKC╨ÿMA╨¢╨¼HA╨» ╨ö╨¢╨ÿHA ╨ùA╨ƒ╨ÿC╨ÿ FILE INTRA 02960000
  299. *::::::::::::::::: ONLY COURRS :::::::::::::::::::::::::::::::::::::::: 02970000
  300. *                                                                       02980000
  301. *        PSW   -    PACKET STATUS WORD                                  02990000
  302. *                                                                       03000000
  303. $PSW$CUR EQU   *                                                        03010000
  304. $N$CUR   DS    H                   NUMBER                               03020000
  305. $S$CUR   DS    X                   SEND                                 03030000
  306. $R$CUR   DS    X                   RECEIVE                              03040000
  307. $PSW$OLD EQU   *                                                        03050000
  308. $N$OLD   DS    H                   NUMBER                               03060000
  309. $S$OLD   DS    X                   SEND                                 03070000
  310. $R$OLD   DS    X                   RECEIVE                              03080000
  311. *                                                                       03090000
  312. $FMA     DS    F                   FILE   MEMORY ADDRESS                03100000
  313. $DMA     DS    F                   DEBUG  MEMORY ADDRESS                03110000
  314. $SMA     DS    F                   SEND    PACKET MEMORY ADDRESS        03120000
  315. $RMA     DS    F                   RECEIVE PACKET MEMORY ADDRESS        03130000
  316. *                                                                       03140000
  317. $STATE   DS    X                   ╨ƒPE╨ö╨½╨ö╨ú╨⌐EE COCTO╨»H╨ÿE ╨ƒPOTOKO╨¢A       03150000
  318. $DAT$A   DS    F                                                        03160000
  319. $TIME    DS    CL6                 CTAPTOBOE BPEM╨»: HHMMSS              03170000
  320. $SDAT$L  DS    H                   ╨ö╨¢╨ÿHA ╨ƒOC╨½╨¢AEMO╨ôO ╨ƒAKETA             03180000
  321. $RDAT$L  DS    H                   ╨ö╨¢╨ÿHA ╨ƒP╨ÿH╨»TO╨ôO ╨ƒAKETA               03190000
  322. $RETRY   DS    H                   ╨º╨ÿC╨¢O ╨ƒOBTOPEH╨ÿ╨Ö ╨ƒEPE╨öA╨º╨ÿ            03200000
  323. $WR$L    DS    H                   ╨ö╨¢╨ÿHA ╨ùA╨ƒ╨ÿC╨ÿ SEND/RECEIVE            03210000
  324. $PUT$L   DS    H                   TEK╨ú╨⌐A╨» ╨ƒO╨ù╨ÿ╨ª╨ÿ╨» B ╨ùA╨ƒ╨ÿC╨ÿ             03220000
  325. $GET$L   DS    H                   TEK╨ú╨⌐A╨» ╨ƒO╨ù╨ÿ╨ª╨ÿ╨» B ╨ùA╨ƒ╨ÿC╨ÿ             03230000
  326. IND#CRLF DS    X                   TEK╨ú╨⌐A╨» ╨ƒO╨ù╨ÿ╨ª╨ÿ╨» B ╨ùA╨ƒ╨ÿC╨ÿ             03240000
  327. *                                                                       03250000
  328. *                                                                       03260000
  329.          DS    0D                                                       03270000
  330. DBLWRK   DS    D                   PA╨æO╨ºA╨» O╨æ╨¢ACT╨¼                      03280000
  331. *                                                                       03290000
  332. *---------------------                                                  03300000
  333. PACKAGE  DS    CL130               ╨ƒAKET / COO╨æ╨⌐EH╨ÿ╨»                    03310000
  334. *---------------------                                                  03320000
  335. TWALEN   EQU   *-PROMPT                                                 03330000
  336. *********************************************************************** 03340000
  337. COURIER  CSECT                                                          03350000
  338.          BALR  BASE,0              ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨æA╨ùOB╨½╨Ö PE╨ô╨ÿCTP            03360000
  339.          USING *,BASE              ╨úCTAHOB╨ÿT╨¼ A╨öPECA╨ª╨ÿ╨« B ╨ƒPO╨ôPAMME     03370000
  340. *                                                                       03380000
  341.          L     TCTTEAR,TCAFCAAA    ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC TCTTE                03390000
  342.          MVC   TCASCSA,TCTTEDA     ╨ùA╨ƒ╨ÿCAT╨¼ A╨öPEC HA╨º. TIOA             03400000
  343.          DFHSC TYPE=FREEMAIN       OCBO╨æO╨ö╨ÿT╨¼ HA╨ºA╨¢╨¼H╨ú╨« TIOA            03410000
  344. *                                                                       03420000
  345.          XR    R3,R3                                   !                03430000
  346.          STC   R3,PROMPT                               !                03440000
  347.          LA    R2,PROMPT                               !                03450000
  348.          LA    R3,1                                    ! O╨º╨ÿCT╨ÿT╨¼       03460000
  349.          LA    R4,PROMPT+1                             !   TWA          03470000
  350.          LA    R5,TWALEN                               !                03480000
  351.          MVCL  R4,R2                                   !                03490000
  352. *                                                                       03500000
  353.          L     R1,TCAFCAAA              ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC TCTTE           03510000
  354.          MVC   PACKDEST(4),0(R1)                                        03520000
  355.          L     R6,=A(TOLAT)                                             03530000
  356.          TR    PACKDEST(4),0(R6)        PACKDEST                        03540000
  357. *                                                                       03550000
  358.          LA    R14,$ADDR$AS             ╨úCTAHOB╨ÿT╨¼ A╨öPECA╨ª╨ÿ╨« ╨ƒEPEXO╨öOB  03560000
  359.          ST    R14,$ADDR$SV             $ADDR$SV                        03570000
  360. *                                                                       03580000
  361.          L     R14,=A(ERRTAB)                                           03590000
  362.          ST    R14,ERRTBL#A             ERRTBL#A                        03600000
  363. **                                                                      03610000
  364.          L     PPTCBAR,CSAPPTBA    ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC HA╨ºA╨¢A PPT           03620000
  365. PRED02   CLC   PPTPI(8),=C'COURSTND' HA╨¿╨¢╨ÿ ╨ÿM╨» TA╨æ╨¢╨ÿ╨ª╨½ B PPT ?          03630000
  366.          BE    PRED05              EC╨¢╨ÿ COB╨ƒA╨¢╨ÿ, TO TRT HA╨Ö╨öEHA         03640000
  367.          CLI   PPTPI,X'FF'         ╨öO╨¿╨¢╨ÿ ╨öO KOH╨ªA PPT ?                 03650000
  368.          BE    PRED04              EC╨¢╨ÿ ╨öA, TO TA╨æ╨¢╨ÿ╨ª╨½ HET              03660000
  369.          L     R1,PPTNXTEN         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC C╨¢E╨ö. PPT            03670000
  370.          LR    PPTCBAR,R1          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC C╨¢E╨ö. PPT            03680000
  371.          B     PRED02              ╨ÿ ╨ÿCKAT╨¼ ╨öA╨¢╨¼╨¿E                      03690000
  372. PRED04   WRMESS 'STANDARD TRANSLATE TABLE -COURSTND- IS NOT DEFINED!'   03700000
  373.          B     THEEND                                                   03710000
  374. PRED05   EQU   *                                                        03720000
  375.          MVC   TCAPCPI(8),=C'COURSTND' ╨ùA╨ƒ╨ÿCAT╨¼ ╨ÿM╨» ╨ùA╨ôP╨ú╨ûAEMO╨Ö TRT     03730000
  376.          DFHPC TYPE=LOAD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ TA╨æ╨¢╨ÿ╨ª╨½                    03740000
  377.          L     R5,TCAPCLA          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC TA╨æ╨¢╨ÿ╨ª               03750000
  378.          ST    R5,A#TRT#SO         A╨öPEC TA╨æ╨¢. ╨ƒEPEKO╨ö. B ╨¢╨ÿH╨ÿ╨« (ATOE)  03760000
  379.          LA    R5,256(,R5)         ╨ƒO╨¢╨ú╨º╨ÿT╨¼ A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½               03770000
  380.          ST    R5,A#TRT#SI         A╨öPEC TA╨æ╨¢. ╨ƒEPEKO╨ö. ╨ÿ╨ù ╨¢╨ÿH╨ÿ╨ÿ (ETOA) 03780000
  381. **                                                                      03790000
  382.          CALL  INITIATE                                                 03800000
  383.          BRTORC COUR020,REST=COUR010                                    03810000
  384. COUR010  WRMESS 'STANDARD TRANSLATE TABLE -COURTRTS- IS NOT DEFINED!'   03820000
  385. COUR020  EQU   *                                                        03830000
  386. *                                                                       03840000
  387.          MVC   DBGDEST(4),=C'CSSL'      DBGDEST                         03850000
  388. *                                                                       03860000
  389. *              ╨ÿH╨ÿ╨ª╨ÿA╨¢╨ÿ╨ùA╨ª╨ÿ╨» ╨ùAKOH╨ºEHA                                  03870000
  390. *                                                                       03880000
  391.  WRMESS 'KERMIT PROTOCOL PROGRAM             FRANK DA KRUZ   NEW YORK ' 03890007
  392.  WRMESS 'COURIER-CICS  VERSION 2.20          ICSTI           MOSCOW   ' 03900007
  393. *********************************************************************** 03910000
  394. *        OCHOBHO╨Ö ╨ª╨ÿK╨¢ O╨æPA╨æOTK╨ÿ KOMAH╨ö                               * 03920000
  395. *********************************************************************** 03930000
  396. PROMPTS  XR    R14,R14                                                  03940000
  397.          IC    R14,PROMPT                                               03950000
  398.          EX    R14,PROMPTMV                                             03960000
  399.          CALL  WRITMS              B╨½BO╨ö PROMPT                         03970000
  400.          CALL  RDTRM               ╨º╨ÿTAT╨¼ C TEPM╨ÿHA╨¢A                   03980000
  401.          LM    R1,R3,PARSELST      ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPECA O╨ƒEPAH╨öOB           03990000
  402. *                                                                       04000000
  403.          CLI   0(R1),C' '          H╨ÿ╨ºE╨ôO HE BBE╨öEHO ?                  04010000
  404.          BNE   PRSET                                                    04020000
  405.  WRMESS 'KERMIT PROTOCOL PROGRAM             FRANK DA KRUZ   NEW YORK ' 04030006
  406.  WRMESS 'COURIER-CICS  VERSION 2.20          ICSTI           MOSCOW   ' 04040006
  407.          B     PROMPTS                                                  04050000
  408. *---------------------------------------------------------------------* 04060000
  409. PRSET    CLC   0(3,R1),=C'SET'       SET ?                              04070000
  410.          BNE   PRSTATUS              ╨úB╨½..                              04080000
  411.            CLI   0(R2),C' '          ECT╨¼ O╨ƒEPAH╨ö╨½ ?                    04090000
  412.            BE    PROMPTS             ╨úB╨½..                              04100000
  413.            CLI   0(R2),C'?'          ╨ùA╨ƒPO╨¿EH HELP ?                    04110000
  414.            BNE   PRSET01             ╨úB╨½..                              04120000
  415.            WRMESS 'APPEND, DEBUG,  DELAY, FILE,   PACKET,'              04130003
  416.            WRMESS 'PREFIX, PROMPT, QUOTE, RECORD, RETRY, TRT.'          04140002
  417.            B     PROMPTS                                                04150000
  418. PRSET01    CALL  SET                                                    04160000
  419.            BRTORC PROMPTS,REST=PRSET02      ╨ƒPOBEP╨ÿT╨¼ KO╨ö BO╨ùBPATA      04170000
  420. PRSET02    WRMESS 'ILLEGAL SET COMMAND.'                                04180000
  421.            B     PROMPTS                                                04190000
  422. *---------------------------------------------------------------------* 04200000
  423. PRSTATUS CLC   0(3,R1),=C'STA'       STATUS ?                           04210000
  424.          BNE   PRSHOW                ╨úB╨½..                              04220000
  425.            CLI   0(R2),C' '          ECT╨¼ O╨ƒEPAH╨ö╨½ ?                    04230000
  426.            BE    PRSTA01             ╨úB╨½..                              04240000
  427.            CLI   0(R2),C'?'          ╨ùA╨ƒPO╨¿EH HELP ?                    04250000
  428.            BNE   PRSTA03             ╨úB╨½..                              04260000
  429.            WRMESS 'CONFIRM WITH A CARRIAGE RETURN.'                     04270000
  430.            B     PROMPTS                                                04280000
  431. PRSTA01    EQU   *                                                      04290000
  432.            CALL  STATUS                                                 04300000
  433.            B     PROMPTS                                                04310000
  434. PRSTA03    WRMESS 'ILLEGAL STATUS COMMAND.'                             04320000
  435.            B     PROMPTS                                                04330000
  436. *---------------------------------------------------------------------* 04340000
  437. PRSHOW   CLC   0(3,R1),=C'SHO'       SHOW ?                             04350000
  438.          BNE   PRREC                                                    04360000
  439.            CLI   0(R2),C' '          ECT╨¼ O╨ƒEPAH╨ö╨½ ?                    04370000
  440.            BE    PROMPTS             ╨úB╨½..                              04380000
  441.            CLI   0(R2),C'?'          ╨ùA╨ƒPO╨¿EH HELP ?                    04390000
  442.            BNE   PRSHO01             ╨úB╨½..                              04400000
  443.            WRMESS 'PARM OR TRT OR DESTINATION.'                         04410000
  444.            B     PROMPTS                                                04420000
  445. PRSHO01    CALL  SHOW                                                   04430000
  446.            BRTORC PROMPTS,REST=PRSHO02                                  04440000
  447. PRSHO02    WRMESS 'ILLEGAL SHOW COMMAND.'                               04450000
  448.            B     PROMPTS                                                04460000
  449. *---------------------------------------------------------------------* 04470000
  450. PRREC    CLC   0(3,R1),=C'REC'       RECEIVE ?                          04480000
  451.          BNE   PRSEND                ╨úB╨½..                              04490000
  452.            NI    PGMSTAT,X'FF'-X'80' SET RECEIVE                        04500000
  453.            B     PRRS                                                   04510000
  454. PRSEND   CLC   0(3,R1),=C'SEN'       SEND ?                             04520000
  455.          BNE   PREXIT                ╨úB╨½..                              04530000
  456.            OI    PGMSTAT,X'80'       SET SEND                           04540000
  457. *                                                                       04550000
  458. PRRS       EQU   *                                                      04560000
  459.            CLI   0(R2),C'?'          HELP ?                             04570000
  460.            BNE   PRRS010             ╨úB╨½..                              04580000
  461.            WRMESS 'SPECIFY DESTINATION_NAME.'                           04590000
  462.            B     PROMPTS                                                04600000
  463. *                                                                       04610000
  464. PRRS010    CLI   0(R2),C' '          ECT╨¼ FILEDEST ?                    04620000
  465.            BNE   PRRS030             ╨öA                                 04630000
  466. PRRS020    WRMESS 'ENTER DESTINATION_NAME: '                            04640000
  467.            CALL  RDTRM               C╨º╨ÿTAT╨¼ OTBET ╨ƒO╨¢╨¼╨ùOBATE╨¢╨»         04650000
  468.            LM    R2,R3,PARSELST      ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPECA O╨ƒEPAH╨öOB         04660000
  469.            CLI   0(R2),C' '          ╨æ╨½╨¢O ╨ºTO-H╨ÿ╨æ╨ú╨ö╨¼ BBE╨öEHO ?          04670000
  470.            BE    PRRS020             EC╨¢╨ÿ HET, TO C╨º╨ÿT╨½BAT╨¼ CHOBA       04680000
  471. *                                                                       04690000
  472. PRRS030    EQU   *                                                      04700000
  473.            CLC   QUOTE(1),PREF       C╨ÿMBO╨¢╨½ ╨ƒPE╨ñ╨ÿKCA╨ª╨ÿ╨ÿ COB╨ƒA╨öA╨«T ?    04710000
  474.            BNE   PRRS035             HET                                04720000
  475.            WRMESS 'QUOTE = PREF. ILLEGAL.'                              04730000
  476.            B PROMPTS                                                    04740000
  477. PRRS035    EQU   *                                                      04750000
  478.            MVI   #ERROR,E$OK         C╨æPOC╨ÿT╨¼ ╨ÿH╨ö╨ÿKATOP O╨¿╨ÿ╨æK╨ÿ          04760000
  479.            MVC   FILEDEST(4),0(R2)   ╨ÿM╨» ╨ƒ╨úHKTA HA╨ùHA╨ºEH╨ÿ╨» -> TWA       04770000
  480.            LA    R1,=C'F'                                               04780000
  481.            CALL  TSTDEST             TEST FILE                          04790000
  482.            BRTORC PRRS040,REST=PRRS100                                  04800000
  483. PRRS040    EQU   *                                                      04810000
  484.            TM    FILSTAT,X'C0'       DEST INTRA ?                       04820000
  485.            BO    PRRS050             ╨öA                                 04830000
  486.            TM    FILSTAT,X'01'       FILE OPEN ?                        04840000
  487.            BO    PRRS041             ╨öA                                 04850000
  488.            WRMESS 'SORRY, BAT FILE IS CLOSE.'                           04860000
  489.            B     PROMPTS                                                04870000
  490. PRRS041    TM    PGMSTAT,X'80'       SEND ?                             04880000
  491.            BO    PRRS042             ╨öA                                 04890000
  492.            TM    FILSTAT,X'20'       FILE OUTPUT ?                      04900000
  493.            BZ    PRRS060             ╨öA                                 04910000
  494.            WRMESS 'SORRY, BAT FILE IS READ ONLY.'                       04920000
  495.            B     PROMPTS                                                04930000
  496. PRRS042    TM    FILSTAT,X'20'       FILE INPUT ?                       04940000
  497.            BO    PRRS060             ╨öA                                 04950000
  498.            WRMESS 'SORRY, BAT FILE IS WRITE ONLY.'                      04960000
  499.            B     PROMPTS                                                04970000
  500. *                                                                       04980000
  501. PRRS050    EQU   *                                                      04990000
  502.            TM    FILSTAT,X'10'       APPEND ON ?                        05000000
  503.            BO    PRRS060             ╨öA                                 05010000
  504.            TM    PGMSTAT,X'80'       SEND ?                             05020000
  505.            BO    PRRS060             ╨öA                                 05030000
  506.            MVC   TCATDDI(4),FILEDEST                                    05040000
  507.            DFHTD TYPE=PURGE                                             05050000
  508. *                                                                       05060000
  509. PRRS060    TM    PGMSTAT,X'0C'       DEBUG OFF ?                        05070000
  510.            BZ    PRRS080             ╨öA                                 05080000
  511.            LA    R1,=C'D'                                               05090000
  512.            CALL  TSTDEST                                                05100000
  513.            BRTORC PRRS070,REST=PRRS100                                  05110000
  514. *                                                                       05120000
  515. PRRS070    EQU   *                                                      05130000
  516.            TM    FILSTAT,X'01'       FILE OPEN ?                        05140000
  517.            BO    PRRS075             ╨öA                                 05150000
  518.            WRMESS 'SORRY, BAT DEBUG FILE IS CLOSE.'                     05160000
  519.            B     PROMPTS                                                05170000
  520. *                                                                       05180000
  521. PRRS075    TM    DBGSTAT,X'20'       FILE OUTPUT ?                      05190000
  522.            BZ    PRRS080             ╨öA                                 05200000
  523.            WRMESS 'SORRY, BAT DEBUG FILE IS READ ONLY.'                 05210000
  524.            B     PROMPTS                                                05220000
  525. *                                                                       05230000
  526. PRRS080    CALL  COURRS                                                 05240000
  527.            LR    R2,R14                                                 05250000
  528.            CALL  RDTRM                                                  05260000
  529.            LR    R14,R2                                                 05270000
  530.            BRTORC PRRS200,REST=PRRS300                                  05280000
  531. *                                                                       05290000
  532. PRRS100    WRMESS 'DESTINATION NAME IS NOT DEFINED OR BAD.'             05300000
  533.            MVI   #ERROR,E$OK                                            05310000
  534.            MVC   RETCODE(1),#ERROR                                      05320000
  535.            B     PROMPTS                                                05330000
  536. PRRS200    TM    PGMSTAT,X'80'       SEND ?                             05340000
  537.            BO    PRRS220             ╨öA                                 05350000
  538.            WRMESS 'RECEIVING COMPLETE.'                                 05360000
  539.            B     PRRS240                                                05370000
  540. PRRS220    WRMESS 'SENDING COMPLETE.'                                   05380000
  541. PRRS240    MVI   #ERROR,E$OK                                            05390000
  542.            MVC   RETCODE(1),#ERROR                                      05400000
  543.            B     PROMPTS                                                05410000
  544. PRRS300    TM    PGMSTAT,X'80'       SEND ?                             05420000
  545.            BO    PRRS320             ╨öA                                 05430000
  546.            WRMESS 'RECEIVING ERROR. TRY AGAIN.'                         05440000
  547.            B     PRRS340                                                05450000
  548. PRRS320    WRMESS 'SENDING ERROR. TRY AGAIN.'                           05460000
  549. PRRS340    MVC   RETCODE(1),#ERROR                                      05470000
  550.            B     PROMPTS                                                05480000
  551. *---------------------------------------------------------------------* 05490000
  552. PREXIT   CLI   0(R1),C'E'            EXIT ?                             05500000
  553.          BE    PREXIT01              ╨öA                                 05510000
  554.          CLI   0(R1),C'Q'            QUIT ?                             05520000
  555.          BNE   PRHELP                ╨úB╨½..                              05530000
  556. PREXIT01   CLI   0(R2),C' '          ECT╨¼ O╨ƒEPAH╨ö╨½ ?                    05540000
  557.            BE    THEEND              ╨úB╨½..                              05550000
  558.            CLI   0(R2),C'?'          ╨ùA╨ƒPO╨¿EH HELP ?                    05560000
  559.            BNE   PREXIT02            ╨úB╨½..                              05570000
  560.            WRMESS 'CONFIRM WITH A CARRIAGE RETURN.'                     05580000
  561.            B     PROMPTS                                                05590000
  562. PREXIT02   WRMESS 'ILLEGAL EXIT OR QUIT COMMAND.'                       05600000
  563.            B     PROMPTS                                                05610000
  564. THEEND     WRMESS 'COURIER COMPLETED.'                                  05620000
  565.            DFHPC TYPE=RETURN                                            05630000
  566. *---------------------------------------------------------------------* 05640000
  567. PRHELP   CLC   0(3,R1),=C'HEL'       HELP ?                             05650000
  568.          BNE   PRQWEST               ╨úB╨½..                              05660000
  569.            CLI   0(R2),C'?'          ╨ùA╨ƒPO╨¿EH HELP HELP ?               05670000
  570.            BE    PRHEL01             EC╨¢╨ÿ ╨öA, B╨½╨öAT╨¼ CONFIRM WITH...    05680000
  571.            WRMESS 'ENTER ? AT PROMPTS TO RECEIVE LIST OF COMMANDS.'     05690000
  572.            WRMESS 'ENTER ? AFTER COMMAND TO RECEIVE LIST OF OPERANDS.'  05700000
  573.            B     PROMPTS                                                05710000
  574. PRHEL01    WRMESS 'CONFIRM WITH A CARRIAGE RETURN.'                     05720000
  575.            B     PROMPTS                                                05730000
  576. *---------------------------------------------------------------------* 05740000
  577. PRQWEST  CLC   0(1,R1),=C'?'         HELP ?                             05750000
  578.          BNE   PRERROR               ╨úB╨½..                              05760000
  579.            WRMESS 'LEGAL COMMANDS ARE:'                                 05770000
  580.            WRMESS 'RECEIVE, SEND, HELP, QUIT,'                          05780000
  581.            WRMESS 'EXIT, SET, STATUS, SHOW, ?.'                         05790000
  582.            B     PROMPTS                                                05800000
  583. *---------------------------------------------------------------------* 05810000
  584. PRERROR  WRMESS 'ILLEGAL COMMAND. ENTER HELP ,PLEASE.'                  05820000
  585.          B     PROMPTS                                                  05830000
  586. *---------------------------------------------------------------------* 05840000
  587. PROMPTMV MVC   PACKAGE(0),PROMPT                                        05850000
  588. ERRTAB   DC    CL30'PROCESS OK!'                  ERR MSG #00           05860000
  589.          DC    CL30'BAD CHECKSUM'                 ERR MSG #01           05870000
  590.          DC    CL30'ILLEGAL PACKET LENGHT'        ERR MSG #02           05880000
  591.          DC    CL30'BAD INIT PARM'                ERR MSG #03           05890000
  592.          DC    CL30'BAD PACKET NUMBER'            ERR MSG #04           05900000
  593.          DC    CL30'ILLEGAL PACKET TYPE'          ERR MSG #05           05910000
  594.          DC    CL30'MICRO COMPUTER ABORTED'       ERR MSG #06           05920000
  595.          DC    CL30'SEND TYPE ILLEGAL.'           ERR MSG #07           05930000
  596.          DC    CL30'PERMANENT I/O ERROR'          ERR MSG #08           05940000
  597. *                                                                       05950000
  598.          DC    CL30'LOST A PACKET'                ERR MSG #09           05960000
  599.          DC    CL30'MICRO SENT A NAK'             ERR MSG #0A           05970000
  600.          DC    CL30'INTRA DESTINATION FULL'       ERR MSG #0B           05980000
  601.          DC    CL30'HOST PACKET ERROR. LENGHT'    ERR MSG #0C           05990000
  602.          DC    CL30'FILE IS FULL'                 ERR MSG #0D           06000000
  603.          DC    CL30'CICS FANTASTIC ERROR'         ERR MSG #0E           06010000
  604.          DC    CL30'LINE HAS BEEN TRUNCATED'      ERR MSG #0F           06020000
  605.          DC    CL30'HOST PACKET ERROR. NUMBER'    ERR MSG #10           06030000
  606.          DC    CL30'HOST PACKET ERROR. TYPE'      ERR MSG #11           06040000
  607.          DC    CL30'LIMIT ERROR.'                 ERR MSG #12           06050005
  608. TOLAT    DC    256AL1(*-TOLAT)                                          06060000
  609.          ORG   TOLAT+X'76'                                              06070000
  610.          DC    C'U B'                                                   06080000
  611.          ORG   TOLAT+X'80'                                              06090000
  612.          DC    C'CABCDEFGHID FG IJJKLMNOPQRKLM'                         06100000
  613.          DC    C'N PJ STUVWXYZ  TUVWXYZSESCWU BCDEFG '                  06110000
  614.          ORG   TOLAT+X'CB'                                              06120000
  615.          DC    C'IJ L'                                                  06130000
  616.          ORG   TOLAT+X'DC'                                              06140000
  617.          DC    C'PJ'                                                    06150000
  618.          ORG   TOLAT+X'EB'                                              06160000
  619.          DC    C'UV XY'                                                 06170000
  620.          ORG   TOLAT+X'FA'                                              06180000
  621.          DC    C'ZSESC'                                                 06190000
  622. *********************************************************************** 06200000
  623.          LTORG                                                          06210000
  624.          DROP  BASE                                                     06220000
  625. *********************************************************************** 06230000
  626. *        ╨ƒO╨ö╨ƒPO╨ôPAMMA INITIATE                                        * 06240000
  627. *********************************************************************** 06250000
  628. * RETURN CODE = 0  -  OK                                              * 06260000
  629. * RETURN CODE = 2  -  HE HA╨Ö╨öEH MO╨ö╨ú╨¢╨¼ COURTRTS B COURIER.LOADLIB     * 06270000
  630. *********************************************************************** 06280000
  631. INITIATE SAVE                                                           06290000
  632.          USING INITIATE,BASE                                            06300000
  633.          LR    BASE,R14                                                 06310000
  634. *                                                                       06320000
  635.          MVC   PROMPT+1(14),=C'COURIER-CICS> '                          06330006
  636.          LA    R1,14                                                    06340000
  637.          STC   R1,PROMPT                PROMPT                          06350000
  638.          MVC   PACKET(2),=H'94'         PACKET    = 94 BYTE             06360000
  639.          MVC   DELAY(2),=H'30'          DELAY     = 30 SEC              06370000
  640.          MVC   RETRY(2),=H'5'           RETRY     = 5                   06380000
  641.          MVC   I#REC(2),=H'4096'        I#REC     = 4K                  06390000
  642. *                                                                       06400000
  643.          MVI   QUOTE,X'23'              QUOTE     = # ASCII             06410000
  644.          MVI   PREF,X'26'               PREF      = & ASCII             06420000
  645.          MVI   REPEAT,X'7E'             REPEAT    = ╨º ASCII             06430000
  646.          MVI   R#SOH,X'02'              R#SOH     CTRL-B                06440000
  647.          MVI   R#EOT,X'04'              R#EOT     CTRL-D                06450000
  648.          MVI   S#SOH,X'02'              S#SOH     CTRL-B                06460000
  649.          MVI   S#EOT,X'04'              S#EOT     CTRL-D                06470000
  650. *                                                                       06480000
  651.          MVI   #ERROR,E$OK              #ERROR                          06490000
  652.          MVI   RETCODE,E$OK             RETCODE                         06500000
  653. *                                                                       06510000
  654.          OI    PGMSTAT,X'40'            SET FILE TEXT                   06520000
  655. *        NI    PGMSTAT,X'FF'-X'40'      SET FILE BINARY                 06530000
  656.          OI    PGMSTAT,X'20'            SET PREF ON                     06540000
  657. *        NI    PGMSTAT,X'FF'-X'20'      SET PREF OFF                    06550000
  658. *        OI    PGMSTAT,X'10'            SET REPEAT ON                   06560000
  659.          NI    PGMSTAT,X'FF'-X'10'      SET REPEAT OFF                  06570000
  660. *        OI    PGMSTAT,X'08'            SET BIGPACK ON                  06580000
  661.          NI    PGMSTAT,X'FF'-X'08'      SET BIGPACK OFF                 06590000
  662. *        OI    FILSTAT,X'10'            SET APPEND ON FILE              06600000
  663.          NI    FILSTAT,X'FF'-X'10'      SET APPEND OFF FILE             06610000
  664. *        OI    DBGSTAT,X'10'            SET APPEND ON DEBUG             06620000
  665.          NI    DBGSTAT,X'FF'-X'10'      SET APPEND OFF DEBUG            06630000
  666. *                                                                       06640000
  667.          NI    PRMSTAT,X'FF'-X'C0'      SET CHECK 1                     06650000
  668. *        OI    PRMSTAT,X'40'            SET CHECK 2                     06660000
  669. *        NI    PRMSTAT,X'FF'-X'80'      SET CHECK 2                     06670000
  670. *        OI    PRMSTAT,X'C0'            SET CHECK 3                     06680000
  671. *                                                                       06690000
  672.          MVC   NEWTRT(8),=C'COURTRTS'                                   06700000
  673.          LA    R3,=C'S'                                                 06710000
  674.          CALL  SETTRT                                                   06720000
  675.          BRTORC INIT020,REST=INIT010                                    06730000
  676. INIT010  LA    R14,2                    RC = 2                          06740000
  677.          B     INITRET                                                  06750000
  678. *                                                                       06760000
  679. INIT020  XR    R14,R14                  RC = 0                          06770000
  680. INITRET  RETURN                                                         06780000
  681. *********************************************************************** 06790000
  682.          LTORG                                                          06800000
  683.          DROP  BASE                                                     06810000
  684. *********************************************************************** 06820000
  685. *              ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ºTEH╨ÿ╨» KOMAH╨ö                             * 06830000
  686. *********************************************************************** 06840000
  687. * RETURN CODE = 0  -  OK                                              * 06850000
  688. *********************************************************************** 06860000
  689. RDTRM    SAVE                                                           06870000
  690.          USING RDTRM,BASE                                               06880000
  691.          LR    BASE,R14                                                 06890000
  692.          DFHTC TYPE=GET                                                 06900000
  693.          L     TIOABAR,TCTTEDA     ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC TIOA                 06910000
  694.          LH    R1,TIOATDL          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú TIOA                 06920000
  695.          CH    R1,=H'129'          CPABH╨ÿT╨¼ C MAKC╨ÿM. ╨ö╨¢╨ÿHO╨Ö            06930000
  696.          BNH   RDT010              EC╨¢╨ÿ HE ╨æO╨¢╨¼╨¿E, OCTAB╨ÿT╨¼             06940000
  697.          LA    R1,129              ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ MAKC╨ÿM. ╨ö╨¢╨ÿH╨ú              06950000
  698. RDT010   MVI   PACKAGE,C' '        C╨ÿMBO╨¢ - ╨ùA╨ƒO╨¢H╨ÿTE╨¢╨¼                 06960000
  699.          MVC   PACKAGE+1(129),PACKAGE                                   06970000
  700.          LA    R2,PACKAGE+129      ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC ╨ƒPO╨æE╨¢A              06980000
  701.          LR    R3,R2               CKO╨ƒ╨ÿPOBAT╨¼                          06990000
  702.          LR    R4,R2               E╨⌐E PA╨ù CKO╨ƒ╨ÿPOBAT╨¼                  07000000
  703.          STM   R2,R4,PARSELST      ╨ùA╨ƒ╨ÿCAT╨¼ BCE A╨öPECA B PARSELST       07010000
  704.          LTR   R1,R1               ECT╨¼ ╨öAHH╨½E B TIOA ?                 07020000
  705.          BZ    RDT200              EC╨¢╨ÿ HET, CPA╨ù╨ú OCBO╨æO╨ö╨ÿT╨¼           07030000
  706.          LA    R3,TIOADBA          A╨öPEC BXO╨öHO╨Ö O╨æ╨¢ACT╨ÿ                07040000
  707.          LA    R4,PACKAGE          A╨öPEC B╨½XO╨öHO╨Ö O╨æ╨¢ACT╨ÿ               07050000
  708. RDT020   CLI   0(R3),C' '          H╨ú╨ûH╨½ TO╨¢╨¼KO ╨ƒE╨ºATH╨½E C╨ÿMBO╨¢╨½        07060000
  709.          BL    RDT030              EC╨¢╨ÿ MEH╨¼╨¿E, TO ╨ƒPO╨ƒ╨úCT╨ÿT╨¼           07070000
  710.          MVC   0(1,R4),0(R3)       ╨ùA╨ƒ╨ÿCAT╨¼ C╨ÿMBO╨¢                      07080000
  711.          LA    R4,1(,R4)           ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼                07090000
  712. RDT030   LA    R3,1(,R3)           ╨ƒEPEMECT╨ÿT╨¼ BXO╨öHO╨Ö ╨úKA╨ùATE╨¢╨¼        07100000
  713.          BCT   R1,RDT020           ╨ÿ ╨ƒPOBEP╨»T╨¼ C╨¢E╨ö╨ú╨«╨⌐╨ÿ╨Ö                07110000
  714. *              PA╨ù╨öE╨¢╨ÿT╨¼ KOMAH╨ö╨ú HA O╨ƒEPAH╨ö╨½                            07120000
  715.          LA    R1,3                MAKC╨ÿM. ╨º╨ÿC╨¢O O╨ƒEPAH╨öOB              07130000
  716.          LA    R2,PARSELST         A╨öPEC C╨ƒ╨ÿCKA O╨ƒEPAH╨öOB               07140000
  717.          LA    R5,PACKAGE          A╨öPEC BXO╨öHO╨Ö O╨æ╨¢ACT╨ÿ                07150000
  718.          SR    R4,R5               ╨ƒO╨¢╨ú╨º╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨öAHH╨½X                07160000
  719.          BZ    RDT200              EC╨¢╨ÿ HET ╨öAHH╨½X, TO B╨½XO╨ö            07170000
  720. RDT100   CLI   0(R5),C' '          BCE ╨ƒPO╨æE╨¢╨½ ╨ƒPO╨ƒ╨úCKAT╨¼               07180000
  721.          BNE   RDT120              EC╨¢╨ÿ HE ╨ƒPO╨æE╨¢, TO HA╨Ö╨öEH O╨ƒEPAH╨ö    07190000
  722.          LA    R5,1(,R5)           ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼                07200000
  723.          BCT   R4,RDT100           ╨ÿ CMOTPET╨¼ C╨¢E╨ö. C╨ÿMBO╨¢              07210000
  724.          B     RDT200              BCE ╨öAHH╨½E O╨æPA╨æOTAH╨½                07220000
  725. RDT120   ST    R5,0(,R2)           ╨ùA╨ƒ╨ÿCAT╨¼ A╨öPEC O╨ƒEPAH╨öA              07230000
  726.          LA    R2,4(,R2)           ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼ HA PARSELST    07240000
  727. RDT140   LA    R5,1(,R5)           ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼                07250000
  728.          CLI   0(R5),C' '          HA╨Ö╨öEH KOHE╨ª O╨ƒEPAH╨öA ?              07260000
  729.          BE    RDT160              EC╨¢╨ÿ ╨öA, ╨ƒPO╨ƒ╨úCKAT╨¼ ╨ƒPO╨æE╨¢╨½          07270000
  730.          BCT   R4,RDT140           ╨ƒPOBEP╨»T╨¼ C╨¢E╨ö. C╨ÿMBO╨¢               07280000
  731.          B     RDT200              BCE ╨öAHH╨½E O╨æPA╨æOTAH╨½                07290000
  732. RDT160   BCT   R1,RDT100           EC╨¢╨ÿ O╨ƒEPAH╨öOB < 3, ╨ÿCKAT╨¼ C╨¢E╨ö.     07300000
  733. RDT200   ST    TIOABAR,TCASCSA     OCBO╨æO╨ö╨ÿT╨¼ TIOA                      07310000
  734.          DFHSC TYPE=FREEMAIN                                            07320000
  735.          L     R6,=A(UPPER)                                             07330000
  736.          TR    PACKAGE(130),0(R6)  ╨ƒEPEBECT╨ÿ B BEPXH╨ÿ╨Ö PE╨ô╨ÿCTP          07340000
  737.          XR    R14,R14             RC=0                                 07350000
  738.          RETURN                                                         07360000
  739. UPPER    DC    256AL1(*-UPPER)                                          07370000
  740.          ORG   UPPER+X'81'                                              07380000
  741.          DC    C'ABCDEFGHI'                                             07390000
  742.          ORG   UPPER+X'91'                                              07400000
  743.          DC    C'JKLMNOPQR'                                             07410000
  744.          ORG   UPPER+X'A2'                                              07420000
  745.          DC    C'STUVWXYZ'                                              07430000
  746.          ORG   UPPER+256                                                07440000
  747. *********************************************************************** 07450000
  748.          LTORG                                                          07460000
  749.          DROP  BASE                                                     07470000
  750. *********************************************************************** 07480000
  751. *              B╨½BO╨ö COO╨æ╨⌐EH╨ÿ╨Ö COURIER - CICS                         * 07490000
  752. *********************************************************************** 07500000
  753. * RETURN CODE = 0  -  OK                                              * 07510000
  754. *********************************************************************** 07520000
  755. WRITMS   SAVE                                                           07530000
  756.          USING WRITMS,BASE         ╨úCTAHOB╨ÿT╨¼ A╨öPECA╨ª╨ÿ╨«                 07540000
  757.          LR    BASE,R14            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨æA╨ùOB╨½╨Ö PE╨ô╨ÿCTP            07550000
  758.          XR    R2,R2               ╨ö╨¢╨» ╨ùA╨ôP╨ú╨ùK╨ÿ ╨ö╨¢╨ÿH╨½ COO╨æ╨⌐EH╨ÿ╨»         07560000
  759.          IC    R2,PACKAGE          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú                      07570000
  760.          LA    R3,2(,R2)           ╨ö╨¢╨ÿHA CR LF                          07580000
  761.          STH   R3,TCASCNB          ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú TIOA                  07590000
  762.          DFHSC TYPE=GETMAIN,CLASS=TERMINAL    ╨ùA╨ƒPOC╨ÿT╨¼ TIOA            07600000
  763.          L     TIOABAR,TCASCSA     ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC TIOA                 07610000
  764.          STH   R3,TIOATDL          ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú TIOA                  07620000
  765.          MVC   TIOADBA(2),=X'0D25' ╨ùA╨ƒ╨ÿCAT╨¼ CR LF                       07630000
  766.          BCTR  R2,0                B╨½╨ºECT╨¼ 1 ╨ö╨¢╨» MVC                    07640000
  767.          EX    R2,WRMSTXT          ╨ùA╨ƒ╨ÿCAT╨¼ TEKCT COO╨æ╨⌐EH╨ÿ╨»             07650000
  768.          ST    TIOABAR,TCTTEDA     ╨ùA╨ƒ╨ÿCAT╨¼ A╨öPEC TIOA B TCTTE          07660000
  769.          DFHTC TYPE=PUT            B╨½BECT╨ÿ COO╨æ╨⌐EH╨ÿE                    07670000
  770.          XR    R14,R14             RC=0                                 07680000
  771.          B     WRI##010                                                 07690000
  772. WRMSTXT  MVC   TIOADBA+2(0),PACKAGE+1                                   07700000
  773. WRI##010 RETURN                                                         07710000
  774. *********************************************************************** 07720000
  775.          LTORG                                                          07730000
  776.          DROP  BASE                                                     07740000
  777. *********************************************************************** 07750000
  778. *        ╨ƒO╨ö╨ƒPO╨ôPAMMA TSTDEST                                         * 07760000
  779. *********************************************************************** 07770000
  780. * METO╨ö ╨öOCT╨ú╨ƒA  QSAM                                                 * 07780000
  781. * RETURN CODE = 0  -  OK                                              * 07790000
  782. * RETURN CODE = 2  -  DESTINATION NOT DEFINED IN DCT                  * 07800000
  783. * RETURN CODE = 4  -  INCORRECT DESTINATION                           * 07810000
  784. * RETURN CODE = 6  -  INCORRECT I/O REQUEST                           * 07820000
  785. * RETURN CODE = 8  -  INCORRECT TEST QUESTION                         * 07830000
  786. *********************************************************************** 07840000
  787. TSTDEST  SAVE                                                           07850000
  788.          USING TSTDEST,BASE                                             07860000
  789.          LR    BASE,R14                                                 07870000
  790.          XR    R14,R14                                                  07880000
  791.          CLI   0(R1),C'F'          TEST FILE ?                          07890000
  792.          BE    TSTD010             ╨öA                                   07900000
  793.          CLI   0(R1),C'D'          TEST DEBUG ?                         07910000
  794.          BE    TSTD020             ╨öA                                   07920000
  795.          LA    R14,8               RC = 8                               07930000
  796.          B     TSTD900                                                  07940000
  797. TSTD010  LA    R4,FILEDEST                                              07950000
  798.          LA    R2,FILSTAT                                               07960000
  799.          LA    R3,F#REC                                                 07970000
  800.          B     TSTD030                                                  07980000
  801. TSTD020  LA    R4,DBGDEST                                               07990000
  802.          LA    R2,DBGSTAT                                               08000000
  803.          LA    R3,D#REC                                                 08010000
  804. *                                                                       08020000
  805. TSTD030  EQU   *                                                        08030000
  806.          L     DCTCBAR,CSADCTBA    TO╨ºKA BXO╨öA 1-╨ôO DCT                 08040000
  807. TSTD040  CLI   TDDCTDID,X'FF'      ╨¡TO DCT ?                            08050000
  808.          BE    TSTD700             ╨úB╨½..                                08060000
  809.          CLC   TDDCTDID(4),0(R4)   ╨ÿM╨» ╨ƒ.H. O╨ƒPE╨öE╨¢EHO B DCT ?          08070000
  810.          BE    TSTD050             ╨öA                                   08080000
  811.          TM    TDDCTDT,TDINDBM                                          08090000
  812.          BNO   TSTD041                                                  08100000
  813.          LA    DCTCBAR,TDDCTIDD    C╨¢E╨ö╨ú╨«╨⌐A╨» DCT                        08110000
  814.          B     TSTD040                                                  08120000
  815. TSTD041  TM    TDDCTDT,TDINDTBM                                         08130000
  816.          BNO   TSTD042                                                  08140000
  817.          LA    DCTCBAR,TDDCTIND    C╨¢E╨ö╨ú╨«╨⌐A╨» DCT                        08150000
  818.          B     TSTD040                                                  08160000
  819. TSTD042  LA    DCTCBAR,TDDCTEXD    C╨¢E╨ö╨ú╨«╨⌐A╨» DCT                        08170000
  820.          B     TSTD040                                                  08180000
  821. *                                                                       08190000
  822. TSTD050  TM    TDDCTDT,TDINDTBM    INTRA ?                              08200000
  823.          BNO   TSTD060             ╨úB╨½..                                08210000
  824.          OI    0(R2),X'C0'         SET INTRA  (11.. ....)               08220000
  825.          OI    0(R2),X'01'         SET OPEN   (.... ...1)               08230000
  826.          OI    0(R2),X'04'         SET V                                08240000
  827.          NI    0(R2),X'FF'-X'08'   SET V      (.... 01..)               08250000
  828.          XR    R15,R15             ! INTRA LRECL NOT DEFINED            08260000
  829.          STH   R15,0(R3)           !  ╨ö╨¢╨ÿHA ╨ùA╨ƒ╨ÿC╨ÿ -> ?#REC             08270000
  830.          XR    R14,R14             RC = 0                               08280000
  831.          B     TSTD900                                                  08290000
  832. *                                                                       08300000
  833. TSTD060  TM    TDDCTDT,TDEXTRBM    EXTRA ?                              08310000
  834.          BO    TSTD070             ╨öA                                   08320000
  835.          LA    R14,4               RC = 4                               08330000
  836.          B     TSTD900                                                  08340000
  837. *                                                                       08350000
  838. TSTD070  OI    0(R2),X'40'         SET EXTRA                            08360000
  839.          NI    0(R2),X'FF'-X'80'   SET EXTRA  (01.. ....)               08370000
  840.          XC    PACKAGE(4),PACKAGE                                       08380000
  841.          MVC   PACKAGE+1(3),TDDCTCBA+1                                  08390000
  842.          L     R5,PACKAGE          A╨öPEC DCB                            08400000
  843.          TM    48(R5),X'10'        OPEN ?                               08410000
  844.          BO    TSTD071             ╨öA                                   08420000
  845.          NI    0(R2),X'FF'-X'01'   SET NOT OPEN (.... ...0)             08430000
  846.          XR    R14,R14             RC = 0                               08440000
  847.          B     TSTD900                                                  08450000
  848. TSTD071  OI    0(R2),X'01'         SET OPEN   (.... ...1)               08460000
  849. *                                                                       08470000
  850. TSTD080  EQU   *                                                        08480000
  851.          LR    R14,R5                                                   08490000
  852.          S     R14,=F'4'                                                08500000
  853.          CLI   0(R14),X'0F'        OUTPUT ?                             08510000
  854.          BE    TSTD082             ╨öA                                   08520000
  855.          CLI   0(R14),X'00'        INPUT ?                              08530000
  856.          BE    TSTD081                                                  08540000
  857.          LA    R14,6               RC = 6                               08550000
  858.          B     TSTD900                                                  08560000
  859. *                                                                       08570000
  860. TSTD081  EQU   *                                                        08580000
  861.          OI    0(R2),X'20'         SET INPUT  (..1. ....)               08590000
  862.          B     TSTD090                                                  08600000
  863. TSTD082  EQU   *                                                        08610000
  864.          NI    0(R2),X'FF'-X'20'   SET OUTPUT (..0. ....)               08620000
  865.          B     TSTD090                                                  08630000
  866. *                                                                       08640000
  867. TSTD090  TM    26(R5),X'40'        DSORG = PS ?                         08650000
  868.          BO    TSTD100             ╨öA                                   08660000
  869.          LA    R14,4               RC = 4                               08670000
  870.          B     TSTD900                                                  08680000
  871. *                                                                       08690000
  872. TSTD100  TM    36(R5),X'C0'        RECFM = U ?                          08700000
  873.          BNO   TSTD110             HET                                  08710000
  874.          OI    0(R2),X'0C'         SET U      (.... 11..)               08720000
  875.          MVC   0(2,R3),82(R5)      !  ╨ö╨¢╨ÿHA ╨æ╨¢OKA -> ?#REC              08730000
  876.          XR    R14,R14             RC = 0                               08740000
  877.          B     TSTD900                                                  08750000
  878. *                                                                       08760000
  879. TSTD110  TM    36(R5),X'80'        RECFM = F ?                          08770000
  880.          BNO   TSTD120             HET                                  08780000
  881.          OI    0(R2),X'08'         SET F                                08790000
  882.          NI    0(R2),X'FF'-X'04'   SET F      (.... 10..)               08800000
  883.          MVC   0(2,R3),82(R5)      !  ╨ö╨¢╨ÿHA ╨ùA╨ƒ╨ÿC╨ÿ -> ?#REC             08810000
  884.          XR    R14,R14             RC = 0                               08820000
  885.          B     TSTD900                                                  08830000
  886. *                                                                       08840000
  887. TSTD120  OI    0(R2),X'04'         SET V                                08850000
  888.          NI    0(R2),X'FF'-X'08'   SET V      (.... 01..)               08860000
  889.          MVC   0(2,R3),82(R5)      !  ╨ö╨¢╨ÿHA ╨ùA╨ƒ╨ÿC╨ÿ -> ?#REC             08870000
  890.          XR    R14,R14             RC = 0                               08880000
  891.          B     TSTD900                                                  08890000
  892. *                                                                       08900000
  893. TSTD700  LA    R14,2               RC = 2                               08910000
  894. TSTD900  RETURN                                                         08920000
  895. *********************************************************************** 08930000
  896.          LTORG                                                          08940000
  897.          DROP  BASE                                                     08950000
  898. *********************************************************************** 08960000
  899. *        O╨æPA╨æOTKA KOMAH╨ö╨½   S T A T U S                              * 08970000
  900. *********************************************************************** 08980000
  901. * RETURN CODE = 0  -  OK                                              * 08990000
  902. *********************************************************************** 09000000
  903. STATUS   SAVE                                                           09010000
  904.          USING STATUS,BASE                                              09020000
  905.          LR    BASE,R14                                                 09030000
  906.          XR    R3,R3               O╨º╨ÿCT╨ÿT╨¼                             09040000
  907.          IC    R3,RETCODE          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ KO╨ö O╨¿╨ÿ╨æK╨ÿ                 09050000
  908.          MH    R3,=H'30'           ╨úMHO╨û╨ÿT╨¼ HA ╨ö╨¢╨ÿH╨ú COO╨æ╨⌐EH╨ÿ╨»          09060000
  909.          L     R6,ERRTBL#A         ╨ƒO╨¢╨ú╨º╨ÿT╨¼ A╨öPEC COO╨æ╨⌐EH╨ÿ╨Ö             09070000
  910.          LA    R3,0(R3,R6)         ╨ƒO╨¢╨ú╨º╨ÿT╨¼ A╨öPEC COO╨æ╨⌐EH╨ÿ╨»             09080000
  911.          WRTEXT 0(R3),30           B╨½╨öAT╨¼ COO╨æ╨⌐EH╨ÿE                     09090000
  912.          XR    R14,R14             RC = 0                               09100000
  913.          RETURN                                                         09110000
  914. *********************************************************************** 09120000
  915.          LTORG                                                          09130000
  916.          DROP  BASE                                                     09140000
  917. *********************************************************************** 09150000
  918. *        O╨æPA╨æOTKA KOMAH╨ö╨½   S H O W                                  * 09160000
  919. *********************************************************************** 09170000
  920. * RETURN CODE = 0  -  OK                                              * 09180000
  921. * RETURN CODE = 2  -  ILLEGAL SHOW COMMAND                            * 09190000
  922. *********************************************************************** 09200000
  923. SHOW     SAVE                                                           09210000
  924.          USING SHOW,BASE                                                09220000
  925.          LR    BASE,R14                                                 09230000
  926.          L     R6,A#TRT#SO             A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½ TRT ASCII EBCDIC   09240000
  927.          CLC   0(3,R2),=C'PAR'         SHOW PARM ?                      09250000
  928.          BNE   SHO#200                 EC╨¢╨ÿ HET, ╨ƒPOBEP╨ÿT╨¼ TRT          09260000
  929. *                                                                       09270004
  930.          MVC   PACKAGE(27),SHOWFIL     FILE             TEXT OR BINARY  09280004
  931.          TM    PGMSTAT,X'40'           -------------------------------  09290004
  932.          BZ    SHO#010                                                  09300000
  933.          MVC   PACKAGE+21(6),=C'TEXT  '                                 09310000
  934. SHO#010  CALL   WRITMS                                                  09320000
  935.          MVC   PACKAGE(31),SHOWTRX     ╨ÿM╨» TA╨æ╨¢╨ÿ╨ª╨½      TRT             09330004
  936.          MVC   PACKAGE+29(1),TRTNAME+7 --------------------             09340004
  937.          CALL  WRITMS                                                   09350000
  938.          MVC   PACKAGE(21),SHOWQUO     ╨ƒPE╨ñ╨ÿKC          QUOTE           09360004
  939.          MVC   PACKAGE+20(1),QUOTE     ----------------------           09370004
  940.          TR    PACKAGE+20(1),0(R6)                                      09380000
  941.          CALL  WRITMS                                                   09390000
  942.          MVC   PACKAGE(21),SHOWPRE     ╨ƒPE╨ñ╨ÿKC          PREF            09400004
  943.          MVC   PACKAGE+20(1),PREF      ---------------------            09410004
  944.          TR    PACKAGE+20(1),0(R6)                                      09420000
  945.          CALL  WRITMS                                                   09430000
  946.          MVC   PACKAGE(31),SHOWPAC     ╨ö╨¢╨ÿHA ╨ƒAKETOB    PACKET          09440004
  947.          LH    R1,PACKET               -----------------------          09450004
  948.          BINCVRT R1,PACKAGE+15,DBLWRK                                   09460000
  949.          CALL  WRITMS                                                   09470000
  950.          MVC   PACKAGE(29),SHOWDEL     ╨ùA╨öEP╨ûKA SEND    DELAY           09480004
  951.          LH    R1,DELAY                ----------------------           09490004
  952.          BINCVRT R1,PACKAGE+15,DBLWRK                                   09500000
  953.          CALL  WRITMS                                                   09510000
  954.          MVC   PACKAGE(15),SHOWRET     ╨º╨ÿC╨¢O ╨ƒOBTOPOB   RETRY           09520004
  955.          LH    R1,RETRY                ----------------------           09530004
  956.          BINCVRT R1,PACKAGE+9,DBLWRK                                    09540000
  957.          CALL  WRITMS                                                   09550000
  958.          MVC   PACKAGE(37),SHOWREC     ╨ö╨¢╨ÿHA INTRA      RECORD          09560004
  959.          LH    R1,I#REC                -----------------------          09570004
  960.          SH    R1,=H'4'                - L'RDW                          09580000
  961.          BINCVRT R1,PACKAGE+25,DBLWRK                                   09590000
  962.          CALL  WRITMS                                                   09600000
  963.          MVC   PACKAGE(14),SHOWAPP     PE╨û╨ÿM            APPEND          09610004
  964.          TM    FILSTAT,X'10'           -----------------------          09620004
  965.          BZ    SHO#020                                                  09630000
  966.          MVC   PACKAGE+11(3),=C'ON '                                    09640000
  967. SHO#020  CALL   WRITMS                                                  09650000
  968.          MVC   PACKAGE(13),SHOWDEB     PE╨û╨ÿM            DEBUG           09660004
  969.          TM    PRMSTAT,X'0C'           ----------------------           09670004
  970.          BZ    SHO#030                                                  09680000
  971.          MVC   PACKAGE+10(3),=C'ON '                                    09690000
  972. SHO#030  CALL   WRITMS                                                  09700000
  973.          XR    R14,R14             RC = 0                               09710000
  974.          B     SHORET                                                   09720000
  975. *                                                                       09730000
  976. SHO#200  EQU   *                                                        09740000
  977.          CLC   0(3,R2),=C'DES'                 SHOW DEST ?              09750000
  978.          BNE   SHO#400                         HET                      09760000
  979.          MVC   FILEDEST(4),0(R3)               ╨ùA╨ƒ╨ÿCAT╨¼ ╨ÿM╨» ╨ƒ.H.        09770000
  980.          LA    R1,=C'F'                        TEST FILE                09780000
  981.          CALL  TSTDEST                                                  09790000
  982.          BRTORC SHO#210,SHO#330,REST=SHO#360                            09800000
  983. SHO#210  MVC   PACKAGE+1(13),=C'DESTINATION: '                          09810000
  984.          MVC   PACKAGE+14(4),FILEDEST                                   09820000
  985.          XR    R14,R14                                                  09830000
  986.          LA    R14,17                                                   09840000
  987.          STC   R14,PACKAGE                     ╨ö╨¢╨ÿHA COO╨æ╨⌐EH╨ÿ╨»          09850000
  988.          CALL  WRITMS                          B╨½BO╨ö                    09860000
  989.          XR    R14,R14                                                  09870000
  990.          MVC   PACKAGE+1(7),=C'STATE: '                                 09880000
  991.          TM    FILSTAT,X'C0'                   INTRA ?                  09890000
  992.          BNO   SHO#220                         HET                      09900000
  993.          MVC   PACKAGE+8(10),=C'INTRA     '                             09910000
  994.          LA    R14,17                                                   09920000
  995.          STC   R14,PACKAGE                     ╨ö╨¢╨ÿHA COO╨æ╨⌐EH╨ÿ╨»          09930000
  996.          CALL  WRITMS                          B╨½BO╨ö                    09940000
  997.          B     SHO#300                         RETURN                   09950000
  998. *                                                                       09960000
  999. SHO#220  TM    FILSTAT,X'01'                   OPEN ?                   09970000
  1000.          BO    SHO#230                         ╨öA                       09980000
  1001.          MVC   PACKAGE+8(12),=C'EXTRA  CLOSE'                           09990000
  1002.          LA    R14,19                                                   10000000
  1003.          STC   R14,PACKAGE                                              10010000
  1004.          CALL  WRITMS                                                   10020000
  1005.          B     SHO#300                                                  10030000
  1006. *                                                                       10040000
  1007. SHO#230  MVC   PACKAGE+8(13),=C'EXTRA  OPEN  '                          10050000
  1008.          TM    FILSTAT,X'20'                   INPUT ?                  10060000
  1009.          BO    SHO#240                         ╨öA                       10070000
  1010.          MVC   PACKAGE+21(6),=C'OUTPUT'                                 10080000
  1011.          B     SHO#250                                                  10090000
  1012. SHO#240  MVC   PACKAGE+21(6),=C'INPUT '                                 10100000
  1013. SHO#250  LA    R14,26                                                   10110000
  1014.          STC   R14,PACKAGE                     ╨ö╨¢╨ÿHA COO╨æ╨⌐EH╨ÿ╨»          10120000
  1015.          CALL  WRITMS                          B╨½BO╨ö                    10130000
  1016.          MVC   PACKAGE+1(8),=C'FORMAT: '                                10140000
  1017.          TM    FILSTAT,X'0C'                                            10150000
  1018.          BO    SHO#260                         FORMAT U                 10160000
  1019.          TM    FILSTAT,X'08'                                            10170000
  1020.          BO    SHO#270                         FORMAT F                 10180000
  1021.          MVC   PACKAGE+9(31),=C'V    RECORD LENGHT =           '        10190000
  1022.          B     SHO#280                                                  10200000
  1023. SHO#260  MVC   PACKAGE+9(31),=C'U    RECORD LENGHT =           '        10210000
  1024.          B     SHO#280                                                  10220000
  1025. SHO#270  MVC   PACKAGE+9(31),=C'F    RECORD LENGHT =           '        10230000
  1026. SHO#280  LH    R14,F#REC                                                10240000
  1027.          BINCVRT R14,PACKAGE+30,DBLWRK                                  10250000
  1028.          XR    R14,R14                                                  10260000
  1029.          LA    R14,39                                                   10270000
  1030.          STC   R14,PACKAGE                     ╨ö╨¢╨ÿHA COO╨æ╨⌐EH╨ÿ╨»          10280000
  1031.          CALL  WRITMS                          B╨½BO╨ö                    10290000
  1032. SHO#300  XR    R14,R14                                                  10300000
  1033.          ST    R14,FILEDEST                    ╨ùATEPET╨¼ ╨ÿM╨» ╨ƒ.H.        10310000
  1034.          B     SHORET                                                   10320000
  1035. *                                                                       10330000
  1036. SHO#330  MVC   PACKAGE+1(13),=C'DESTINATION: '                          10340000
  1037.          MVC   PACKAGE+14(4),FILEDEST                                   10350000
  1038.          XR    R14,R14                                                  10360000
  1039.          LA    R14,17                                                   10370000
  1040.          STC   R14,PACKAGE                     ╨ö╨¢╨ÿHA COO╨æ╨⌐EH╨ÿ╨»          10380000
  1041.          CALL  WRITMS                          B╨½BO╨ö                    10390000
  1042.          XR    R14,R14                                                  10400000
  1043.          WRMESS 'IS NOT DEFINED.'                                       10410000
  1044.          B     SHO#300                                                  10420000
  1045. *                                                                       10430000
  1046. SHO#360  MVC   PACKAGE+1(23),=C'TSTDEST ERROR:         '                10440000
  1047.          BINCVRT R14,PACKAGE+15,DBLWRK                                  10450000
  1048.          LA    R14,23                                                   10460000
  1049.          STC   R14,PACKAGE                                              10470000
  1050.          CALL  WRITMS                                                   10480000
  1051.          B     SHO#300                                                  10490000
  1052. *                                                                       10500000
  1053. SHO#400  CLC   0(3,R2),=C'TRT'     SHOW TRT ?                           10510000
  1054.          BE    SHO#410             ╨öA                                   10520000
  1055.          LA    R14,2               RC = 2                               10530000
  1056.          B     SHORET                                                   10540000
  1057. SHO#410  WRMESS 'OUTPUT DISK TRANSLATE TABLE IS:'                       10550000
  1058.          L     R1,A#TRT#AE                                              10560000
  1059.          BAL   R2,SHO#600          B╨½BECT╨ÿ BXO╨öH╨ú╨« TA╨æ╨¢╨ÿ╨ª╨ú              10570000
  1060.          WRMESS 'TYPE <CR>'                                             10580000
  1061.          CALL  RDTRM                                                    10590000
  1062.          WRMESS 'INPUT DISK TRANSLATE TABLE IS:'                        10600000
  1063.          L     R1,A#TRT#EA                                              10610000
  1064.          BAL   R2,SHO#600          B╨½BECT╨ÿ B╨½XO╨öH╨ú╨« TA╨æ╨¢╨ÿ╨ª╨ú             10620000
  1065.          XR    R14,R14             RC = 0                               10630000
  1066.          B     SHORET                                                   10640000
  1067. *                                                                       10650000
  1068. SHO#600  LA    R3,16               C╨ºET╨º╨ÿK CTPOK                        10660000
  1069. SHO#620  LA     R5,16               C╨ºET╨º╨ÿK C╨ÿMBO╨¢OB B CTPOKE           10670000
  1070.          SR    R14,R14             ╨ö╨¢╨» ╨ƒPEO╨æPA╨ùOBAH╨ÿ╨» ╨öAHH╨½X            10680000
  1071.          MVI   PACKAGE,32          ╨ö╨¢╨ÿHA ╨öAHH╨½X                         10690000
  1072.          LA    R4,PACKAGE+1        A╨öPEC ╨ƒEPBO╨ôO ╨æA╨ÖTA B╨½X. ╨ƒO╨¢╨»        10700000
  1073. SHO#640  IC     R14,0(,R1)          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ O╨ºEPE╨öHO╨Ö ╨æA╨ÖT            10710000
  1074.          STC   R14,1(,R4)          ╨ùA╨ƒ╨ÿCAT╨¼ BTOP╨ú╨« TETPA╨ö╨ú              10720000
  1075.          NI    1(R4),X'0F'         C╨æPOC╨ÿT╨¼ CTAP╨¿╨ú╨« TETPA╨ö╨ú             10730000
  1076.          SRL   R14,4               ╨ú╨öA╨¢╨ÿT╨¼ M╨¢A╨ö╨¿╨ú╨« TETPA╨ö╨ú              10740000
  1077.          STC   R14,0(,R4)          ╨ùA╨ƒ╨ÿCAT╨¼ CTAP╨¿╨ú╨« ╨ƒO╨¢OB╨ÿH╨ú            10750000
  1078.          TR    0(2,R4),TRBYTE      ╨ƒEPEBECT╨ÿ B C╨ÿMBO╨¢╨¼H╨½╨Ö B╨ÿ╨ö           10760000
  1079.          LA    R1,1(,R1)           ╨ƒEPEMECT╨ÿT╨¼ BXO╨öHO╨Ö ╨úKA╨ùATE╨¢╨¼        10770000
  1080.          LA    R4,2(,R4)           ╨ƒEPEMECT╨ÿT╨¼ B╨½XO╨öHO╨Ö ╨úKA╨ùATE╨¢╨¼       10780000
  1081.          BCT   R5,SHO#640          ╨ÿ ╨öAM╨ƒ╨ÿPOBAT╨¼ C╨¢E╨ö. ╨æA╨ÖT             10790000
  1082. *              CTPOKA ╨ùA╨ƒO╨¢HEHA                                         10800000
  1083.          CALL  WRITMS                                                   10810000
  1084.          BCT   R3,SHO#620          ╨öAM╨ƒ╨ÿPOBAT╨¼ C╨¢E╨ö╨ú╨«╨⌐╨ú╨« CTPOK╨ú         10820000
  1085.          BR    R2                  BO╨ùBPAT                              10830000
  1086. *                                                                       10840000
  1087. TRBYTE   DC    C'0123456789ABCDEF'                                      10850000
  1088. SHOWQUO  DC    AL1(20),C'QUOTE CHARACTER IS .'                          10860000
  1089. SHOWPRE  DC    AL1(20),C'PREF  CHARACTER IS .'                          10870000
  1090. SHOWPAC  DC    AL1(30),C'PACKET SIZE IS ..... (DECIMAL)'                10880000
  1091. SHOWDEL  DC    AL1(28),C'DELAY VALUE IS ..... SECONDS'                  10890000
  1092. SHOWDEB  DC    AL1(12),C'DEBUG IS OFF'                                  10900000
  1093. SHOWFIL  DC    AL1(26),C'FILE TYPE IS SET TO BINARY'                    10910000
  1094. SHOWTRX  DC    AL1(30),C'CURRENT TRANSLATE TABLE IS - -'                10920000
  1095. SHOWAPP  DC    AL1(13),C'APPEND IS OFF'                                 10930000
  1096. SHOWREC  DC    AL1(36),C'INTRA RECORD SIZE SET IS ..... BYTE.'          10940000
  1097. SHOWRET  DC    AL1(14),C'RETRY IS .....'                                10950000
  1098. *                                                                       10960000
  1099. SHORET   RETURN                                                         10970000
  1100. *********************************************************************** 10980000
  1101.          LTORG                                                          10990000
  1102.          DROP  BASE                                                     11000000
  1103. *********************************************************************** 11010000
  1104. *        ╨ƒO╨ö╨ƒPO╨ôPAMMA O╨æPA╨æOTK╨ÿ KOMAH╨ö╨½   S E T                       * 11020000
  1105. *********************************************************************** 11030000
  1106. * RETURN CODE = 0  -  OK                                              * 11040000
  1107. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 11050000
  1108. *********************************************************************** 11060000
  1109. SET      SAVE                                                           11070000
  1110.          USING SET,BASE                                                 11080000
  1111.          LR    BASE,R14                 ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨æA╨ùOB╨½╨Ö PE╨ô╨ÿCTP       11090000
  1112.          CLC   0(3,R2),=C'APP'          SET APPEND ?                    11100000
  1113.          BNE   SET#010                  ╨úB╨½..                           11110000
  1114.            CLI   0(R3),C' '             ECT╨¼ 3-╨ÿ╨Ö O╨ƒEPAH╨ö ?             11120000
  1115.            BE    SETERR                 ╨úB╨½..                           11130000
  1116.            CLI   0(R3),C'?'            SET APPEND HELP ?                11140000
  1117.            BE    SET#005               ╨öA                               11150000
  1118.            CALL  SETAPEND                                               11160000
  1119.            B     SETOK                                                  11170000
  1120. SET#005    WRMESS 'ON ! OFF (ENABLE OR DISABLE APPEND MODE).'           11180000
  1121.            B     SETOK                                                  11190000
  1122. SET#010  CLC   0(3,R2),=C'QUO'          SET QUOTE ?                     11200000
  1123.          BNE   SET#030                  ╨úB╨½..                           11210000
  1124.            CLI   0(R3),C' '             ECT╨¼ 3-╨ÿ╨Ö O╨ƒEPAH╨ö ?             11220000
  1125.            BE    SETERR                 ╨úB╨½..                           11230000
  1126.            CLI   0(R3),C'?'            SET QUOTE HELP ?                 11240000
  1127.            BE    SET#020               ╨öA                               11250000
  1128.            CALL  SETQUOTE                                               11260000
  1129.            B     SETOK                                                  11270000
  1130. SET#020    WRMESS 'A SINGLE CHARACTER.'                                 11280000
  1131.            B     SETOK                                                  11290000
  1132. SET#030  CLC   0(3,R2),=C'PAC'         SET PACKET-SIZE ?                11300000
  1133.          BNE   SET#050                 ╨úB╨½..                            11310000
  1134.            CLI   0(R3),C' '            ECT╨¼ O╨ƒEPAH╨ö ?                   11320000
  1135.            BE    SETERR                ╨úB╨½..                            11330000
  1136.            CLI   0(R3),C'?'            SET PAC HELP ?                   11340000
  1137.            BE    SET#040               ╨öA                               11350000
  1138.            CALL  SETPACK                                                11360000
  1139.            B     SETOK                                                  11370000
  1140. SET#040    WRMESS 'PACKET-SIZE (RANGE: 26-94 DECIMAL).'                 11380000
  1141.            B     SETOK                                                  11390000
  1142. SET#050  CLC   0(3,R2),=C'DEL'         SET DELAY ?                      11400000
  1143.          BNE   SET#070                 ╨úB╨½..                            11410000
  1144.            CLI   0(R3),C' '            ECT╨¼ O╨ƒEPAH╨ö ?                   11420000
  1145.            BE    SETERR                ╨úB╨½..                            11430000
  1146.            CLI   0(R3),C'?'            SET DELAY HELP ?                 11440000
  1147.            BE    SET#060               ╨öA                               11450000
  1148.            CALL  SETDELAY                                               11460000
  1149.            B     SETOK                                                  11470000
  1150. SET#060    WRMESS 'DELAY INTERVAL BEFORE SENDING A FILE.'               11480000
  1151.            B     SETOK                                                  11490000
  1152. SET#070  CLC   0(3,R2),=C'DEB'         DEBUG ?                          11500000
  1153.          BNE   SET#090                 ╨úB╨½..                            11510000
  1154.            CLI   0(R3),C' '            ECT╨¼ O╨ƒEPAH╨ö ?                   11520000
  1155.            BE    SETERR                ╨úB╨½..                            11530000
  1156.            CLI   0(R3),C'?'            SET DEBUG HELP ?                 11540000
  1157.            BE    SET#080               ╨öA                               11550000
  1158.            CALL  SETDEBUG                                               11560000
  1159.            B     SETOK                                                  11570000
  1160. SET#080    WRMESS 'ON ! OFF (ENABLE OR DISABLE DEBUG MODE).'            11580000
  1161.            B     SETOK                                                  11590000
  1162. SET#090  CLC   0(3,R2),=C'TRT'         SET TRT ?                        11600000
  1163.          BNE   SET#120                 ╨úB╨½..                            11610000
  1164.            CLI   0(R3),C' '            ECT╨¼ O╨ƒEPAH╨ö ?                   11620000
  1165.            BE    SETERR                ╨úB╨½..                            11630000
  1166.            CLI   0(R3),C'?'            ╨ùA╨ƒPO╨¿EH HELP ?                  11640000
  1167.            BE    SET#100               ╨öA                               11650000
  1168.            CALL  SETTRT                                                 11660000
  1169.            BRTORC SETOK,REST=SET#110                                    11670000
  1170. SET#100    WRMESS 'A SINGLE CHARACTER.'                                 11680000
  1171.            WRMESS 'S (STANDARD) ! X (TR TABLE SUFFIX).'                 11690000
  1172.            B     SETOK                                                  11700000
  1173. SET#110    WRMESS 'TRANSLATE TABLE IS NOT DEFINED.'                     11710000
  1174.            B     SETOK                                                  11720000
  1175. SET#120  CLC   0(3,R2),=C'FIL'         SET FILE ?                       11730000
  1176.          BNE   SET#150                 ╨úB╨½..                            11740000
  1177.            CLI   0(R3),C' '            ECT╨¼ O╨ƒEPAH╨ö ?                   11750000
  1178.            BE    SETERR                ╨úB╨½..                            11760000
  1179.            CLI   0(R3),C'?'            SET FILE HELP ?                  11770000
  1180.            BE    SET#130               ╨öA                               11780000
  1181.            CALL  SETFILE                                                11790000
  1182.            BRTORC SETOK,REST=SET#140                                    11800000
  1183. SET#130    WRMESS 'TEXT ! BINARY.'                                      11810000
  1184.            B     SETOK                                                  11820000
  1185. SET#140    WRMESS 'COMMAND IS SET FILE TEXT ! BINARY'                   11830000
  1186.            B     SETOK                                                  11840000
  1187. SET#150  CLC   0(3,R2),=C'PRE'          SET PREF ?                      11850000
  1188.          BNE   SET#170                  ╨úB╨½..                           11860000
  1189.            CLI   0(R3),C' '             ECT╨¼ 3-╨ÿ╨Ö O╨ƒEPAH╨ö ?             11870000
  1190.            BE    SETERR                 ╨úB╨½..                           11880000
  1191.            CLI   0(R3),C'?'            SET PREF HELP ?                  11890000
  1192.            BE    SET#160               ╨öA                               11900000
  1193.            CALL  SETPREF                                                11910000
  1194.            B     SETOK                                                  11920000
  1195. SET#160    WRMESS 'A SINGLE CHARACTER.'                                 11930000
  1196.            B     SETOK                                                  11940000
  1197. SET#170  CLC   0(3,R2),=C'REC'          SET RECORD ?                    11950000
  1198.          BNE   SET#190                  ╨úB╨½..                           11960000
  1199.            CLI   0(R3),C' '             ECT╨¼ 3-╨ÿ╨Ö O╨ƒEPAH╨ö ?             11970000
  1200.            BE    SETERR                 ╨úB╨½..                           11980000
  1201.            CLI   0(R3),C'?'            SET RECORD HELP ?                11990000
  1202.            BE    SET#180               ╨öA                               12000000
  1203.            CALL  SETRECRD                                               12010000
  1204.            B     SETOK                                                  12020000
  1205. SET#180    WRMESS 'RECORD-LENGHT FOR INTRA DESTINATION.'                12030000
  1206.            WRMESS '(RANGE: 80-4096. SET IS 4096.)'                      12040000
  1207.            B     SETOK                                                  12050000
  1208. SET#190  CLC   0(3,R2),=C'PRO'          SET PROMPT ?                    12060000
  1209.          BNE   SET#210                  ╨úB╨½..                           12070002
  1210.            CLI   0(R3),C' '             ECT╨¼ 3-╨ÿ╨Ö O╨ƒEPAH╨ö ?             12080000
  1211.            BE    SETERR                 ╨úB╨½..                           12090000
  1212.            CLI   0(R3),C'?'            SET PROMPT HELP ?                12100000
  1213.            BE    SET#200               ╨öA                               12110000
  1214.            CALL  SETPRMPT                                               12120000
  1215.            B     SETOK                                                  12130000
  1216. SET#200    WRMESS 'PROMPT STRING. (LENGHT 1-22).'                       12140000
  1217.            B     SETOK                                                  12150000
  1218. SET#210  CLC   0(3,R2),=C'RET'         SET RETRY ?                      12160002
  1219.          BNE   SETERROR                ╨úB╨½..                            12170002
  1220.            CLI   0(R3),C' '            ECT╨¼ O╨ƒEPAH╨ö ?                   12180002
  1221.            BE    SETERR                ╨úB╨½..                            12190002
  1222.            CLI   0(R3),C'?'            SET RET HELP ?                   12200002
  1223.            BE    SET#220               ╨öA                               12210002
  1224.            CALL  SETRETRY                                               12220002
  1225.            B     SETOK                                                  12230002
  1226. SET#220    WRMESS 'PACKET RETRY. (RANGE: 1-63 DECIMAL).'                12240002
  1227.            B     SETOK                                                  12250002
  1228. *                                                                       12260000
  1229. SETERR   WRMESS '? NOT CONFIRMED'                                       12270000
  1230. SETOK    XR    R14,R14               RC = 0                             12280000
  1231.          B     SETRET                                                   12290000
  1232. SETERROR LA    R14,2                 RC = 2                             12300000
  1233. SETRET   RETURN                                                         12310000
  1234. *********************************************************************** 12320000
  1235.          LTORG                                                          12330000
  1236.          DROP  BASE                                                     12340000
  1237. *********************************************************************** 12350000
  1238. *        SET RECORD                                                   * 12360000
  1239. *********************************************************************** 12370000
  1240. * RETURN CODE = 0  -  OK                                              * 12380000
  1241. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 12390000
  1242. *********************************************************************** 12400000
  1243. SETRECRD SAVE                                                           12410000
  1244.          USING SETRECRD,BASE                                            12420000
  1245.          LR    BASE,R14                                                 12430000
  1246.          XC    DBLWRK,DBLWRK       O╨º╨ÿCT╨ÿT╨¼ PA╨æO╨º╨ú╨« O╨æ╨¢ACT╨¼             12440000
  1247.          LR    R2,R3               CKO╨ƒ╨ÿPOBAT╨¼ A╨öPEC HA╨ºA╨¢A O╨ƒEPAH╨öA    12450000
  1248.          LA    R1,4                MAKC╨ÿMA╨¢╨¼HA╨» ╨ö╨¢╨ÿHA O╨ƒEPAH╨öA          12460000
  1249. SETRECLP CLI   0(R2),C'0'          ╨öO╨¢╨ûHA ╨æ╨½T╨¼ ╨ª╨ÿ╨ñPA                    12470000
  1250.          BL    SETREC01            ╨ª╨ÿ╨ñP MEH╨¼╨¿E 0 HE ╨æ╨½BAET              12480000
  1251.          CLI   0(R2),C'9'                                               12490000
  1252.          BH    SETREC01            TAK ╨ûE KAK ╨ÿ ╨æO╨¢╨¼╨¿E 9                12500000
  1253.          CLI   1(R2),C' '          KOHE╨ª O╨ƒEPAH╨öA ?                     12510000
  1254.          BE    SETREC02            EC╨¢╨ÿ ╨öA, B╨½XO╨ö ╨ÿ╨ù ╨ª╨ÿK╨¢A              12520000
  1255.          LA    R2,1(R2)            ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼                12530000
  1256.          BCT   R1,SETRECLP         ╨ÿ ╨ƒPOBEP╨»T╨¼ C╨¢E╨ö╨ú╨«╨⌐╨ÿ╨Ö C╨ÿMBO╨¢         12540000
  1257. SETREC01 WRMESS 'MUST BE BETWEEN 80-4092'                               12550000
  1258.          LA    R14,2               RC = 2                               12560000
  1259.          B     SETRECR                                                  12570000
  1260. PCKREC   PACK  DBLWRK(8),0(0,R3)                                        12580000
  1261. SETREC02 SR    R2,R3               ╨ƒO╨¢╨ú╨º╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú O╨ƒEPAH╨öA - 1          12590000
  1262.          EX    R2,PCKREC           ╨ú╨ƒAKOBAT╨¼                            12600000
  1263.          CVB   R2,DBLWRK                                                12610000
  1264.          CH    R2,=H'80'           EC╨¢╨ÿ MEH╨¼╨¿E, OTBEP╨ôH╨úT╨¼              12620000
  1265.          BL    SETREC01                                                 12630000
  1266.          CH    R2,=H'4092'                                              12640000
  1267.          BH    SETREC01            EC╨¢╨ÿ ╨æO╨¢╨¼╨¿E, OTBEP╨ôH╨úT╨¼              12650000
  1268.          LA    R2,4(R2)            + RDW                                12660000
  1269.          STH   R2,I#REC                                                 12670000
  1270.          XR    R14,R14             RC = 0                               12680000
  1271. SETRECR  RETURN                                                         12690000
  1272. *********************************************************************** 12700000
  1273.          LTORG                                                          12710000
  1274.          DROP  BASE                                                     12720000
  1275. *********************************************************************** 12730000
  1276. *        SET PROMPT                                                   * 12740000
  1277. *********************************************************************** 12750000
  1278. * RETURN CODE = 0  -  OK                                              * 12760000
  1279. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 12770000
  1280. *********************************************************************** 12780000
  1281. SETPRMPT SAVE                                                           12790000
  1282.          USING SETPRMPT,BASE                                            12800000
  1283.          LR    BASE,R14                                                 12810000
  1284.          LR    R2,R3               CKO╨ƒ╨ÿPOBAT╨¼ A╨öPEC HA╨ºA╨¢A O╨ƒEPAH╨öA    12820000
  1285.          LA    R1,22               MAKC╨ÿMA╨¢╨¼HA╨» ╨ö╨¢╨ÿHA O╨ƒEPAH╨öA          12830000
  1286. SETPRMP1 EQU   *                                                        12840000
  1287.          CLI   1(R2),C' '          KOHE╨ª O╨ƒEPAH╨öA ?                     12850000
  1288.          BE    SETPRMP3            EC╨¢╨ÿ ╨öA, B╨½XO╨ö ╨ÿ╨ù ╨ª╨ÿK╨¢A              12860000
  1289.          LA    R2,1(R2)            ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼                12870000
  1290.          BCT   R1,SETPRMP1         ╨ÿ ╨ƒPOBEP╨»T╨¼ C╨¢E╨ö╨ú╨«╨⌐╨ÿ╨Ö C╨ÿMBO╨¢         12880000
  1291. SETPRMP2 WRMESS 'LENGHT MUST BE BETWEEN 1-22.'                          12890000
  1292.          LA    R14,2               RC = 2                               12900000
  1293.          B     SETPRMPR                                                 12910000
  1294. PRMPT#99 MVC   1(0,R15),0(R3)                                           12920000
  1295. SETPRMP3 SR    R2,R3               ╨ƒO╨¢╨ú╨º╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú O╨ƒEPAH╨öA - 1          12930000
  1296.          LA    R15,PROMPT                                               12940000
  1297.          EX    R2,PRMPT#99         ╨ƒEPEC╨¢AT╨¼                            12950000
  1298.          LA    R2,2(R2)            ╨ö╨¢╨ÿHA + 1 (SPACE)                    12960000
  1299.          STC   R2,0(R15)                                                12970000
  1300.          AR    R15,R2                                                   12980000
  1301.          MVI   0(R15),C' '                                              12990000
  1302.          XR    R14,R14             RC = 0                               13000000
  1303. SETPRMPR RETURN                                                         13010000
  1304. *********************************************************************** 13020000
  1305.          LTORG                                                          13030000
  1306.          DROP  BASE                                                     13040000
  1307. *********************************************************************** 13050000
  1308. *        SET QUOTE                                                    * 13060000
  1309. *********************************************************************** 13070000
  1310. * RETURN CODE = 0  -  OK                                              * 13080000
  1311. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 13090000
  1312. *********************************************************************** 13100000
  1313. SETQUOTE SAVE                                                           13110000
  1314.          USING SETQUOTE,BASE                                            13120000
  1315.          LR    BASE,R14                                                 13130000
  1316.          CLI   1(R3),C' '          O╨ö╨ÿH C╨ÿMBO╨¢ ?                        13140000
  1317.          BE    SETQU01             EC╨¢╨ÿ ╨öA, ╨ƒPOBEP╨»T╨¼ QUOTE             13150000
  1318.          WRMESS 'ONE CHARACTER ONLY'                                    13160000
  1319.          LA    R14,2               RC = 2                               13170000
  1320.          B     SETQR                                                    13180000
  1321. SETQU01  EQU   *                                                        13190000
  1322.          L     R6,A#TRT#SI         A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½ TRT EBCDIC -> ASCII    13200000
  1323.          TR    0(1,R3),0(R6)       ╨ƒEPEBECT╨ÿ B ASCII                    13210000
  1324.          CLI   0(R3),X'21'         HE MO╨ûET ╨æ╨½T╨¼ MEH╨¼╨¿E 32              13220000
  1325.          BL    SETQE               EC╨¢╨ÿ MEH╨¼╨¿E, TO O╨¿╨ÿ╨æKA               13230000
  1326.          CLI   0(R3),X'7E'         HE MO╨ûET ╨æ╨½T╨¼ ╨æO╨¢╨¼╨¿E 126             13240000
  1327.          BH    SETQE               EC╨¢╨ÿ ╨æO╨¢╨¼╨¿E, TO O╨¿╨ÿ╨æKA               13250000
  1328.          CLI   0(R3),X'3E'         ╨öO╨¢╨ûEH ╨æ╨½T╨¼ B ╨ÿHTEPBA╨¢E 32-62        13260000
  1329.          BNH   SETQO                                                    13270000
  1330.          CLI   0(R3),X'60'         ╨ÿ╨¢╨ÿ B ╨ÿHTEPBA╨¢E 96-126               13280000
  1331.          BNL   SETQO               EC╨¢╨ÿ HE MEH╨¼╨¿E, OK                   13290000
  1332. SETQE    WRMESS 'MUST FALL BETWEEN 41-76, 140 OR 173-176 (OCTAL)'       13300000
  1333.          LA    R14,2               RC = 2                               13310000
  1334.          B     SETQR                                                    13320000
  1335. SETQO    MVC   QUOTE(1),0(R3)      ╨ùA╨ƒ╨ÿCAT╨¼ C╨ÿMBO╨¢                      13330000
  1336.          XR    R14,R14             RC = 0                               13340000
  1337. SETQR    RETURN                                                         13350000
  1338. *********************************************************************** 13360000
  1339.          LTORG                                                          13370000
  1340.          DROP  BASE                                                     13380000
  1341. *********************************************************************** 13390000
  1342. *        SET PREF                                                     * 13400000
  1343. *********************************************************************** 13410000
  1344. * RETURN CODE = 0  -  OK                                              * 13420000
  1345. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 13430000
  1346. *********************************************************************** 13440000
  1347. SETPREF  SAVE                                                           13450000
  1348.          USING SETPREF,BASE                                             13460000
  1349.          LR    BASE,R14                                                 13470000
  1350.          CLI   1(R3),C' '          O╨ö╨ÿH C╨ÿMBO╨¢ ?                        13480000
  1351.          BE    SETPR01             EC╨¢╨ÿ ╨öA, ╨ƒPOBEP╨»T╨¼ PREF              13490000
  1352.          WRMESS 'ONE CHARACTER ONLY'                                    13500000
  1353.          LA    R14,2               RC = 2                               13510000
  1354.          B     SETPRRET                                                 13520000
  1355. SETPR01  EQU   *                                                        13530000
  1356.          L     R6,A#TRT#SI         A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½ TRT EBCDIC -> ASCII    13540000
  1357.          TR    0(1,R3),0(R6)       ╨ƒEPEBECT╨ÿ B ASCII                    13550000
  1358.          CLI   0(R3),X'21'         HE MO╨ûET ╨æ╨½T╨¼ MEH╨¼╨¿E 32              13560000
  1359.          BL    SETPRER             EC╨¢╨ÿ MEH╨¼╨¿E, TO O╨¿╨ÿ╨æKA               13570000
  1360.          CLI   0(R3),X'7E'         HE MO╨ûET ╨æ╨½T╨¼ ╨æO╨¢╨¼╨¿E 126             13580000
  1361.          BH    SETPRER             EC╨¢╨ÿ ╨æO╨¢╨¼╨¿E, TO O╨¿╨ÿ╨æKA               13590000
  1362.          CLI   0(R3),X'3E'         ╨öO╨¢╨ûEH ╨æ╨½T╨¼ B ╨ÿHTEPBA╨¢E 32-62        13600000
  1363.          BNH   SETPROK                                                  13610000
  1364.          CLI   0(R3),X'60'         ╨ÿ╨¢╨ÿ B ╨ÿHTEPBA╨¢E 96-126               13620000
  1365.          BNL   SETPROK             EC╨¢╨ÿ HE MEH╨¼╨¿E, OK                   13630000
  1366. SETPRER  WRMESS 'MUST FALL BETWEEN 41-76, 140 OR 173-176 (OCTAL)'       13640000
  1367.          LA    R14,2               RC = 2                               13650000
  1368.          B     SETPRRET                                                 13660000
  1369. SETPROK  MVC   PREF(1),0(R3)      ╨ùA╨ƒ╨ÿCAT╨¼ C╨ÿMBO╨¢                       13670000
  1370.          XR    R14,R14             RC = 0                               13680000
  1371. SETPRRET RETURN                                                         13690000
  1372. *********************************************************************** 13700000
  1373.          LTORG                                                          13710000
  1374.          DROP  BASE                                                     13720000
  1375. *********************************************************************** 13730000
  1376. *        SET PACKET-SIZE                                              * 13740000
  1377. *********************************************************************** 13750000
  1378. * RETURN CODE = 0  -  OK                                              * 13760000
  1379. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 13770000
  1380. *********************************************************************** 13780000
  1381. SETPACK  SAVE                                                           13790000
  1382.          USING SETPACK,BASE                                             13800000
  1383.          LR    BASE,R14                                                 13810000
  1384.          CLI   0(R3),C'0'          ╨öO╨¢╨ûEH ╨æ╨½T╨¼ >=  0                    13820000
  1385.          BL    SETKE               EC╨¢╨ÿ MEH╨¼╨¿E, O╨¿╨ÿ╨æKA                  13830000
  1386.          CLI   0(R3),C'9'          ╨öO╨¢╨ûEH ╨æ╨½T╨¼ <= 9                     13840000
  1387.          BH    SETKE               EC╨¢╨ÿ ╨æO╨¢╨¼╨¿E, TO TO╨ûE O╨¿╨ÿ╨æKA          13850000
  1388.          XC    DBLWRK,DBLWRK     O╨º╨ÿCT╨ÿT╨¼ PA╨æO╨º╨ú╨« O╨æ╨¢ACT╨¼               13860000
  1389.          CLI   1(R3),C' '          HE ╨öO╨¢╨ûEH ╨æ╨½T╨¼ KOHE╨ª                 13870000
  1390.          BE    SETKE               EC╨¢╨ÿ 1 ╨ª╨ÿ╨ñPA, TO ╨¡TO O╨¿╨ÿ╨æKA          13880000
  1391.          CLI   2(R3),C' '          A ╨ù╨öEC╨¼ ╨öO╨¢╨ûEH ╨æ╨½T╨¼ KOHE╨ª O╨ƒEPAH╨öA   13890000
  1392.          BNE   SETKE               EC╨¢╨ÿ HE KOHE╨ª, TO ╨¡TO O╨¿╨ÿ╨æKA         13900000
  1393.          PACK  DBLWRK(8),0(2,R3)  ╨ú╨ƒAKOBAT╨¼ O╨ƒEPAH╨ö                     13910000
  1394.          CVB   R14,DBLWRK         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ PA╨ùMEP ╨ƒAKETA               13920000
  1395.          CH    R14,=H'26'          M╨ÿH╨ÿMA╨¢╨¼HOE ╨ùHA╨ºEH╨ÿE ╨ö╨¢╨ÿH╨½           13930000
  1396.          BL    SETKE               EC╨¢╨ÿ MEH╨¼╨¿E, OTBEP╨ôH╨úT╨¼              13940000
  1397.          CH    R14,=H'94'          MAKC╨ÿMA╨¢╨¼HA╨» ╨ö╨¢╨ÿHA ╨ƒAKETA            13950000
  1398.          BH    SETKE               EC╨¢╨ÿ ╨æO╨¢╨¼╨¿E MAKC╨ÿM╨úMA, TO HE ╨ôO╨ö╨ÿTC╨» 13960000
  1399.          STH   R14,PACKET          ╨ùA╨ƒ╨ÿCAT╨¼ ╨ƒAPAMETP B TWA              13970000
  1400.          XR    R14,R14             RC = 0                               13980000
  1401.          B     SETKR                                                    13990000
  1402. SETKE    WRMESS 'MUST BE BETWEEN 26-94 (DECIMAL)'                       14000000
  1403.          LA    R14,2               RC = 2                               14010000
  1404. SETKR    RETURN                                                         14020000
  1405. *********************************************************************** 14030000
  1406.          LTORG                                                          14040000
  1407.          DROP  BASE                                                     14050000
  1408. *********************************************************************** 14060000
  1409. *        SET DELAY                                                    * 14070000
  1410. *********************************************************************** 14080000
  1411. * RETURN CODE = 0  -  OK                                              * 14090000
  1412. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 14100000
  1413. *********************************************************************** 14110000
  1414. SETDELAY SAVE                                                           14120000
  1415.          USING SETDELAY,BASE                                            14130000
  1416.          LR    BASE,R14                                                 14140000
  1417.          XC    DBLWRK,DBLWRK       O╨º╨ÿCT╨ÿT╨¼ PA╨æO╨º╨ú╨« O╨æ╨¢ACT╨¼             14150000
  1418.          LR    R2,R3               CKO╨ƒ╨ÿPOBAT╨¼ A╨öPEC HA╨ºA╨¢A O╨ƒEPAH╨öA    14160000
  1419.          LA    R1,5                MAKC╨ÿMA╨¢╨¼HA╨» ╨ö╨¢╨ÿHA O╨ƒEPAH╨öA          14170000
  1420. SETDLOOP CLI   0(R2),C'0'          ╨öO╨¢╨ûHA ╨æ╨½T╨¼ ╨ª╨ÿ╨ñPA                    14180000
  1421.          BL    SETDE               ╨ª╨ÿ╨ñP MEH╨¼╨¿E 0 HE ╨æ╨½BAET              14190000
  1422.          CLI   0(R2),C'9'                                               14200000
  1423.          BH    SETDE               TAK ╨ûE KAK ╨ÿ ╨æO╨¢╨¼╨¿E 9                14210000
  1424.          CLI   1(R2),C' '          KOHE╨ª O╨ƒEPAH╨öA ?                     14220000
  1425.          BE    SETD1               EC╨¢╨ÿ ╨öA, B╨½XO╨ö ╨ÿ╨ù ╨ª╨ÿK╨¢A              14230000
  1426.          LA    R2,1(R2)            ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼                14240000
  1427.          BCT   R1,SETDLOOP         ╨ÿ ╨ƒPOBEP╨»T╨¼ C╨¢E╨ö╨ú╨«╨⌐╨ÿ╨Ö C╨ÿMBO╨¢         14250000
  1428. SETDE    WRMESS 'MUST BE BETWEEN 1-32767'                               14260000
  1429.          LA    R14,2               RC = 2                               14270000
  1430.          B     SETDR                                                    14280000
  1431. PCK      PACK  DBLWRK(8),0(0,R3)                                        14290000
  1432. SETD1    SR    R2,R3               ╨ƒO╨¢╨ú╨º╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú O╨ƒEPAH╨öA - 1          14300000
  1433.          EX    R2,PCK              ╨ú╨ƒAKOBAT╨¼                            14310000
  1434.          CVB   R2,DBLWRK           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ùHA╨ºEH╨ÿE ╨ùA╨öEP╨ûK╨ÿ          14320000
  1435.          LTR   R2,R2               EC╨¢╨ÿ HO╨¢╨¼, TO HE ╨ôO╨ö╨ÿTC╨»             14330000
  1436.          BNP   SETDE                                                    14340000
  1437.          CH    R2,=H'32767'        MAKC╨ÿMA╨¢╨¼HA╨» BE╨¢╨ÿ╨º╨ÿHA ╨ùA╨öEP╨ûK╨ÿ       14350000
  1438.          BH    SETDE               EC╨¢╨ÿ ╨æO╨¢╨¼╨¿E, OTBEP╨ôH╨úT╨¼              14360000
  1439.          STH   R2,DELAY            ╨ùA╨ƒ╨ÿCAT╨¼ ╨ùA╨öEP╨ûK╨ú B TWA              14370000
  1440.          XR    R14,R14             RC = 0                               14380000
  1441. SETDR    RETURN                                                         14390000
  1442. *********************************************************************** 14400000
  1443.          LTORG                                                          14410000
  1444.          DROP  BASE                                                     14420000
  1445. *********************************************************************** 14430002
  1446. *        SET RETRY                                                    * 14440002
  1447. *********************************************************************** 14450002
  1448. * RETURN CODE = 0  -  OK                                              * 14460002
  1449. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 14470002
  1450. *********************************************************************** 14480002
  1451. SETRETRY SAVE                                                           14490002
  1452.          USING SETRETRY,BASE                                            14500002
  1453.          LR    BASE,R14                                                 14510002
  1454.          XC    DBLWRK,DBLWRK       O╨º╨ÿCT╨ÿT╨¼ PA╨æO╨º╨ú╨« O╨æ╨¢ACT╨¼             14520002
  1455.          LR    R2,R3               CKO╨ƒ╨ÿPOBAT╨¼ A╨öPEC HA╨ºA╨¢A O╨ƒEPAH╨öA    14530002
  1456.          LA    R1,2                MAKC╨ÿMA╨¢╨¼HA╨» ╨ö╨¢╨ÿHA O╨ƒEPAH╨öA          14540002
  1457. SETRLOOP CLI   0(R2),C'0'          ╨öO╨¢╨ûHA ╨æ╨½T╨¼ ╨ª╨ÿ╨ñPA                    14550002
  1458.          BL    SETRE               ╨ª╨ÿ╨ñP MEH╨¼╨¿E 0 HE ╨æ╨½BAET              14560002
  1459.          CLI   0(R2),C'9'                                               14570002
  1460.          BH    SETRE               TAK ╨ûE KAK ╨ÿ ╨æO╨¢╨¼╨¿E 9                14580002
  1461.          CLI   1(R2),C' '          KOHE╨ª O╨ƒEPAH╨öA ?                     14590002
  1462.          BE    SETR1               EC╨¢╨ÿ ╨öA, B╨½XO╨ö ╨ÿ╨ù ╨ª╨ÿK╨¢A              14600002
  1463.          LA    R2,1(R2)            ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼                14610002
  1464.          BCT   R1,SETRLOOP         ╨ÿ ╨ƒPOBEP╨»T╨¼ C╨¢E╨ö╨ú╨«╨⌐╨ÿ╨Ö C╨ÿMBO╨¢         14620002
  1465. SETRE    WRMESS 'MUST BE BETWEEN 1-63'                                  14630002
  1466.          LA    R14,2               RC = 2                               14640002
  1467.          B     SETRR                                                    14650002
  1468. RETRYPK  PACK  DBLWRK(8),0(0,R3)                                        14660002
  1469. SETR1    SR    R2,R3               ╨ƒO╨¢╨ú╨º╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú O╨ƒEPAH╨öA - 1          14670002
  1470.          EX    R2,RETRYPK          ╨ú╨ƒAKOBAT╨¼                            14680002
  1471.          CVB   R2,DBLWRK           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ùHA╨ºEH╨ÿE RETRY             14690002
  1472.          LTR   R2,R2               EC╨¢╨ÿ HO╨¢╨¼, TO HE ╨ôO╨ö╨ÿTC╨»             14700002
  1473.          BNP   SETRE                                                    14710002
  1474.          CH    R2,=H'63'           MAKC╨ÿMA╨¢╨¼HA╨» BE╨¢╨ÿ╨º╨ÿHA RETRY          14720002
  1475.          BH    SETRE               EC╨¢╨ÿ ╨æO╨¢╨¼╨¿E, OTBEP╨ôH╨úT╨¼              14730002
  1476.          STH   R2,RETRY            ╨ùA╨ƒ╨ÿCAT╨¼ RETRY    B TWA              14740002
  1477.          XR    R14,R14             RC = 0                               14750002
  1478. SETRR    RETURN                                                         14760002
  1479. *********************************************************************** 14770002
  1480.          LTORG                                                          14780002
  1481.          DROP  BASE                                                     14790002
  1482. *********************************************************************** 14800000
  1483. *        SET APPEND                                                   * 14810000
  1484. *********************************************************************** 14820000
  1485. * RETURN CODE = 0  -  OK                                              * 14830000
  1486. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 14840000
  1487. *********************************************************************** 14850000
  1488. SETAPEND SAVE                                                           14860000
  1489.          USING SETAPEND,BASE                                            14870000
  1490.          LR    BASE,R14                                                 14880000
  1491.          CLC   0(2,R3),=C'ON'      SET APPEND ON ?                      14890000
  1492.          BE    SETAON              EC╨¢╨ÿ ╨öA, ╨úCTAHOB╨ÿT╨¼                  14900000
  1493.          CLC   0(2,R3),=C'OF'      SET APPEND OFF ?                     14910000
  1494.          BE    SETAOFF             EC╨¢╨ÿ ╨öA, CH╨»T╨¼ PE╨û╨ÿM                 14920000
  1495.          WRMESS 'COMMAND IS SET APPEND ON ! OFF'                        14930000
  1496.          LA    R14,2               RC = 2                               14940000
  1497.          B     SETAPPR                                                  14950000
  1498. SETAON   OI    FILSTAT,X'10'       SET APPEND ON                        14960000
  1499.          WRMESS 'APPEND ON.'                                            14970000
  1500.          B     SETAA                                                    14980000
  1501. SETAOFF  NI    FILSTAT,X'FF'-X'10' SET APPEND OFF                       14990000
  1502.          WRMESS 'APPEND OFF.'                                           15000000
  1503. SETAA    XR    R14,R14             RC = 0                               15010000
  1504. SETAPPR  RETURN                                                         15020000
  1505. *********************************************************************** 15030000
  1506.          LTORG                                                          15040000
  1507.          DROP  BASE                                                     15050000
  1508. *********************************************************************** 15060000
  1509. *        SET DEBUG                                                    * 15070000
  1510. *********************************************************************** 15080000
  1511. * RETURN CODE = 0  -  OK                                              * 15090000
  1512. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 15100000
  1513. *********************************************************************** 15110000
  1514. SETDEBUG SAVE                                                           15120000
  1515.          USING SETDEBUG,BASE                                            15130000
  1516.          LR    BASE,R14                                                 15140000
  1517.          CLC   0(2,R3),=C'ON'      SET DEBUG ON ?                       15150000
  1518.          BE    SETGON              EC╨¢╨ÿ ╨öA, ╨úCTAHOB╨ÿT╨¼                  15160000
  1519.          CLC   0(2,R3),=C'OF'      SET DEBUG OFF ?                      15170000
  1520.          BE    SETGOFF             EC╨¢╨ÿ ╨öA, CH╨»T╨¼ PE╨û╨ÿM                 15180000
  1521.          WRMESS 'COMMAND IS SET DEBUG ON ! OFF'                         15190000
  1522.          LA    R14,2               RC = 2                               15200000
  1523.          B     SETGR                                                    15210000
  1524. SETGON   TM    PRMSTAT,X'0C'       DEBUG ON ?                           15220000
  1525.          BO    SETGA               EC╨¢╨ÿ ╨öA, CPA╨ù╨ú B╨½XO╨ö                 15230000
  1526.          LA    R1,=C'D'                                                 15240000
  1527.          CALL  TSTDEST                                                  15250000
  1528.          LTR   R14,R14                                                  15260000
  1529.          BZ    SETGEXOK                                                 15270000
  1530.          WRMESS 'DEBUG OFF.'                                            15280000
  1531.          B     SETGA                                                    15290000
  1532. SETGEXOK UNPK  DBLWRK(7),CSATODP(4)                                     15300000
  1533.          MVC   $TIME(6),DBLWRK     ╨ùA╨ƒ╨ÿCAT╨¼ BPEM╨»                       15310000
  1534.          OI    PRMSTAT,X'0C'       B╨½CTAB╨ÿT╨¼ ╨ƒP╨ÿ╨ùHAK DEBUG ON           15320000
  1535.          B     SETGA               ╨ÿ HOPMA╨¢╨¼H╨½╨Ö B╨½XO╨ö                   15330000
  1536. SETGOFF  TM    PRMSTAT,X'0C'       DEBUG OFF ?                          15340000
  1537.          BZ    SETGA               EC╨¢╨ÿ ╨öA, CPA╨ù╨ú B╨½XO╨ö                 15350000
  1538.          NI    PRMSTAT,X'FF'-X'0C' C╨æPOC╨ÿT╨¼ ╨ƒP╨ÿ╨ùHAK DBG                 15360000
  1539. SETGA    XR    R14,R14             RC = 0                               15370000
  1540. SETGR    RETURN                                                         15380000
  1541. *********************************************************************** 15390000
  1542.          LTORG                                                          15400000
  1543.          DROP  BASE                                                     15410000
  1544. *********************************************************************** 15420000
  1545. *        SET TRANSLATE TABLE                                          * 15430000
  1546. *********************************************************************** 15440000
  1547. * RETURN CODE = 0  -  OK                                              * 15450000
  1548. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 15460000
  1549. *********************************************************************** 15470000
  1550. SETTRT   SAVE                                                           15480000
  1551.          USING SETTRT,BASE                                              15490000
  1552.          LR    BASE,R14                                                 15500000
  1553.          MVC   NEWTRT+7(1),0(R3)   ╨ùA╨ƒPO╨¿EHA TRT ╨ƒO╨¢╨¼╨ùOBATE╨¢╨»           15510000
  1554.          CLC   NEWTRT(8),TRTNAME   CPABH╨ÿT╨¼ C ╨ÿMEHEM TEK╨ú╨⌐E╨Ö TA╨æ╨¢╨ÿ╨ª╨½    15520000
  1555.          BE    SETTOK              EC╨¢╨ÿ ╨ÿMEHA COB╨ƒA╨¢╨ÿ, TO CPA╨ù╨ú B╨½XO╨ö   15530000
  1556.          L     PPTCBAR,CSAPPTBA    ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC HA╨ºA╨¢A PPT           15540000
  1557. SETT02   CLC   PPTPI(8),NEWTRT     HA╨¿╨¢╨ÿ ╨ÿM╨» TA╨æ╨¢╨ÿ╨ª╨½ B PPT ?            15550000
  1558.          BE    SETT05              EC╨¢╨ÿ COB╨ƒA╨¢╨ÿ, TO TRT HA╨Ö╨öEHA         15560000
  1559.          CLI   PPTPI,X'FF'         ╨öO╨¿╨¢╨ÿ ╨öO KOH╨ªA PPT ?                 15570000
  1560.          BE    SETT04              EC╨¢╨ÿ ╨öA, TO TA╨æ╨¢╨ÿ╨ª╨½ HET              15580000
  1561.          L     R1,PPTNXTEN         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC C╨¢E╨ö. PPT            15590000
  1562.          LR    PPTCBAR,R1          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC C╨¢E╨ö. PPT            15600000
  1563.          B     SETT02              ╨ÿ ╨ÿCKAT╨¼ ╨öA╨¢╨¼╨¿E                      15610000
  1564. SETT04   LA    R14,2               RC = 2                               15620000
  1565.          B     SETTR                                                    15630000
  1566. SETT05   EQU   *                                                        15640000
  1567.          CLI   TRTNAME,X'00'       ECT╨¼ ╨ùA╨ôP╨ú╨ûEHHA╨» TA╨æ╨¢╨ÿ╨ªA ?           15650000
  1568.          BE    SETT06              HET                                  15660000
  1569.          MVC   TCAPCPI(8),TRTNAME  ╨ùA╨ƒ╨ÿCAT╨¼ ╨ÿM╨» ╨ú╨öA╨¢╨»EMO╨Ö TA╨æ╨¢╨ÿ╨ª╨½       15670000
  1570.          L     R5,A#TRT#AE         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC ╨ú╨öA╨¢╨»EMO╨Ö TA╨æ╨¢╨ÿ╨ª╨½    15680000
  1571.          ST    R5,TCAPCLA          ╨ùA╨ƒ╨ÿCAT╨¼ A╨öPEC ╨ú╨öA╨¢╨»EMO╨Ö TA╨æ╨¢╨ÿ╨ª╨½     15690000
  1572.          DFHPC TYPE=DELETE         ╨ú╨öA╨¢╨ÿT╨¼ TEK╨ú╨⌐╨ú╨« TRT                  15700000
  1573. SETT06   EQU   *                                                        15710000
  1574.          MVC   TCAPCPI(8),NEWTRT   ╨ùA╨ƒ╨ÿCAT╨¼ ╨ÿM╨» ╨ùA╨ôP╨ú╨ûAEMO╨Ö TRT         15720000
  1575.          DFHPC TYPE=LOAD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ TA╨æ╨¢╨ÿ╨ª╨½                    15730000
  1576.          L     R5,TCAPCLA          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC TA╨æ╨¢╨ÿ╨ª               15740000
  1577.          ST    R5,A#TRT#AE         ╨ùA╨ƒ╨ÿCAT╨¼ A╨öPEC BXO╨öHO╨Ö TA╨æ╨¢╨ÿ╨ª╨½       15750000
  1578.          LA    R5,256(,R5)         ╨ƒO╨¢╨ú╨º╨ÿT╨¼ A╨öPEC B╨½XO╨öHO╨Ö TA╨æ╨¢╨ÿ╨ª╨½      15760000
  1579.          ST    R5,A#TRT#EA         ╨ùA╨ƒ╨ÿCAT╨¼ A╨öPEC B╨½XO╨öHO╨Ö TA╨æ╨¢╨ÿ╨ª╨½      15770000
  1580.          MVC   TRTNAME(8),NEWTRT   ╨ùA╨ƒ╨ÿCAT╨¼ ╨ÿM╨» HOBO╨Ö TA╨æ╨¢╨ÿ╨ª╨½           15780000
  1581. SETTOK   XR    R14,R14             RC = 0                               15790000
  1582. SETTR    RETURN                                                         15800000
  1583. *********************************************************************** 15810000
  1584.          LTORG                                                          15820000
  1585.          DROP  BASE                                                     15830000
  1586. *********************************************************************** 15840000
  1587. *        SET FILE                                                     * 15850000
  1588. *********************************************************************** 15860000
  1589. * RETURN CODE = 0  -  OK                                              * 15870000
  1590. * RETURN CODE = 2  -  ILLEGAL SET COMMAND                             * 15880000
  1591. *********************************************************************** 15890000
  1592. SETFILE  SAVE                                                           15900000
  1593.          USING SETFILE,BASE                                             15910000
  1594.          LR    BASE,R14                                                 15920000
  1595.          CLC   0(3,R3),=C'BIN'     SET FILE BINARY ?                    15930000
  1596.          BE    SETF01              EC╨¢╨ÿ ╨öA, B╨½CTAB╨ÿT╨¼ BIN               15940000
  1597.          CLC   0(3,R3),=C'TEX'     SET FILE TEXT ?                      15950000
  1598.          BE    SETF02              EC╨¢╨ÿ ╨öA, ╨úCTAHOB╨ÿT╨¼ TXT              15960000
  1599.          LA    R14,2               RC = 2                               15970000
  1600.          B     SETFR                                                    15980000
  1601. SETF01   NI    PGMSTAT,X'FF'-X'40' B╨½CTAB╨ÿT╨¼ ╨ƒP╨ÿ╨ùHAK ╨öBO╨ÿ╨ºH╨½X ╨ñA╨Ö╨¢OB    15990000
  1602.          B     SETFOK                                                   16000000
  1603. SETF02   OI    PGMSTAT,X'40'       B╨½CTAB╨ÿT╨¼ ╨ƒP╨ÿ╨ùHAK TEKCTOBO╨ôO ╨ñA╨Ö╨¢A   16010000
  1604. SETFOK   XR    R14,R14             RC = 0                               16020000
  1605. SETFR    RETURN                                                         16030000
  1606. *********************************************************************** 16040000
  1607.          LTORG                                                          16050000
  1608.          DROP  BASE                                                     16060000
  1609. *********************************************************************** 16070000
  1610. *        ╨ƒO╨ö╨ƒPO╨ôPAMMA COURRS                                          * 16080000
  1611. *********************************************************************** 16090000
  1612. * RETURN CODE = 0  -  OK                                              * 16100000
  1613. * RETURN CODE = 2  -  BAD                                             * 16110000
  1614. *********************************************************************** 16120000
  1615. COURRS   SAVE                                                           16130000
  1616.          USING COURRS,BASE                                              16140000
  1617.          LR    BASE,R14                                                 16150000
  1618. *                                                                       16160000
  1619.          XC    $RMA(4),$RMA                                             16170000
  1620.          XC    $SMA(4),$SMA                                             16180000
  1621.          XC    $FMA(4),$FMA                                             16190000
  1622.          XC    $DMA(4),$DMA                                             16200000
  1623.          MVI   #ERROR,E$OK                                              16210000
  1624.          MVI   RETCODE,E$OK                                             16220000
  1625.          XC    IND#CRLF(1),IND#CRLF                                     16230000
  1626. *                                                                       16240000
  1627.          TM    PRMSTAT,X'0C'    DEBUG OFF ?                             16250000
  1628.          BZ    COURRS00         ╨öA                                      16260000
  1629.          MVC   TCASCNB(2),D#REC DEBUG RECORD LENGHT                     16270000
  1630.          DFHSC TYPE=GETMAIN,CLASS=TRANSDATA                             16280000
  1631.          L     TDOABAR,TCASCSA                                          16290000
  1632.          ST    TDOABAR,$DMA     SAVE DEBUG MEMORY ADDRESS               16300000
  1633. *                                                                       16310000
  1634. COURRS00 EQU   *                                                        16320000
  1635.          TM    PGMSTAT,X'80'    SEND ?                                  16330000
  1636.          BZ    COURRS10         HET                                     16340000
  1637. ******** SEND ********************************************************* 16350000
  1638.          LH    R1,PACKET        MAX ╨ö╨¢╨ÿHA ╨ƒAKETA                        16360000
  1639.          LA    R1,10(R1)        +CHK  +LEN +EOL +HA BC╨»K╨ÿ╨Ö C╨¢╨ú╨ºA╨Ö       16370000
  1640.          STH   R1,TCASCNB       PA╨ùMEP ╨ùA╨ƒPA╨¿╨ÿBAEMO╨Ö ╨ƒAM╨»T╨ÿ             16380000
  1641.          DFHSC TYPE=GETMAIN,CLASS=TERMINAL                              16390000
  1642.          L     TIOABAR,TCASCSA                                          16400000
  1643.          ST    TIOABAR,$SMA     SAVE SEND PACKET MEMORY ADDRESS         16410000
  1644. *                                                                       16420000
  1645.          CALL  SEND             COURIER SEND                            16430000
  1646. *                                                                       16440000
  1647.          L     TIOABAR,$SMA                                             16450000
  1648.          ST    TIOABAR,TCASCSA                                          16460000
  1649.          DFHSC TYPE=FREEMAIN                                            16470000
  1650. *                                                                       16480000
  1651.          B     COURRS20                                                 16490000
  1652. *                                                                       16500000
  1653. ******** RECEIVE ****************************************************** 16510000
  1654. COURRS10 EQU   *                                                        16520000
  1655.          TM    FILSTAT,X'C0'       INTRA ?                              16530000
  1656.          BNO   COURRS12            ╨úB╨½..                                16540000
  1657.          MVC   F#REC(2),I#REC      INTRA RECORD LRECL                   16550000
  1658. COURRS12 EQU   *                                                        16560000
  1659.          LH    R1,F#REC                                                 16570000
  1660.          LA    R1,10(R1)          + HA BC╨»K╨ÿ╨Ö C╨¢╨ú╨ºA╨Ö                    16580000
  1661.          STH   R1,TCASCNB         PA╨ùMEP ╨ùA╨ƒPA╨¿. ╨ƒAM╨»T╨ÿ                 16590000
  1662.          DFHSC TYPE=GETMAIN,CLASS=TRANSDATA                             16600000
  1663.          L     TDOABAR,TCASCSA                                          16610000
  1664.          ST    TDOABAR,$FMA     SAVE FILE MEMORY ADDRESS                16620000
  1665. *                                                                       16630000
  1666.          DFHSC TYPE=GETMAIN,CLASS=TERMINAL,NUMBYTE=80                   16640000
  1667.          L     TIOABAR,TCASCSA                                          16650000
  1668.          ST    TIOABAR,$SMA     SAVE SEND PACKET MEMORY ADDRESS         16660000
  1669. *                                                                       16670000
  1670.          CALL  RECEIVE          COURIER RECEIVE                         16680000
  1671. *                                                                       16690000
  1672.          L     TIOABAR,$RMA                                             16700000
  1673.          LTR   TIOABAR,TIOABAR                                          16710000
  1674.          BZ    COURRS15                                                 16720000
  1675.          ST    TIOABAR,TCASCSA                                          16730000
  1676.          DFHSC TYPE=FREEMAIN                                            16740000
  1677. *                                                                       16750000
  1678. COURRS15 EQU   *                                                        16760000
  1679.          L     TIOABAR,$SMA                                             16770000
  1680.          ST    TIOABAR,TCASCSA                                          16780000
  1681.          DFHSC TYPE=FREEMAIN                                            16790000
  1682. *                                                                       16800000
  1683.          L     TDOABAR,$FMA                                             16810000
  1684.          ST    TDOABAR,TCASCSA                                          16820000
  1685.          LA    R14,TDOAVRL                                              16830000
  1686.          ST    R14,TCATDAA                                              16840000
  1687.          MVC   TCATDDI(4),FILEDEST                                      16850000
  1688.          DFHSC TYPE=FREEMAIN                                            16860000
  1689. *                                                                       16870000
  1690. COURRS20 EQU   *                                                        16880000
  1691.          TM    PRMSTAT,X'0C'    DEBUG OFF ?                             16890000
  1692.          BZ    COURRS30         ╨öA                                      16900000
  1693.          L     TDOABAR,$DMA                                             16910000
  1694.          ST    TDOABAR,TCASCSA                                          16920000
  1695.          LA    R14,TDOAVRL                                              16930000
  1696.          ST    R14,TCATDAA                                              16940000
  1697.          MVC   TCATDDI(4),DBGDEST                                       16950000
  1698.          DFHSC TYPE=FREEMAIN                                            16960000
  1699. *                                                                       16970000
  1700. COURRS30 EQU   *                                                        16980000
  1701.          CLI   #ERROR,E$OK      RETCODE OK ?                            16990000
  1702.          BE    COURRS40         ╨öA                                      17000000
  1703.          LA    R14,2            RC = 2                                  17010000
  1704.          B     COURRS50                                                 17020000
  1705. COURRS40 XR    R14,R14          RC = 0                                  17030000
  1706. COURRS50 RETURN                                                         17040000
  1707. *********************************************************************** 17050000
  1708.          LTORG                                                          17060000
  1709.          DROP  BASE                                                     17070000
  1710. *********************************************************************** 17080000
  1711. *        ╨ƒO╨ö╨ƒPO╨ôPAMMA O╨æPA╨æOTK╨ÿ KOMAH╨ö╨½ SEND                          * 17090000
  1712. *********************************************************************** 17100000
  1713. * RETURN CODE = 0  -  OK                                              * 17110000
  1714. * RETURN CODE = 8  -  ILLEGAL SEND COMMAND                            * 17120000
  1715. *********************************************************************** 17130000
  1716. SEND     SAVE                                                           17140000
  1717.          USING SEND,BASE                                                17150000
  1718.          LR    BASE,R14                                                 17160000
  1719.          MVC   PACKAGE+1(37),=C'WAITING ..... SECONDS BEFORE SENDING.'  17170000
  1720.          MVI   PACKAGE,37                                               17180000
  1721.          LH    R1,DELAY            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ùHA╨ºEH╨ÿE ╨ùA╨öEP╨ûK╨ÿ          17190000
  1722.          BINCVRT R1,PACKAGE+8,DBLWRK                                    17200000
  1723.          CALL  WRS                 B╨½╨öAT╨¼ COO╨æ╨⌐EH╨ÿE                     17210000
  1724.          CVD   R1,DBLWRK           ╨ƒO╨¢╨ú╨º╨ÿT╨¼ ╨ú╨ƒAKOBAHHOE ╨öEC╨»T╨ÿ╨ºHOE      17220000
  1725.          MVC   TCAICRT(4),DBLWRK+4 ╨ùA╨ƒ╨ÿCAT╨¼ ╨ùHA╨ºEH╨ÿE INTRVAL            17230000
  1726.          DFHIC TYPE=WAIT,INTRVAL=YES                                    17240000
  1727.          XC    $GET$L(2),$GET$L    TEK╨ú╨⌐A╨» ╨ƒO╨ù╨ÿ╨ª╨ÿ╨» B ╨ùA╨ƒ╨ÿC╨ÿ - 0         17250000
  1728.          XC    $RETRY(2),$RETRY    ╨º╨ÿC╨¢O ╨ƒOBTOPOB ╨ƒEPE╨öA╨º╨ÿ => 0         17260000
  1729.          XC    $N$OLD(2),$N$OLD    HOMEP ╨ƒAKETA => 0                    17270000
  1730.          MVI   $STATE,C'S'         SEND_INIT                            17280000
  1731.          MVI   IND#CRLF,X'00'                                           17290000
  1732. *********************************************************************** 17300000
  1733. *              OCHOBHO╨Ö ╨ª╨ÿK╨¢ SEND                                     * 17310000
  1734. *********************************************************************** 17320000
  1735. SLOOP    CLI   $STATE,C'D'         SEND_DATA ?                          17330000
  1736.          BNE   SLOOP1                                                   17340000
  1737.          CALL  SDATA                                                    17350000
  1738.          BRTORC SLOOP,REST=SLOOPER                                      17360000
  1739. SLOOP1   CLI   $STATE,C'F'         SEND_FILE_HEADER ?                   17370000
  1740.          BNE   SLOOP2                                                   17380000
  1741.          CALL  SFILE                                                    17390000
  1742.          BRTORC SLOOP,REST=SLOOPER                                      17400000
  1743. SLOOP2   CLI   $STATE,C'S'         SEND_INIT ?                          17410000
  1744.          BNE   SLOOP3                                                   17420000
  1745.          CALL  SINIT                                                    17430000
  1746.          BRTORC SLOOP,REST=SLOOPER                                      17440000
  1747. SLOOP3   CLI   $STATE,C'Z'         SEND_EOF ?                           17450000
  1748.          BNE   SLOOP4                                                   17460000
  1749.          CALL  SEOF                                                     17470000
  1750.          BRTORC SLOOP,REST=SLOOPER                                      17480000
  1751. SLOOP4   CLI   $STATE,C'B'         SEND_BREAK ?                         17490000
  1752.          BNE   SLOOP5                                                   17500000
  1753.          CALL  SBREAK                                                   17510000
  1754.          BRTORC SLOOP,REST=SLOOPER                                      17520000
  1755. SLOOP5   CLI   $STATE,C'C'         COMPLETE ?                           17530000
  1756.          BNE   SLOOP6                                                   17540000
  1757.          BE    COMPLETE                                                 17550000
  1758. SLOOP6   CLI   $STATE,C'A'         SEND_ERR ?                           17560000
  1759.          BNE   SLOOP7                                                   17570000
  1760. SLOOPER  CALL  SABORT                                                   17580000
  1761.          B     SENDRET                                                  17590000
  1762. SLOOP7   MVI   #ERROR,E$STATE      HEPAC╨ƒO╨ùHAHHOE COCTO╨»H╨ÿE             17600000
  1763.          CALL  SABORT                                                   17610000
  1764.          B     SENDRET                                                  17620000
  1765. *********************************************************************** 17630000
  1766. *              ╨ƒEPE╨öA╨ºA ╨ùAKOH╨ºEHA                                     * 17640000
  1767. *********************************************************************** 17650000
  1768. COMPLETE XR    R14,R14             RC = 0                               17660000
  1769. SENDRET  RETURN                                                         17670000
  1770. *********************************************************************** 17680000
  1771.          LTORG                                                          17690000
  1772.          DROP  BASE                                                     17700000
  1773. *********************************************************************** 17710000
  1774. *        SEND_ERROR                ╨ƒAKET "A"                          * 17720000
  1775. *********************************************************************** 17730000
  1776. * RETURN CODE = 0  -  OK                                              * 17740000
  1777. *********************************************************************** 17750000
  1778. SABORT   SAVE                                                           17760000
  1779.          USING SABORT,BASE                                              17770000
  1780.          LR    BASE,R14                                                 17780000
  1781.          CLI   #ERROR,E$ERR        O╨æ╨¢OMA╨¢C╨» ╨ƒAPTHEP ?                  17790000
  1782.          BE    SAB100              EC╨¢╨ÿ ╨öA, ╨ƒAKET HE ╨ƒOC╨½╨¢AT╨¼           17800000
  1783.          MVI   $S$CUR,AE           T╨ÿ╨ƒ ╨ƒAKETA - ERROR                   17810000
  1784.          MVC   $SDAT$L(2),=H'30'   ╨ö╨¢╨ÿHA COO╨æ╨¿EH╨ÿ╨»                      17820000
  1785.          MVC   $N$OLD(2),$N$CUR    C╨ÿHXPOH╨ÿ╨ù╨ÿPOBAT╨¼ HOMEPA ╨ƒAKETOB      17830000
  1786.          XR    R2,R2                                                    17840000
  1787.          IC    R2,#ERROR           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP O╨¿╨ÿ╨æK╨ÿ               17850000
  1788.          MH    R2,=H'30'           ╨úMHO╨û╨ÿT╨¼ HA ╨ö╨¢╨ÿH╨ú COO╨æ╨⌐EH╨ÿ╨»          17860000
  1789.          L     R3,ERRTBL#A         A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½ ERROR COO╨æ╨⌐EH╨ÿ╨Ö        17870000
  1790.          LA    R3,0(R3,R2)         ╨ƒO╨¢╨ú╨º╨ÿT╨¼ A╨öPEC COO╨æ╨⌐EH╨ÿ╨»             17880000
  1791.          L     TIOABAR,$SMA                                             17890000
  1792.          LA    R1,TIOADBA                                               17900000
  1793.          LA    R1,3(R1)                                                 17910000
  1794.          MVC   0(30,R1),0(R3)      ╨ùA╨ƒ╨ÿCAT╨¼ TEKCT COO╨æ╨⌐EH╨ÿ╨»             17920000
  1795.          L     R2,A#TRT#EA         A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½ ╨ƒEPEKO╨ö╨ÿPOBK╨ÿ B ASCII  17930000
  1796.          TR    0(30,R1),0(R2)      ╨ƒEPEBECT╨ÿ B ASCII                    17940000
  1797.          CALL  SPACK                                                    17950000
  1798. SAB100   XR    R14,R14             RC = 0                               17960000
  1799.          RETURN                                                         17970000
  1800. *********************************************************************** 17980000
  1801.          LTORG                                                          17990000
  1802.          DROP  BASE                                                     18000000
  1803. *********************************************************************** 18010000
  1804. *        SEND_INIT                 ╨ƒAKET "S"                          * 18020000
  1805. *********************************************************************** 18030000
  1806. * RETURN CODE = 0  -  OK                                              * 18040000
  1807. * RETURN CODE = 2  -  ╨ƒPEB╨½╨¿EHO ╨º╨ÿC╨¢O ╨ƒOBTOPOB ╨ƒEPE╨öA╨º╨ÿ. H╨ú╨ûEH E-╨ƒAKET* 18050000
  1808. *********************************************************************** 18060000
  1809. SINIT    SAVE                                                           18070000
  1810.          USING SINIT,BASE                                               18080000
  1811.          LR    BASE,R14                                                 18090000
  1812. *                                                                       18100000
  1813.          L     TIOABAR,$SMA                                             18110000
  1814.          LA    R1,TIOADBA                                               18120000
  1815.          LA    R5,32               X'20' - ╨ƒPO╨æE╨¢ B ASCII               18130000
  1816.          LR    R14,R5              CKO╨ƒ╨ÿPOBAT╨¼                          18140000
  1817.          AH    R5,PACKET           ╨ƒP╨ÿ╨æAB╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨ƒP╨ÿH╨ÿMAEMO╨ôO ╨ƒAKETA  18150000
  1818.          STC   R5,3(R1)            ╨ƒEPB╨½╨Ö ╨æA╨ÖT SEND_INIT                18160000
  1819.          LA    R5,8(,R14)          TIMEOUT = 8                          18170000
  1820.          STC   R5,4(R1)            BTOPO╨Ö ╨æA╨ÖT SEND_INIT                18180000
  1821.          STC   R14,5(R1)           NPAD = 0                             18190000
  1822.          MVI   6(R1),X'40'         PADC = NULL                          18200000
  1823.          IC    R5,R#EOT                                                 18210000
  1824.          AR    R5,R14              C╨öE╨¢AT╨¼ ╨ƒE╨ºATH╨½M                     18220000
  1825.          STC   R5,7(R1)            ╨ƒ╨»T╨½╨Ö ╨æA╨ÖT SEND_INIT                 18230000
  1826.          MVC   8(1,R1),QUOTE       QUOTE CHARACTER                      18240000
  1827. *                                                                       18250000
  1828.          MVC   $SDAT$L(2),=H'7'    ╨ö╨¢╨ÿHA ╨ƒAKETA                         18260000
  1829.          MVC   9(1,R1),PREF        ╨ƒPE╨ñ╨ÿKC BOC╨¼MO╨ôO ╨æ╨ÿTA                18270000
  1830. SINIT030 EQU   *                                                        18280000
  1831.          CLC   $RETRY(2),RETRY     MO╨ûHO ╨ƒOBTOP╨»T╨¼ ╨ƒEPE╨öA╨º╨ú ?           18290000
  1832.          BNL   SINIT810                                                 18300000
  1833.          MVI   $S$CUR,AS           T╨ÿ╨ƒ ╨ƒAKETA - SEND_INIT               18310000
  1834.          CALL  SPACK               ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ƒOC╨½╨¢K╨ÿ ╨ƒAKETA          18320000
  1835.          BRTORC SINIT110,REST=SINIT810                                  18330000
  1836. SINIT110 CALL  GETACK              ╨º╨ÿTAT╨¼ OTBET ╨ƒAPTHEPA                18340000
  1837.          BRTORC SINIT120,SINIT030,REST=SINIT810                         18350000
  1838. SINIT120 CLI   $RDAT$L+1,X'00'     ECT╨¼ ╨öAHH╨½E B ╨ƒAKETE ?               18360000
  1839.          BE    SINIT300            EC╨¢╨ÿ HET, BCE ╨ƒO ╨úMO╨¢╨ºAH╨ÿ╨«           18370000
  1840.          SR    R4,R4               O╨º╨ÿCT╨ÿT╨¼ PA╨æO╨º╨ÿ╨Ö                     18380000
  1841. *                                                                       18390000
  1842.          L     TIOABAR,$RMA        A╨öPEC ╨æ╨ú╨ñEPA ╨ƒP╨ÿH╨»TO╨ôO ╨ƒAKETA        18400000
  1843.          LA    R2,TIOADBA                                               18410000
  1844.          IC    R4,3(R2)            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨ƒAKETA ╨ƒAPTHEPA      18420000
  1845.          CH    R4,=H'32'           SPACE ?╨ƒO ╨úMO╨¢╨ºAH╨ÿ╨« ?                18430000
  1846.          BE    SINIT140                                                 18440000
  1847.          SH    R4,=H'32'           B╨½╨ºECT╨¼ ╨ƒPO╨æE╨¢                       18450000
  1848.          CH    R4,=H'26'           ╨öO╨¢╨ûHA ╨æ╨½T╨¼ HE MEH╨¼╨¿E 26             18460000
  1849.          BL    SINIT800                                                 18470000
  1850.          CH    R4,=H'94'           HE MO╨ûET ╨æ╨½T╨¼ ╨æO╨¢╨¼╨¿E PACKET          18480000
  1851.          BH    SINIT800            EC╨¢╨ÿ ╨æO╨¢╨¼╨¿E, O╨¿╨ÿ╨æKA                  18490000
  1852.          STH   R4,PACKET           ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú ╨ƒAKETA ╨ö╨¢╨» ╨ƒAPTHEPA   18500000
  1853. SINIT140 CLC   $RDAT$L(2),=H'5'    ECT╨¼ EOL ?                           18510000
  1854.          BNH   SINIT300            EC╨¢╨ÿ HET, HE MEH╨»T╨¼ CTAP╨½╨Ö           18520000
  1855.          IC    R4,7(R2)            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ EOL                        18530000
  1856.          SH    R4,=H'32'           B╨½╨ºECT╨¼ ╨ƒPO╨æE╨¢                       18540000
  1857.          STC   R4,S#EOT            ╨ùA╨ƒ╨ÿCAT╨¼ EOL ╨ö╨¢╨» ╨ƒAPTHEPA            18550000
  1858.          CLI   $RDAT$L+1,7         ECT╨¼ ╨ƒPE╨ñ╨ÿKC BOC╨¼MO╨ôO ╨æ╨ÿTA ?         18560000
  1859.          BL    SINIT300            EC╨¢╨ÿ HET, HET ╨ƒPE╨ñ╨ÿKCA╨ª╨ÿ╨ÿ 8 ╨æ╨ÿTA     18570000
  1860.          CLC   9(1,R2),PREF        COB╨ƒA╨¢ C HA╨¿╨ÿM ╨ƒPE╨ñ╨ÿKCOM ?           18580000
  1861.          BE    SINIT400            EC╨¢╨ÿ ╨öA, OCTAB╨ÿT╨¼                    18590000
  1862. SINIT300 NI    PGMSTAT,X'FF'-X'20' HET ╨ƒPE╨ñ╨ÿKCA╨ª╨ÿ╨ÿ 8-╨ôO ╨æ╨ÿTA            18600000
  1863. SINIT400 MVI   $STATE,C'F'         FILE_HEADER                          18610000
  1864.          LH    R3,$N$OLD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒAKETA               18620000
  1865.          LA    R3,1(,R3)           ╨úBE╨¢╨ÿ╨º╨ÿT╨¼ HOMEP HA 1                 18630000
  1866.          STH   R3,$N$OLD           ╨ùA╨ƒ╨ÿCAT╨¼ O╨æPATHO                     18640000
  1867.          NC    $N$OLD(2),=X'003F' $N$OLD MOD 64                         18650000
  1868.          XR    R14,R14             RC = 0                               18660000
  1869.          B     SINITRET                                                 18670000
  1870. SINIT800 MVI   #ERROR,E$LENG       HEBEPHA╨» ╨ö╨¢╨ÿHA ╨ƒAKETA                18680000
  1871. SINIT810 MVI   $STATE,C'A'         A B O R T                            18690000
  1872.          LA    R14,2               RC = 2                               18700000
  1873. SINITRET RETURN                                                         18710000
  1874. *********************************************************************** 18720000
  1875.          LTORG                                                          18730000
  1876.          DROP  BASE                                                     18740000
  1877. *********************************************************************** 18750000
  1878. *        SEND_FILE                 ╨ƒAKET "F"                          * 18760000
  1879. *********************************************************************** 18770000
  1880. * RETURN CODE = 0  -  OK                                              * 18780000
  1881. * RETURN CODE = 2  -  ╨ƒOC╨¢AT╨¼ ERROR ╨ƒAKET                             * 18790000
  1882. * RETURN CODE = 4  -  ╨ƒP╨ÿH╨»╨¢╨ÿ ERROR ╨ƒAKET, B╨½XO╨ö ╨æE╨ù ERROR ╨ƒAKETA     * 18800000
  1883. *********************************************************************** 18810000
  1884. SFILE    SAVE                                                           18820000
  1885.          USING SFILE,BASE                                               18830000
  1886.          LR    BASE,R14                                                 18840000
  1887.          L     TIOABAR,$SMA                                             18850000
  1888.          LA    R1,TIOADBA          A╨öPEC HA╨ºA╨¢A ╨ƒAKETA                  18860000
  1889.          LA    R1,3(R1)            A╨öPEC ╨öAHH╨½X ╨ƒAKETA                  18870000
  1890.          L     R3,A#TRT#EA         A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½ TRT EBCDIC -> ASCII    18880000
  1891. *              ╨ñOPM╨ÿPOBAH╨ÿE ╨ÿMEH╨ÿ ╨ñA╨Ö╨¢A ╨ƒO ╨ƒPOTOKO╨¢╨ú COURIER            18890000
  1892.          MVC   0(4,R1),FILEDEST    ╨ùA╨ƒ╨ÿCAT╨¼ ╨ÿM╨»                         18900000
  1893.          MVC   4(8,R1),=C'0001.KER'                                     18910000
  1894.          LA    R2,12               ╨ƒO╨¢╨ú╨º╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨ÿMEH╨ÿ                 18920000
  1895.          STH   R2,$SDAT$L          ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú ╨öAHH╨½X ╨ƒAKETA         18930000
  1896.          BCTR  R2,0                                                     18940000
  1897.          EX    R2,SFILE600         ╨ƒEPEKO╨ö╨ÿPOBAT╨¼ B ASCII               18950000
  1898. SFILE050 EQU   *                                                        18960000
  1899.          CLC   $RETRY,RETRY        MO╨ûHO E╨⌐E ╨ƒOC╨½╨¢AT╨¼ ?                 18970000
  1900.          BNL   SFILE800            HET                                  18980000
  1901.          MVI   $S$CUR,AF           T╨ÿ╨ƒ ╨ƒAKETA - FILE_HEADER             18990000
  1902.          CALL  SPACK               ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ƒOC╨½╨¢K╨ÿ ╨ƒAKETA          19000000
  1903.          BRTORC SFILE100,REST=SFILE800                                  19010000
  1904. SFILE100 CALL  GETACK              ╨º╨ÿTAT╨¼ OTBET ╨ƒAPTHEPA                19020000
  1905.          BRTORC SFILE120,SFILE050,REST=SFILE800                         19030000
  1906. SFILE120 MVI   $STATE,C'D'         D A T A                              19040000
  1907.          LH    R3,$N$OLD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒAKETA               19050000
  1908.          LA    R3,1(,R3)           ╨úBE╨¢╨ÿ╨º╨ÿT╨¼ HA 1                       19060000
  1909.          STH   R3,$N$OLD           ╨ùA╨ƒ╨ÿCAT╨¼ O╨æPATHO                     19070000
  1910.          NC    $N$OLD(2),=X'003F'  $N$OLD MOD 64                        19080000
  1911.          CALL  GTCHR               ╨ùA╨ƒO╨¢H╨ÿT╨¼ ╨æ╨ú╨ñEP ╨öAHH╨½M╨ÿ              19090000
  1912.          BRTORC SFILE700,REST=SFILE800                                  19100000
  1913. SFILE700 XR    R14,R14             RC = 0                               19110000
  1914.          B     SFILERET                                                 19120000
  1915. *                                                                       19130000
  1916. SFILE600 TR    0(0,R1),0(R3)       ╨ƒEPEKO╨ö╨ÿPOBKA B ASCII                19140000
  1917. *                                                                       19150000
  1918. SFILE800 MVI   $STATE,C'A'         ╨ƒPEB╨½╨¿EHO ╨º╨ÿC╨¢O ╨ƒOBTOPOB ╨ƒEPE╨öA╨º╨ÿ    19160000
  1919. SFILE900 LA    R14,2               RC = 2                               19170000
  1920. SFILERET RETURN                                                         19180000
  1921. *********************************************************************** 19190000
  1922.          LTORG                                                          19200000
  1923.          DROP  BASE                                                     19210000
  1924. *********************************************************************** 19220000
  1925. *        SEND_DATA                 ╨ƒAKET "D"                          * 19230000
  1926. *********************************************************************** 19240000
  1927. * RETURN CODE = 0  -  OK                                              * 19250000
  1928. * RETURN CODE = 2  -  ╨ƒOC╨¢AT╨¼ ERROR ╨ƒAKET                             * 19260000
  1929. *********************************************************************** 19270000
  1930. SDATA    SAVE                                                           19280000
  1931.          USING SDATA,BASE                                               19290000
  1932.          LR    BASE,R14                                                 19300000
  1933. *                                                                       19310000
  1934. SDATA030 EQU   *                                                        19320000
  1935.          CLC   $RETRY,RETRY        MO╨ûHO ╨ƒOBTOP╨»T╨¼ ╨ƒEPE╨öA╨º╨ú ?           19330000
  1936.          BNL   SDATA800                                                 19340000
  1937.          MVI   $S$CUR,AD           T╨ÿ╨ƒ ╨ƒAKETA - D A T A                 19350000
  1938.          CALL  SPACK               ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ƒOC╨½╨¢K╨ÿ ╨ƒAKETA          19360000
  1939.          BRTORC SDATA060,REST=SDATA800                                  19370000
  1940. SDATA060 CALL  GETACK              ╨º╨ÿTAT╨¼ OTBET ╨ƒAPTHEPA                19380000
  1941.          BRTORC SDATA100,SDATA030,REST=SDATA800                         19390000
  1942. SDATA100 EQU   *                                                        19400000
  1943.          XC    $SDAT$L(2),$SDAT$L  ╨ƒAKET ╨ƒOC╨¢AH ╨ÿ ╨ƒO╨öTBEP╨û╨öEH           19410000
  1944.          LH    R3,$N$OLD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒAKETA               19420000
  1945.          LA    R3,1(,R3)           ╨úBE╨¢╨ÿ╨º╨ÿT╨¼ HA 1                       19430000
  1946.          STH   R3,$N$OLD           ╨ùA╨ƒ╨ÿCAT╨¼ O╨æPATHO                     19440000
  1947.          NC    $N$OLD(2),=X'003F'  $N$OLD MOD 64                        19450000
  1948.          CALL  GTCHR               ╨ùA╨ƒO╨¢H╨ÿT╨¼ ╨ƒAKET ╨öAHH╨½M╨ÿ              19460000
  1949.          BRTORC SDATA700,REST=SDATA800                                  19470000
  1950. SDATA700 XR    R14,R14             RC = 0                               19480000
  1951.          B     SDATARET                                                 19490000
  1952. SDATA800 MVI   $STATE,C'A'         ╨ƒPEB╨½╨¿EHO ╨º╨ÿC╨¢O ╨ƒOBTOPOB ╨ƒEPE╨öA╨º╨ÿ    19500000
  1953.          LA    R14,2               RC = 2                               19510000
  1954. SDATARET RETURN                                                         19520000
  1955. *********************************************************************** 19530000
  1956.          LTORG                                                          19540000
  1957.          DROP  BASE                                                     19550000
  1958. *********************************************************************** 19560000
  1959. *        SEND_EOF                  ╨ƒAKET "Z"                          * 19570000
  1960. *********************************************************************** 19580000
  1961. * RETURN CODE = 0  -  OK                                              * 19590000
  1962. * RETURN CODE = 2  -  ╨ƒOC╨¢AT╨¼ ERROR ╨ƒAKET                             * 19600000
  1963. *********************************************************************** 19610000
  1964. SEOF     SAVE                                                           19620000
  1965.          USING SEOF,BASE                                                19630000
  1966.          LR    BASE,R14                                                 19640000
  1967. *                                                                       19650000
  1968.          LH    R1,$SDAT$L                                               19660000
  1969.          LTR   R1,R1                                                    19670000
  1970.          BZ    SEOF430                                                  19680000
  1971. *                                                                       19690000
  1972. SEOF030  EQU   *                                                        19700000
  1973.          CLC   $RETRY,RETRY        MO╨ûHO ╨ƒOC╨½╨¢AT╨¼ ╨ƒAKET ?               19710000
  1974.          BNL   SEOF800             HET                                  19720000
  1975.          MVI   $S$CUR,AD           T╨ÿ╨ƒ ╨ƒAKETA - D A T A                 19730000
  1976.          MVI   $STATE,C'D'         T╨ÿ╨ƒ ╨ƒAKETA - D A T A                 19740000
  1977.          CALL  SPACK               ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ƒOC╨½╨¢K╨ÿ ╨ƒAKETA          19750000
  1978.          BRTORC SEOF060,REST=SEOF800                                    19760000
  1979. SEOF060  CALL  GETACK              ╨º╨ÿTAT╨¼ OTBET ╨ƒAPTHEPA                19770000
  1980.          BRTORC SEOF100,SEOF030,REST=SEOF800                            19780000
  1981. SEOF100  EQU   *                                                        19790000
  1982.          LH    R3,$N$OLD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒAKETA               19800000
  1983.          LA    R3,1(,R3)           ╨úBE╨¢╨ÿ╨º╨ÿT╨¼ HA 1                       19810000
  1984.          STH   R3,$N$OLD           ╨ùA╨ƒ╨ÿCAT╨¼ O╨æPATHO                     19820000
  1985.          NC    $N$OLD(2),=X'003F'  $N$OLD MOD 64                        19830000
  1986.          XC    $SDAT$L(2),$SDAT$L  ╨ö╨¢╨ÿHA ╨ƒAKETA = 0                     19840000
  1987.          MVI   $STATE,C'Z'                                              19850000
  1988.          XR    R14,R14             RC = 0                               19860000
  1989.          B     SEOFRET                                                  19870000
  1990. *                                                                       19880000
  1991. SEOF430  EQU   *                                                        19890000
  1992.          CLC   $RETRY,RETRY        MO╨ûHO ╨ƒOC╨½╨¢AT╨¼ ╨ƒAKET ?               19900000
  1993.          BNL   SEOF800             HET                                  19910000
  1994.          MVI   $S$CUR,AZ           T╨ÿ╨ƒ ╨ƒAKETA - EOF                     19920000
  1995.          XC    $SDAT$L(2),$SDAT$L  ╨ö╨¢╨ÿHA ╨ƒAKETA = 0                     19930000
  1996.          CALL  SPACK               ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ƒOC╨½╨¢K╨ÿ ╨ƒAKETA          19940000
  1997.          BRTORC SEOF460,REST=SEOF800                                    19950000
  1998. SEOF460  CALL  GETACK              ╨º╨ÿTAT╨¼ OTBET ╨ƒAPTHEPA                19960000
  1999.          BRTORC SEOF500,SEOF430,REST=SEOF800                            19970000
  2000. SEOF500  EQU   *                                                        19980000
  2001.          LH    R3,$N$OLD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒAKETA               19990000
  2002.          LA    R3,1(,R3)           ╨úBE╨¢╨ÿ╨º╨ÿT╨¼ HA 1                       20000000
  2003.          STH   R3,$N$OLD           ╨ùA╨ƒ╨ÿCAT╨¼ O╨æPATHO                     20010000
  2004.          NC    $N$OLD(2),=X'003F' $N$OLD MOD 64                         20020000
  2005.          MVI   $STATE,C'B'         COCTO╨»H╨ÿE BREAK - ╨ƒEPE╨öAETC╨» 1 ╨ñA╨Ö╨¢  20030000
  2006.          XR    R14,R14             RC = 0                               20040000
  2007.          B     SEOFRET                                                  20050000
  2008. SEOF800  MVI   $STATE,C'A'         ╨ƒOC╨¢AT╨¼ ERROR ╨ƒAKET                  20060000
  2009.          LA    R14,2               RC = 2                               20070000
  2010. SEOFRET  RETURN                                                         20080000
  2011. *********************************************************************** 20090000
  2012.          LTORG                                                          20100000
  2013.          DROP  BASE                                                     20110000
  2014. *********************************************************************** 20120000
  2015. *        SEND_BREAK                ╨ƒAKET "B"                          * 20130000
  2016. *********************************************************************** 20140000
  2017. * RETURN CODE = 0  -  OK                                              * 20150000
  2018. * RETURN CODE = 2  -  ╨ƒOC╨¢AT╨¼ ERROR ╨ƒAKET                             * 20160000
  2019. *********************************************************************** 20170000
  2020. SBREAK   SAVE                                                           20180000
  2021.          USING SBREAK,BASE                                              20190000
  2022.          LR    BASE,R14                                                 20200000
  2023.          MVI   $S$CUR,AB           T╨ÿ╨ƒ ╨ƒAKETA - BREAK                   20210000
  2024.          XC    $SDAT$L(2),$SDAT$L  ╨ö╨¢╨ÿHA ╨ƒAKETA = 0                     20220000
  2025. SBRE030  EQU   *                                                        20230000
  2026.          CLC   $RETRY,RETRY        MO╨ûHO ╨ƒOC╨½╨¢AT╨¼ ╨ƒAKET ?               20240000
  2027.          BNL   SBRE800                                                  20250000
  2028.          CALL  SPACK               ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ƒOC╨½╨¢K╨ÿ ╨ƒAKETA          20260000
  2029.          BRTORC SBRE060,REST=SBRE800                                    20270000
  2030. SBRE060  CALL  GETACK              ╨º╨ÿTAT╨¼ OTBET ╨ƒAPTHEPA                20280000
  2031.          BRTORC SBRE100,SBRE030,REST=SBRE800                            20290000
  2032. SBRE100  MVI   $STATE,C'C'         $STATE COMPLETE                      20300000
  2033.          XR    R14,R14             RC = 0                               20310000
  2034.          B     SBRKRET                                                  20320000
  2035. SBRE800  MVI   $STATE,C'A'         ╨ƒOC╨¢AT╨¼ ERROR ╨ƒEPE╨öA╨º                20330000
  2036.          LA    R14,2               RC = 2                               20340000
  2037. SBRKRET  RETURN                                                         20350000
  2038. *********************************************************************** 20360000
  2039.          LTORG                                                          20370000
  2040.          DROP  BASE                                                     20380000
  2041. *********************************************************************** 20390000
  2042. *              ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ºTEH╨ÿ╨» OTBETA ╨ƒAPTHEPA                    * 20400000
  2043. *********************************************************************** 20410000
  2044. * RETURN CODE = 0  -  OK                                              * 20420000
  2045. * RETURN CODE = 2  -  ╨úTEP╨»H ╨ƒAKET (H╨ú╨ûHO ╨ƒOBTOP╨ÿT╨¼ ╨ƒOC╨¢. ╨ƒAKET)        20430000
  2046. * RETURN CODE = 4  -  O╨æ╨¢OMA╨¢C╨» ╨ƒAPTHEP                               * 20440000
  2047. *********************************************************************** 20450000
  2048. GETACK   SAVE                                                           20460000
  2049.          USING GETACK,BASE                                              20470000
  2050.          LR    BASE,R14                                                 20480000
  2051. *                                                                       20490000
  2052. GACK010  CALL  RPACK               ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ºTEH╨ÿ╨» ╨ƒAKETOB ╨ƒAPTHEPA 20500000
  2053.          BRTORC GACK020,REST=GACK050                                    20510000
  2054. GACK020  EQU   *                                                        20520000
  2055.          CLI   $R$CUR,AE           ╨ƒP╨ÿH╨»T ERROR ╨ƒAKET ?                 20530000
  2056.          BE    GACK100             ╨öA, O╨æBA╨¢╨ÿ╨¢C╨» ╨ƒAPTHEP                20540000
  2057.          CLI   $R$CUR,AY           ACK ?                                20550000
  2058.          BE    GACK200             ╨öA                                   20560000
  2059.          CLI   $R$CUR,AN           NAK ?                                20570000
  2060.          BE    GACK300             ╨öA                                   20580000
  2061.          MVI   #ERROR,E$TYPE                                            20590000
  2062. GACK050  MVI   $S$CUR,AN           ╨ƒOBTOP╨ÿT╨¼ ╨ƒOC╨¢E╨öH╨ÿ╨Ö ╨ƒAKET            20600000
  2063.          LA    R14,2               RC = 2                               20610000
  2064.          B     GACKR                                                    20620000
  2065. GACK100  MVI   #ERROR,E$ERR                                             20630000
  2066.          MVI   $STATE,C'A'                                              20640000
  2067.          LA    R14,4               RC = 4                               20650000
  2068.          B     GACKR                                                    20660000
  2069. *                                                                       20670000
  2070. GACK200  CLC   $N$OLD,$N$CUR       CPABH╨ÿT╨¼ HOMEPA ╨ƒAKETOB              20680000
  2071.          BE    GACK800                                                  20690000
  2072.          MVI   #ERROR,E$BAD        ╨úTEP╨»H ╨ƒAKET                         20700000
  2073.          B     GACK700             ╨ƒOBTOP╨ÿT╨¼ ╨ƒOC╨¢E╨öH╨ÿ╨Ö ╨ƒAKET            20710000
  2074. *                                                                       20720000
  2075. GACK300  MVI   #ERROR,E$NAK        NAK OT ╨ƒAPTHEPA                      20730000
  2076.          LH    R5,$N$CUR           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒP╨ÿH╨»TO╨ôO ╨ƒAKETA     20740000
  2077.          BCTR  R5,0                                                     20750000
  2078.          N     R5,=X'0000003F'     $N$CUR MOD 64                        20760000
  2079.          CH    R5,$N$OLD           CPABH╨ÿT╨¼ C HOMEPOM ╨ƒOC╨¢E╨öH. ╨ƒAKETA   20770000
  2080.          BNE   GACK700             O╨æ╨½╨ºH╨½╨Ö NAK, ╨ƒOBTOP╨ÿT╨¼ ╨ƒOC╨¢. ╨ƒAKET   20780000
  2081. * NAK C HOMEPOM N+1 => ╨æ╨½╨¢ ACK C HOMEPOM N                              20790000
  2082.          MVI   $R$CUR,AY           ╨ùA╨ƒ╨ÿCAT╨¼ T╨ÿ╨ƒ ╨ƒAKETA ACK              20800000
  2083.          MVI   $RDAT$L+1,X'00'     ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú ╨öAHH╨½X = 0            20810000
  2084.          STH   R5,$N$CUR           ╨ùA╨ƒ╨ÿCAT╨¼ HOMEP ╨ƒAKETA                20820000
  2085.          B     GACK800                                                  20830000
  2086. GACK700  MVI   $S$CUR,AN                                                20840000
  2087.          LA    R14,2               RC = 2                               20850000
  2088.          B     GACKR                                                    20860000
  2089. GACK800  XR    R14,R14             RC = 0                               20870000
  2090. GACKR    RETURN                                                         20880000
  2091. *********************************************************************** 20890000
  2092.          LTORG                                                          20900000
  2093.          DROP  BASE                                                     20910000
  2094. *********************************************************************** 20920000
  2095. *              ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ùA╨ƒO╨¢HEH╨ÿ╨» ╨ƒAKETA ╨öAHH╨½M╨ÿ                 * 20930000
  2096. *********************************************************************** 20940000
  2097. * RETURN CODE = 0  -  OK                                              * 20950000
  2098. * RETURN CODE = 2  -  ERROR (H╨ú╨ûEH ERROR-╨ƒAKET)                       * 20960000
  2099. *********************************************************************** 20970000
  2100. GTCHR    SAVE                                                           20980000
  2101.          USING GTCHR,BASE                                               20990000
  2102.          LR    BASE,R14                                                 21000000
  2103. *                                                                       21010000
  2104.          L     TIOABAR,$SMA                                             21020000
  2105.          LA    R2,TIOADBA+3        A╨öPEC CBO╨æO╨öHO╨ôO MECTA B ╨ƒAKETE      21030000
  2106.          XR    R3,R3               ╨úKA╨ùATE╨¢╨¼ CME╨⌐EH╨ÿ╨»/╨ö╨¢╨ÿHA ╨ƒAKETA      21040000
  2107. *                                                                       21050000
  2108. GCHR010  LH    R1,$GET$L                                                21060000
  2109.          LTR   R1,R1               ╨ùA╨ƒ╨ÿC╨¼ FILE ╨ƒO╨¢HOCT╨¼╨« O╨æPA╨æOTAHA ?   21070000
  2110.          BNZ   GCHR300             HET                                  21080000
  2111.          TM    PGMSTAT,X'40'       TEXT ?                               21090000
  2112.          BNO   GCHR100             HET                                  21100000
  2113. *                                                                       21110000
  2114.          CLI   IND#CRLF,X'00'      CRLF ╨úC╨ƒE╨¢╨ÿ B╨½BECT╨ÿ ?                21120000
  2115.          BE    GCHR100             ╨öA                                   21130000
  2116.          CLI   IND#CRLF,X'4D'      CR ╨úC╨ƒE╨¢╨ÿ B╨½BECT╨ÿ ?                  21140000
  2117.          BNE   GCHR040             ╨öA                                   21150000
  2118.          LH    R15,PACKET                                               21160000
  2119.          SH    R15,=H'3'                                                21170000
  2120.          SH    R15,=H'2'                                                21180000
  2121.          CR    R3,R15              ╨ƒOMECT╨ÿT╨¼C╨» <QUOTE><CR> ?            21190000
  2122.          BH    GCHR700             HET                                  21200000
  2123.          LA    R15,0(R3,R2)        A╨öPEC CBO╨æO╨öHO╨ôO MECTA B ╨ƒAKETE      21210000
  2124.          MVC   0(1,R15),QUOTE                                           21220000
  2125.          MVI   1(R15),X'4D'        PUT CR                               21230000
  2126.          LA    R3,2(R3)                                                 21240000
  2127.          MVI   IND#CRLF,X'4A'                                           21250000
  2128. GCHR040  LH    R15,PACKET                                               21260000
  2129.          SH    R15,=H'3'                                                21270000
  2130.          SH    R15,=H'2'                                                21280000
  2131.          CR    R3,R15              ╨ƒOMECT╨ÿT╨¼C╨» <QUOTE><LF> ?            21290000
  2132.          BH    GCHR700             HET                                  21300000
  2133.          LA    R15,0(R3,R2)        A╨öPEC CBO╨æO╨öHO╨ôO MECTA B ╨ƒAKETE      21310000
  2134.          MVC   0(1,R15),QUOTE                                           21320000
  2135.          MVI   1(R15),X'4A'        PUT LF                               21330000
  2136.          LA    R3,2(R3)                                                 21340000
  2137.          MVI   IND#CRLF,X'00'                                           21350000
  2138. *                                                                       21360000
  2139. GCHR100  CALL  GTREC               ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ºTEH╨ÿ╨» ╨ùA╨ƒ╨ÿC╨ÿ           21370000
  2140.          BRTORC GCHR120,GCHR800,GCHR820,REST=GCHR840                    21380000
  2141. GCHR120  L     R4,$FMA             A╨öPEC HEO╨æPA╨æOTAHH╨½X ╨öAHH╨½X FILE     21390000
  2142.          LH    R1,$GET$L           ╨ö╨¢╨ÿH╨ú HEO╨æPA╨æOTAHH╨½X ╨öAHH╨½X FILE     21400000
  2143.          TM    PGMSTAT,X'40'       TEXT ?                               21410000
  2144.          BNO   GCHR300             HET. HE ╨ƒEPEKO╨ö╨ÿPOBAT╨¼.              21420000
  2145. *                                                                       21430000
  2146.          L     R6,A#TRT#EA         A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½ ╨ƒEPEKO╨ö╨ÿPOBK╨ÿ          21440000
  2147.          LR    R15,R4              A╨öPEC RECORD FILE DATA               21450000
  2148.          LR    R14,R1              ╨ö╨¢╨ÿHA RECORD FILE DATA               21460000
  2149. GCHR200  CH    R14,=H'256'                                              21470000
  2150.          BNH   GCHR240                                                  21480000
  2151.          TR    0(256,R15),0(R6)    ╨ƒEPEKO╨ö╨ÿPOBAT╨¼ B ASCII               21490000
  2152.          SH    R14,=H'256'                                              21500000
  2153.          LA    R15,256(R15)                                             21510000
  2154.          B     GCHR200                                                  21520000
  2155. *                                                                       21530000
  2156. GCHR220  TR    0(0,R15),0(R6)      ╨ƒEPEKO╨ö╨ÿPOBAT╨¼ B ASCII               21540000
  2157. *                                                                       21550000
  2158. GCHR240  BCTR  R14,0               ╨ö╨¢╨» TR                               21560000
  2159.          EX    R14,GCHR220                                              21570000
  2160.          LA    R14,0(R1,R4)        A╨öPEC ╨ƒOC╨¢E╨öHE╨ôO ╨æA╨ÖTA ╨ùA╨ƒ╨ÿC╨ÿ        21580000
  2161.          BCTR  R14,0                                                    21590000
  2162. *                                                                       21600000
  2163. GCHR260  CLI   0(R14),X'20'        ╨ƒPO╨æE╨¢ ?                             21610000
  2164.          BNE   GCHR280             EC╨¢╨ÿ HET, TO B╨½XO╨ö                   21620000
  2165.          BCTR  R14,0               ╨ƒEPEMECT╨ÿT╨¼ HA 1 ╨æA╨ÖT HA╨ùA╨ö          21630000
  2166.          CR    R14,R4              ╨ƒO╨ƒA╨¢╨ÿ HA HA╨ºA╨¢O ╨ùA╨ƒ╨ÿC╨ÿ ?            21640000
  2167.          BH    GCHR260             HET, ╨ƒPOBEP╨»T╨¼ ╨öA╨¢EE                 21650000
  2168.          XC    $GET$L(2),$GET$L    ╨ùA╨ƒ╨ÿC╨¼ H╨ú╨¢EBO╨Ö ╨ö╨¢╨ÿH╨½                 21660000
  2169.          MVI   IND#CRLF,X'4D'                                           21670000
  2170.          B     GCHR010                                                  21680000
  2171. *                                                                       21690000
  2172. GCHR280  LA    R1,1(R14)                                                21700000
  2173.          SR    R1,R4                                                    21710000
  2174.          STH   R1,$GET$L           ╨ö╨¢╨ÿHA ╨öAHH╨½X ╨æE╨ù KOHE╨ºH╨½X ╨ƒPO╨æE╨¢OB   21720000
  2175.          B     GCHR310                                                  21730000
  2176. *                                                                       21740000
  2177. GCHR300  L     R4,$FMA             A╨öPEC HEO╨æPA╨æOTAHH╨½X ╨öAHH╨½X FILE     21750000
  2178. GCHR310  LH    R1,$GET$L           ╨ö╨¢╨ÿHA HEO╨æPA╨æOTAHH╨½X ╨öAHH╨½X FILE     21760000
  2179.          XR    R5,R5               CME╨⌐EH╨ÿE C╨ÿMBO╨¢A B FILE              21770000
  2180. GCHR400  EQU   *                                                        21780000
  2181.          LA    R6,0(R5,R4)         A╨öPEC O╨ºEPE╨öHO╨ôO C╨ÿMBO╨¢A             21790000
  2182.          IC    R0,0(R6)            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ O╨ºEPE╨öHO╨Ö C╨ÿMBO╨¢           21800000
  2183.          TM    PGMSTAT,X'20'       ECT╨¼ ╨ƒPE╨ñ╨ÿKCA╨ª╨ÿ╨» 8-╨ôO ╨æ╨ÿTA ?         21810000
  2184.          BZ    GCHR440             HET                                  21820000
  2185.          TM    0(R6),X'80'         ECT╨¼ 8-O╨Ö ╨æ╨ÿT ?                      21830000
  2186.          BZ    GCHR420             HET                                  21840000
  2187. * C╨ÿMBO╨¢ C 8-M ╨æ╨ÿTOM                                                    21850000
  2188.          LH    R15,PACKET          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ MAKC. ╨ö╨¢╨ÿH╨ú ╨ƒAKETA         21860000
  2189.          SH    R15,=H'3'           ╨ö╨¢╨ÿHA - 3 ╨ú╨ƒPAB╨¢. C╨ÿMBO╨¢A ╨ƒAKETA     21870000
  2190.          SH    R15,=H'3'                                                21880000
  2191.          CR    R3,R15              ╨ƒOMECT╨ÿT╨¼C╨» 3 C╨ÿMBO╨¢A ?              21890000
  2192.          BH    GCHR700             HET, B╨½╨öAT╨¼ ╨ƒAKET                    21900000
  2193.          N     R0,=X'0000007F'     C╨æPOC╨ÿT╨¼ 8-O╨Ö ╨æ╨ÿT                    21910000
  2194.          STC   R0,0(R6)            ╨ùA╨ƒ╨ÿCAT╨¼ O╨æPATHO ╨æE╨ù 8-╨ôO ╨æ╨ÿTA       21920000
  2195.          LA    R15,0(R3,R2)                                             21930000
  2196.          MVC   0(1,R15),PREF       ╨ùA╨ƒ╨ÿCAT╨¼ ╨ƒPE╨ñ╨ÿKC B ╨ƒAKET             21940000
  2197.          LA    R3,1(R3)            ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼ B ╨ƒAKETE       21950000
  2198. *                                                                       21960000
  2199. GCHR420  XR    R14,R14                                                  21970000
  2200.          IC    R14,PREF                                                 21980000
  2201.          CR    R0,R14              ╨ƒO╨¢╨ú╨º╨ÿ╨¢C╨» PREF ?                     21990000
  2202.          BE    GCHR460             EC╨¢╨ÿ ╨öA, H╨ú╨ûHA ╨ƒPE╨ñ╨ÿKCA╨ª╨ÿ╨»           22000000
  2203. GCHR440  XR    R14,R14                                                  22010000
  2204.          IC    R14,QUOTE                                                22020000
  2205.          CR    R0,R14              CPABH╨ÿT╨¼ C QUOTE                     22030000
  2206.          BE    GCHR460             EC╨¢╨ÿ COB╨ƒA╨¢╨ÿ, TO H╨ú╨ûHA ╨ƒPE╨ñ╨ÿKCA╨ª╨ÿ╨»   22040000
  2207.          CH    R0,=H'127'          D E L ?                              22050000
  2208.          BE    GCHR460             DEL TO╨ûE C╨ƒE╨ªC╨ÿMBO╨¢                  22060000
  2209.          CH    R0,=H'32'           CPABH╨ÿT╨¼ C ╨ƒPO╨æE╨¢OM                  22070000
  2210.          BNL   GCHR500             EC╨¢╨ÿ HE MEH╨¼╨¿E, TO O╨æ╨½╨ºH╨½╨Ö C╨ÿMBO╨¢    22080000
  2211. GCHR460  LH    R15,PACKET          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ MAKC. ╨ö╨¢╨ÿH╨ú ╨ƒAKETA         22090000
  2212.          SH    R15,=H'3'           B╨½╨ºECT╨¼ ╨ö╨¢╨ÿH╨ú ╨ú╨ƒPAB╨¢╨»╨«╨⌐╨ÿX C╨ÿMBO╨¢OB   22100000
  2213.          SH    R15,=H'2'                                                22110000
  2214.          CR    R3,R15              ╨ƒOMECT╨ÿT╨¼C╨» 2 C╨ÿMBO╨¢A ?              22120000
  2215.          BH    GCHR700             EC╨¢╨ÿ HET, B╨½╨öAT╨¼ ╨ƒAKET               22130000
  2216.          LA    R15,0(R3,R2)        ╨ùA╨ƒ╨ÿCAT╨¼ QUOTE                       22140000
  2217.          MVC   0(1,R15),QUOTE      ╨ùA╨ƒ╨ÿCAT╨¼ QUOTE                       22150000
  2218.          LA    R3,1(R3)            ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼ B ╨ƒAKETE       22160000
  2219.          IC    R14,PREF                                                 22170000
  2220.          CR    R0,R14              PREF ?                               22180000
  2221.          BE    GCHR500             EC╨¢╨ÿ ╨öA, 100 HE ╨ƒP╨ÿ╨æAB╨¢╨»T╨¼           22190000
  2222.          IC    R14,QUOTE                                                22200000
  2223.          CR    R0,R14              QUOTE ?                              22210000
  2224.          BE    GCHR500             EC╨¢╨ÿ ╨öA, 100 HE ╨ƒP╨ÿ╨æAB╨¢╨»T╨¼           22220000
  2225.          X     R0,=X'00000040'     B╨½╨ƒO╨¢H╨ÿT╨¼ ╨ñ╨úHK╨ª╨ÿ╨« CHAR               22230000
  2226. *                                                                       22240000
  2227. GCHR500  EQU   *                                                        22250000
  2228.          LH    R15,PACKET          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ MAKC. ╨ö╨¢╨ÿH╨ú ╨ƒAKETA         22260000
  2229.          SH    R15,=H'3'           B╨½╨ºECT╨¼ ╨ö╨¢╨ÿH╨ú ╨ú╨ƒPAB╨¢╨»╨«╨⌐╨ÿX C╨ÿMBO╨¢OB   22270000
  2230.          BCTR  R15,0               ECT╨¼ MECTO                           22280000
  2231.          CR    R3,R15               ╨ö╨¢╨» 1 C╨ÿMBO╨¢A ?                     22290000
  2232.          BH    GCHR700             HET                                  22300000
  2233.          STC   R0,0(R3,R2)         ╨ùA╨ƒ╨ÿCAT╨¼ C╨ÿMBO╨¢ B SDAT               22310000
  2234.          LA    R3,1(R3)            ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼ B ╨ƒAKETE       22320000
  2235.          LA    R5,1(R5)            ╨ƒEPEMECT╨ÿT╨¼ BXO╨öHO╨Ö ╨úKA╨ùATE╨¢╨¼        22330000
  2236.          BCT   R1,GCHR400          KOHE╨ª ╨ùA╨ƒ╨ÿC╨ÿ ?                       22340000
  2237.          XC    $GET$L(2),$GET$L    ╨öA                                   22350000
  2238.          TM    PGMSTAT,X'40'       TEXT ?                               22360000
  2239.          BNO   GCHR010             HET                                  22370000
  2240.          MVI   IND#CRLF,X'4D'      ╨öA                                   22380000
  2241.          B     GCHR010                                                  22390000
  2242. *                                                                       22400000
  2243. GCHR700  LA    R15,0(R5,R4)                                             22410000
  2244.          ST    R15,$FMA            ╨ùA╨ƒ╨ÿCAT╨¼ A╨öPEC HEO╨æPA╨æOT. ╨öAHH╨½X     22420000
  2245.          STH   R1,$GET$L           ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú HEO╨æPA╨æOT. ╨öAHH╨½X     22430000
  2246.          STH   R3,$SDAT$L          ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú ╨öAHH╨½X B ╨ƒAKETE       22440000
  2247.          XR    R14,R14             RC = 0                               22450000
  2248.          B     GCHRRET             ╨ÿ BO╨ùBPAT                            22460000
  2249. *                                                                       22470000
  2250. GCHR800  MVI   $STATE,C'Z'         COCTO╨»H╨ÿE EOF                        22480000
  2251.          STH   R3,$SDAT$L          ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú ╨öAHH╨½X B ╨ƒAKETE       22490000
  2252.          XR    R14,R14             RC = 0                               22500000
  2253.          B     GCHRRET             ╨ÿ BO╨ùBPAT                            22510000
  2254. GCHR820  MVI   #ERROR,E$PIO        ╨ƒOCTO╨»HHA╨» O╨¿╨ÿ╨æKA B/B                22520000
  2255.          B     GCHR850             ╨ÿ B╨½XO╨ö                              22530000
  2256. GCHR840  MVI   #ERROR,E$CICS       HE╨ƒOH╨»THA╨» O╨¿╨ÿ╨æKA CICS               22540000
  2257. GCHR850  MVI   $STATE,C'A'         COCTO╨»H╨ÿE ABORT                      22550000
  2258.          LA    R14,2               RC = 2                               22560000
  2259. GCHRRET  RETURN                                                         22570000
  2260. *********************************************************************** 22580000
  2261.          LTORG                                                          22590000
  2262.          DROP  BASE                                                     22600000
  2263. *********************************************************************** 22610000
  2264. *              ╨ºTEH╨ÿE O╨ºEPE╨öHO╨Ö ╨ùA╨ƒ╨ÿC╨ÿ ╨ÿ╨ù BX. H.╨ö.                    * 22620000
  2265. *********************************************************************** 22630000
  2266. * RETURN CODE = 0  -  OK                                              * 22640000
  2267. * RETURN CODE = 2  -  KOHE╨ª H.╨ö.                                      * 22650000
  2268. * RETURN CODE = 4  -  I/O ERROR                                       * 22660000
  2269. * RETURN CODE = 6  -  HEPAC╨ƒO╨ùHAHHA╨» ERROR                            * 22670000
  2270. *********************************************************************** 22680000
  2271. GTREC    SAVE                                                           22690000
  2272.          USING GTREC,BASE                                               22700000
  2273.          LR    BASE,R14                                                 22710000
  2274.          XC    $GET$L(2),$GET$L                                         22720000
  2275. *                                                                       22730000
  2276. GTR030   MVC   TCATDDI(4),FILEDEST                                      22740000
  2277.          DFHTD TYPE=GET,IOERROR=GTR300,QUEZERO=GTR200,NORESP=GTR050     22750000
  2278.          LA    R14,6               RC = 6                               22760000
  2279.          B     GTRRET                                                   22770000
  2280. *                                                                       22780000
  2281. GTR050   L     TDIABAR,TCATDAA                                          22790000
  2282.          TM    FILSTAT,X'C0'       INTRA ?                              22800000
  2283.          BNO   GTR070              HET                                  22810000
  2284.          LH    R2,TDIAIRL                                               22820000
  2285.          SH    R2,=H'4'            - L'RDW                              22830000
  2286.          LA    R1,TDIADBA                                               22840000
  2287.          B     GTR100                                                   22850000
  2288. *                                                                       22860000
  2289. GTR070   TM    FILSTAT,X'08'                                            22870000
  2290.          BNZ   GTR090              HE V                                 22880000
  2291.          TM    FILSTAT,X'04'                                            22890000
  2292.          BNO   GTR090              HE V                                 22900000
  2293.          LH    R2,0(TDIABAR)                                            22910000
  2294.          SH    R2,=H'4'            - L'RDW                              22920000
  2295.          LA    R1,4(TDIABAR)                                            22930000
  2296.          B     GTR100                                                   22940000
  2297. *                                                                       22950000
  2298. GTR090   LH    R2,F#REC                                                 22960000
  2299.          LR    R1,TDIABAR                                               22970000
  2300. *                                                                       22980000
  2301. GTR100   STH   R2,$GET$L           ╨ö╨¢╨ÿHA                                22990000
  2302.          ST    R1,$FMA             A╨öPEC HA╨ºA╨¢A ╨öAHH╨½X                  23000000
  2303.          XR    R14,R14             RC = 0                               23010000
  2304.          B     GTRRET                                                   23020000
  2305. GTR200   XR    R1,R1                                                    23030000
  2306.          ST    R1,$FMA                                                  23040000
  2307.          LA    R14,2               RC = 2                               23050000
  2308.          B     GTRRET                                                   23060000
  2309. GTR300   LA    R14,4               RC = 4                               23070000
  2310. GTRRET   RETURN                                                         23080000
  2311. *********************************************************************** 23090000
  2312.          LTORG                                                          23100000
  2313.          DROP  BASE                                                     23110000
  2314. *********************************************************************** 23120000
  2315. *       ╨ƒO╨ö╨ƒPO╨ôPAMMA O╨æPA╨æOTK╨ÿ ╨ùA╨ƒPOCA HA ╨ƒOC╨½╨¢K╨ú ╨ƒAKETA              * 23130000
  2316. *********************************************************************** 23140000
  2317. * RETURN CODE = 0  -  OK                                              * 23150000
  2318. * RETURN CODE = 2  -  ERROR HOST PROGRAMM  (H╨ú╨ûEH ERROR ╨ƒAKET)        * 23160000
  2319. *********************************************************************** 23170000
  2320. * ╨öAHH╨½E ╨ö╨¢╨» ╨ƒAKETA ╨ú╨ûE ╨öO╨¢╨ûH╨½ HAXO╨ö╨ÿT╨¼C╨» B TIOADBA+3 ($SMA)          * 23180000
  2321. *********************************************************************** 23190000
  2322. SPACK    SAVE                                                           23200000
  2323.          USING SPACK,BASE                                               23210000
  2324.          LR    BASE,R14                                                 23220000
  2325.          XR    R15,R15             KOHTPO╨¢╨¼HA╨» C╨úMMA                    23230000
  2326.          LH    R4,$SDAT$L          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨öAHH╨½X               23240000
  2327.          LA    R4,3(R4)            +NUM +TYPE +CHECK                    23250000
  2328.          CH    R4,PACKET           ╨ƒPOBEP╨ÿT╨¼ MAKC╨ÿMA╨¢╨¼H╨ú╨« ╨ö╨¢╨ÿH╨ú ╨öAHH╨½X  23260000
  2329.          BH    SPACK700            ERROR HOST PROGRAMM                  23270000
  2330.          L     TIOABAR,$SMA                                             23280000
  2331.          LA    R1,TIOADBA          A╨öPEC O╨æ╨¢ACT╨ÿ B╨½BO╨öA                 23290000
  2332.          XR    R5,R5                                                    23300000
  2333.          XR    R15,R15                                                  23310000
  2334. * ╨ñOPM╨ÿPOBAH╨ÿE ╨ƒAKETA                                                   23320000
  2335.          LA    R4,35               X'20' +NUM +TYPE +CHECK              23330000
  2336.          AH    R4,$SDAT$L          ╨ƒP╨ÿ╨æAB╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨öAHH╨½X               23340000
  2337. * ╨ùA╨ƒ╨ÿC╨¼ ╨ö╨¢╨ÿH╨½ ╨ƒAKETA                                                   23350000
  2338.          STC   R4,0(R5,R1)         ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú ╨ƒAKETA                23360000
  2339.          LA    R5,1(R5)                                                 23370000
  2340.          AR    R15,R4              ╨ƒP╨ÿ╨æAB╨ÿT╨¼ K KOHTPO╨¢╨¼HO╨Ö C╨úMME        23380000
  2341.          CLC   $N$OLD(2),=H'0'     CPABH╨ÿT╨¼ HOMEP ╨ƒAKETA C H╨ú╨¢EM        23390000
  2342.          BL    SPACK690            ERROR HOST PROGRAMM                  23400000
  2343.          CLC   $N$OLD(2),=H'64'    HE MO╨ûET ╨æ╨½T╨¼ ╨æO╨¢╨¼╨¿E 64              23410000
  2344.          BH    SPACK690            ERROR HOST PROGRAMM                  23420000
  2345.          LA    R4,32               X'20'                                23430000
  2346.          AH    R4,$N$OLD           ╨ƒP╨ÿ╨æAB╨ÿT╨¼ HOMEP ╨ƒAKETA               23440000
  2347. * ╨ùA╨ƒ╨ÿC╨¼ HOMEPA ╨ƒAKETA                                                  23450000
  2348.          STC   R4,0(R5,R1)         ╨ùA╨ƒ╨ÿCAT╨¼ HOMEP ╨ƒAKETA                23460000
  2349.          LA    R5,1(R5)                                                 23470000
  2350.          AR    R15,R4              ╨ƒP╨ÿ╨æAB╨ÿT╨¼ K KC                       23480000
  2351.          CLI   $S$CUR,AA           ASCII 'A', HE MO╨ûET ╨æ╨½T╨¼ MEH╨¼╨¿E      23490000
  2352.          BL    SPACK680            ERROR HOST PROGRAMM                  23500000
  2353.          CLI   $S$CUR,AZ           ASCII 'Z', ╨æO╨¢╨¼╨¿E ╨æ╨½T╨¼ HE ╨öO╨¢╨ûEH     23510000
  2354.          BH    SPACK680            ERROR HOST PROGRAMM                  23520000
  2355.          XR    R2,R2               O╨º╨ÿCT╨ÿT╨¼ ╨ö╨¢╨» $S$CUR                  23530000
  2356.          IC    R2,$S$CUR           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ T╨ÿ╨ƒ ╨ƒAKETA                 23540000
  2357.          AR    R15,R2              ╨ƒP╨ÿ╨æAB╨ÿT╨¼ K  KC                      23550000
  2358.          CLI   $R$CUR,AN           ╨ƒP╨ÿH╨»╨¢╨ÿ NAK ?                        23560000
  2359.          BE    SPACK030            ╨öA                                   23570000
  2360.          CLI   $S$CUR,AN           ╨ƒOC╨½╨¢AEM NAK ?                       23580000
  2361.          BNE   SPACK050            HET                                  23590000
  2362. SPACK030 LR    R0,R1                                                    23600000
  2363.          LH    R1,$RETRY                                                23610000
  2364.          LA    R1,1(R1)                                                 23620000
  2365.          STH   R1,$RETRY                                                23630000
  2366.          LR    R1,R0                                                    23640000
  2367. SPACK050 EQU   *                                                        23650000
  2368. * ╨ùA╨ƒ╨ÿC╨¼ T╨ÿ╨ƒA ╨ƒAKETA                                                    23660000
  2369.          STC   R2,0(R5,R1)         ╨ùA╨ƒ╨ÿCAT╨¼ T╨ÿ╨ƒ ╨ƒAKETA                  23670000
  2370.          LA    R5,1(R5)                                                 23680000
  2371.          LH    R3,$SDAT$L          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨öAHH╨½X               23690000
  2372.          LTR   R3,R3               ╨ƒPOBEP╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú                      23700000
  2373.          BZ    SPACK200            EC╨¢╨ÿ HO╨¢╨¼, O╨æPA╨æOTKA HE TPE╨æ╨úETC╨»    23710000
  2374. *                                                                       23720000
  2375. SPACK100 IC    R2,0(R5,R1)         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ O╨ºEPE╨öHO╨Ö C╨ÿMBO╨¢           23730000
  2376.          AR    R15,R2              ╨ƒP╨ÿ╨æAB╨ÿT╨¼ K KC                       23740000
  2377.          LA    R5,1(,R5)           ╨ƒEPEMECT╨ÿT╨¼ ╨ÿH╨öEKC                   23750000
  2378.          BCT   R3,SPACK100         ╨ÿ O╨æPA╨æOTAT╨¼ C╨¢E╨ö. C╨ÿMBO╨¢            23760000
  2379. *                                                                       23770000
  2380. SPACK200 ST    R15,DBLWRK          CKOPO ╨ƒOTPE╨æ╨úETC╨»                    23780000
  2381.          N     R15,=X'000000C0'    R15 MOD 192                          23790000
  2382.          M     R14,=F'1'           ╨ƒEPEHECT╨ÿ ╨ùHAKOB╨½╨Ö ╨æ╨ÿT               23800000
  2383.          D     R14,=F'64'          R15 DIV 64                           23810000
  2384.          A     R15,DBLWRK          ╨ƒP╨ÿ╨æAB╨ÿT╨¼ ╨ÿCX. ╨ùHA╨º. KC              23820000
  2385.          N     R15,=X'0000003F'    R15 MOD 64                           23830000
  2386.          LA    R15,32(,R15)        ╨ƒP╨ÿ╨æAB╨ÿT╨¼ ╨ƒPO╨æE╨¢                     23840000
  2387.          STC   R15,0(R5,R1)        ╨ùA╨ƒ╨ÿCAT╨¼ KC ╨ƒOC╨¢E ╨öAHH╨½X             23850000
  2388.          L     R14,A#TRT#SO        A╨öPEC B╨½XO╨öHO╨Ö TA╨æ╨¢╨ÿ╨ª╨½               23860000
  2389.          EX    R5,SPACK600         ╨ƒEPE╨öA╨ºA ╨æ╨ú╨öET B KO╨öE ╨öKO╨ÿ           23870000
  2390.          LA    R5,1(,R5)           ╨ƒEPEMECT╨ÿT╨¼ ╨ÿH╨öEKC (+ L'CHECK)       23880000
  2391. *                                                                       23890000
  2392.          TM    PRMSTAT,X'0C'       DEBUG OFF ?                          23900000
  2393.          BZ    SPACK300            ╨öA                                   23910000
  2394. *********DEBUG *********                                                23920000
  2395.          L     TDOABAR,$DMA                                             23930000
  2396.          MVC   TDOADBA(11),=C'SEND PACKET'                              23940000
  2397.          MVC   TDOAVRL(2),=H'15'                                        23950000
  2398.          XC    TDOAVRL+2(2),TDOAVRL+2                                   23960000
  2399.          MVC   TCATDDI(4),DBGDEST                                       23970000
  2400.          LA    R14,TDOAVRL                                              23980000
  2401.          ST    R14,TCATDAA                                              23990000
  2402.          DFHTD TYPE=PUT,NORESP=SPDB01                                   24000000
  2403.          NI    PRMSTAT,X'FF'-X'0C'  C╨æPOC╨ÿT╨¼ ╨ƒP╨ÿ╨ùHAK DEBUG              24010000
  2404.          B     SPDB03                                                   24020000
  2405. *                                                                       24030000
  2406. SPACK620 MVC   TDOADBA(0),0(R1)                                         24040000
  2407. *                                                                       24050000
  2408. SPDB01   EQU   *                                                        24060000
  2409.          LA    R2,4(R5)            +RDW                                 24070000
  2410.          STH   R2,TDOAVRL                                               24080000
  2411.          XC    TDOAVRL+2(2),TDOAVRL+2                                   24090000
  2412.          SH    R2,=H'5'            B╨½╨ºECT╨¼ 1 ╨ö╨¢╨» MVC                    24100000
  2413.          EX    R2,SPACK620         ╨ùA╨ƒ╨ÿCAT╨¼ ╨öAHH╨½E                      24110000
  2414.          LA    R14,TDOAVRL                                              24120000
  2415.          ST    R14,TCATDAA                                              24130000
  2416.          DFHTD TYPE=PUT,NORESP=SPDB03                                   24140000
  2417.          NI    PRMSTAT,X'FF'-X'0C'  C╨æPOC╨ÿT╨¼ ╨ƒP╨ÿ╨ùHAK DEBUG              24150000
  2418. SPDB03   EQU   *                                                        24160000
  2419. *********DEBUG *********                                                24170000
  2420. SPACK300 EQU   *                                                        24180000
  2421.          L     TIOABAR,$SMA                                             24190000
  2422.          ST    TIOABAR,TCTTEDA     ╨ùA╨ƒ╨ÿCAT╨¼ B TCTTE                     24200000
  2423.          STH   R5,TIOATDL          ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú TIOA                  24210000
  2424.          DFHTC TYPE=(PUT,SAVE)     B╨½BECT╨ÿ ╨ƒAKET                        24220000
  2425.          L     R14,A#TRT#SI        A╨öPEC TRT ╨ÿ╨ù ╨¢╨ÿH╨ÿ╨ÿ                   24230000
  2426.          BCTR  R5,0                                                     24240000
  2427.          EX    R5,SPACK600         BEPH╨úT╨¼ B KO╨ö ASCII                  24250000
  2428.          XR    R14,R14             RC = 0                               24260000
  2429.          B     SPRET               ╨ÿ BO╨ùBPAT                            24270000
  2430. SPACK680 MVI   #ERROR,E$HSTTYP                                          24280000
  2431.          B     SPACK750                                                 24290000
  2432. SPACK690 MVI   #ERROR,E$HSTNUM                                          24300000
  2433.          B     SPACK750                                                 24310000
  2434. SPACK700 MVI   #ERROR,E$HSTLEN     HEBEPHA╨» ╨ö╨¢╨ÿHA ╨ƒAKETA                24320000
  2435. SPACK750 MVI   $STATE,C'A'         COCTO╨»H╨ÿE ABORT                      24330000
  2436.          LA    R14,2               RC = 2                               24340000
  2437.          B     SPRET               ╨ÿ BO╨ùBPAT                            24350000
  2438. SPACK600 TR    0(0,R1),0(R14)      ╨ƒEPE╨öA╨ºA ╨æ╨ú╨öET B KO╨öE ╨öKO╨ÿ           24360000
  2439. SPRET    RETURN                                                         24370000
  2440. *********************************************************************** 24380000
  2441.          LTORG                                                          24390000
  2442.          DROP  BASE                                                     24400000
  2443. *********************************************************************** 24410000
  2444. *             ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ºTEH╨ÿ╨» ╨ƒAKETOB OT ╨ƒAPTHEPA                 * 24420000
  2445. *********************************************************************** 24430000
  2446. * RETURN CODE = 0  -  OK                                              * 24440000
  2447. * RETURN CODE = 2  -  BAD PACKET OT ╨ƒAPTHEPA (H╨ú╨ûEH NAK)              * 24450000
  2448. *********************************************************************** 24460000
  2449. RPACK    SAVE                                                           24470000
  2450.          USING RPACK,BASE                                               24480000
  2451.          LR    BASE,R14                                                 24490000
  2452. *                                                                       24500000
  2453.          L     R1,$RMA                                                  24510000
  2454.          LTR   R1,R1               ╨æ╨½╨¢╨ÿ ╨ú╨ûE ╨ƒAKET╨½ ?                    24520000
  2455.          BZ    RPACK010            HET                                  24530000
  2456.          ST    R1,TCASCSA                                               24540000
  2457.          DFHSC TYPE=FREEMAIN       OCBO╨æO╨ö╨ÿT╨¼ ╨ƒPE╨ö╨½╨ö╨ú╨⌐╨ú╨« TIOA           24550000
  2458.          XC    $RMA(4),$RMA                                             24560000
  2459. *                                                                       24570000
  2460. RPACK010 DFHTC TYPE=(GET,SAVE)     ╨º╨ÿTAT╨¼ ╨öAHH╨½E C TEPM╨ÿHA╨¢A            24580000
  2461.          L     TIOABAR,TCTTEDA                                          24590000
  2462.          ST    TIOABAR,$RMA                                             24600000
  2463.          LH    R2,TIOATDL          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú TIOA                 24610000
  2464.          LH    R1,PACKET           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ MAX ╨ö╨¢╨ÿH╨ú ╨ƒAKETA           24620000
  2465.          LA    R1,5(R1)            MAXLEN +MARK +LEN +EOL +2 HA BC╨»K╨ÿ╨Ö  24630000
  2466.          CR    R2,R1               ╨ö╨¢╨ÿHA TIOA > MAX ╨ö╨¢╨ÿH╨½ ╨ƒAKETA ?      24640000
  2467.          BH    RPACK700            ERROR PACKET LENGHT                  24650000
  2468.          LTR   R2,R2               ECT╨¼ ╨öAHH╨½E B TIOA ?                 24660000
  2469.          BZ    RPACK700            ERROR PACKET LENGHT                  24670000
  2470.          LA    R1,TIOADBA          A╨öPEC ╨ƒP╨ÿ╨¿E╨ö╨¿╨ÿX ╨öAHH╨½X               24680000
  2471. *                                                                       24690000
  2472.          TM    PRMSTAT,X'0C'       DEBUG OFF ?                          24700000
  2473.          BZ    RPACK200            ╨öA                                   24710000
  2474. *********DEBUG *********                                                24720000
  2475.          L     TDOABAR,$DMA        LOAD A╨öPECA ╨ƒAM╨»T╨ÿ DEBUG             24730000
  2476.          MVC   TDOADBA(10),=C'REC PACKET'                               24740000
  2477.          MVC   TDOAVRL(2),=H'14'                                        24750000
  2478.          XC    TDOAVRL+2(2),TDOAVRL+2                                   24760000
  2479.          MVC   TCATDDI(4),DBGDEST                                       24770000
  2480.          LA    R14,TDOAVRL                                              24780000
  2481.          ST    R14,TCATDAA                                              24790000
  2482.          DFHTD TYPE=PUT,NORESP=RPDB01                                   24800000
  2483.          NI    PRMSTAT,X'FF'-X'0C'  C╨æPOC╨ÿT╨¼ ╨ƒP╨ÿ╨ùHAK DEBUG              24810000
  2484.          B     RPDB03                                                   24820000
  2485. *                                                                       24830000
  2486. RPACK600 MVC   TDOADBA(0),0(R1)                                         24840000
  2487. *                                                                       24850000
  2488. RPDB01   EQU   *                                                        24860000
  2489.          LA    R5,4(R2)            + RDW                                24870000
  2490.          STH   R5,TDOAVRL                                               24880000
  2491.          XC    TDOAVRL+2(2),TDOAVRL+2                                   24890000
  2492.          SH    R5,=H'5'            B╨½╨ºECT╨¼ 1 ╨ö╨¢╨» MVC                    24900000
  2493.          EX    R5,RPACK600         ╨ùA╨ƒ╨ÿCAT╨¼ ╨öAHH╨½E                      24910000
  2494.          LA    R14,TDOAVRL                                              24920000
  2495.          ST    R14,TCATDAA                                              24930000
  2496.          DFHTD TYPE=PUT,NORESP=RPDB03                                   24940000
  2497.          NI    PRMSTAT,X'FF'-X'0C'  C╨æPOC╨ÿT╨¼ ╨ƒP╨ÿ╨ùHAK DEBUG              24950000
  2498. *                                                                       24960000
  2499. RPDB03   EQU   *                                                        24970000
  2500. *********DEBUG *********                                                24980000
  2501. RPACK200 L     R14,A#TRT#SI        A╨öPEC BXO╨öHO╨Ö TA╨æ╨¢╨ÿ╨ª╨½ ╨ƒEPEKO╨ö╨ÿPOBK╨ÿ  24990000
  2502.          LR    R5,R2                                                    25000000
  2503.          BCTR  R5,0                                                     25010000
  2504.          EX    R5,RPACK640                                              25020000
  2505.          XR    R2,R2               ╨ÿH╨öEKCH╨½╨Ö ╨ö╨¢╨»                        25030000
  2506.          LR    R5,R1               A╨öPEC HA╨ºA╨¢A ╨ƒAKETA                  25040000
  2507.          B     RPACK220                                                 25050000
  2508. *                                                                       25060000
  2509. RPACK640 TR    0(0,R1),0(R14)      ╨ƒEPEKO╨ö╨ÿPOBAT╨¼ B ASCII               25070000
  2510. *                                                                       25080000
  2511. RPACK210 LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ ╨ÿH╨öEKC                   25090000
  2512. RPACK220 XR    R15,R15             KOHTPO╨¢╨¼HA╨» C╨úMMA                    25100000
  2513.          LA    R5,0(R2,R1)         A╨öPEC TEK╨ú╨⌐E╨ôO C╨ÿMBO╨¢A               25110000
  2514.          CLI   0(R5),X'20'         S O H ?                              25120000
  2515.          BL    RPACK210            EC╨¢╨ÿ SOH, TO BCE HA╨ºAT╨¼ CHA╨ºA╨¢A      25130000
  2516. *                                                                       25140000
  2517.          CLI   0(R5),X'23'         ╨ö╨¢╨ÿHA ╨öO╨¢╨ûHA ╨æ╨½T╨¼ HE MEHEE 3         25150000
  2518.          BL    RPACK700            EC╨¢╨ÿ >=, TO BCE B ╨ƒOP╨»╨öKE            25160000
  2519.          IC    R15,0(,R5)          HA╨ºAT╨¼ ╨ƒOC╨ºET KC                     25170000
  2520.          LR    R5,R15              ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨ƒAKETA               25180000
  2521. *                                  ======================               25190000
  2522.          SH    R5,=H'35'           X'20' +NUM +TYPE +CHECK              25200000
  2523.          STH   R5,$RDAT$L          ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú ╨ƒP╨ÿH╨»T╨½X ╨öAHH╨½X       25210000
  2524.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ ╨ÿH╨öEKC                   25220000
  2525.          IC    R5,0(R2,R1)         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒAKETA               25230000
  2526. *                                  ======================               25240000
  2527.          XR    R0,R0               ╨ö╨¢╨» ╨ùA╨ôP╨ú╨ùK╨ÿ SOH                     25250000
  2528.          LA    R0,X'20'            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ SOH                        25260000
  2529.          CR    R5,R0               S O H ?                              25270000
  2530.          BL    RPACK210            EC╨¢╨ÿ SOH, TO BCE HA╨ºAT╨¼ CHA╨ºA╨¢A      25280000
  2531. *                                                                       25290000
  2532.          AR    R15,R5              ╨ƒP╨ÿ╨æAB╨ÿT╨¼ K KC                       25300000
  2533.          SH    R5,=H'32'           OTH╨»T╨¼ ╨ƒPO╨æE╨¢                        25310000
  2534.          STH   R5,RPACK800         ╨ùA╨ƒ╨ÿCAT╨¼ HOMEP ╨ƒAKETA                25320000
  2535.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ ╨ÿH╨öEKC                   25330000
  2536.          IC    R5,0(R2,R1)         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ T╨ÿ╨ƒ ╨ƒAKETA                 25340000
  2537. *                                  ====================                 25350000
  2538.          CR    R5,R0               S O H ?                              25360000
  2539.          BL    RPACK210            EC╨¢╨ÿ SOH, TO BCE HA╨ºAT╨¼ CHA╨ºA╨¢A      25370000
  2540. *                                                                       25380000
  2541.          AR    R15,R5              ╨ƒP╨ÿ╨æAB╨ÿT╨¼ K KC                       25390000
  2542.          STC   R5,RPACK810         ╨ùA╨ƒ╨ÿCAT╨¼ T╨ÿ╨ƒ ╨ƒAKETA                  25400000
  2543.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ ╨ÿH╨öEKC                   25410000
  2544. *              O╨æPA╨æOTKA ╨öAHH╨½X ╨ƒAKETA                                  25420000
  2545.          LA    R3,0(R2,R1)         ╨ÿH╨öEKCH╨½╨Ö ╨ö╨¢╨» RDAT                   25430000
  2546.          ST    R3,$DAT$A           COXPAH╨ÿT╨¼ A╨öPEC ╨öAHH╨½X               25440000
  2547.          LH    R4,$RDAT$L          ╨ö╨¢╨ÿHA ╨öAHH╨½X B ╨ƒAKETE                25450000
  2548.          LTR   R4,R4               ECT╨¼ ╨öAHH╨½E ?                        25460000
  2549.          BZ    RPACK320            EC╨¢╨ÿ HET, HE O╨æPA╨æAT╨½BAT╨¼            25470000
  2550. *                                                                       25480000
  2551. RPACK300 IC    R5,0(R2,R1)         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ C╨ÿMBO╨¢                     25490000
  2552.          CR    R5,R0               S O H ?                              25500000
  2553.          BL    RPACK210            EC╨¢╨ÿ SOH, TO BCE HA╨ºAT╨¼ CHA╨ºA╨¢A      25510000
  2554.          AR    R15,R5              ╨ƒP╨ÿ╨æAB╨ÿT╨¼ K KC                       25520000
  2555.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ ╨ÿH╨öEKC                   25530000
  2556.          BCT   R4,RPACK300         ╨ÿ O╨æPA╨æOTAT╨¼ C╨¢E╨ö╨ú╨«╨⌐╨ÿ╨Ö C╨ÿMBO╨¢        25540000
  2557. *                                                                       25550000
  2558. RPACK320 XR    R5,R5               O╨º╨ÿCT╨ÿT╨¼                             25560000
  2559.          IC    R5,0(R2,R1)         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ CHECK                      25570000
  2560.          CR    R5,R0               S O H ?                              25580000
  2561.          BL    RPACK210            EC╨¢╨ÿ SOH, TO BCE HA╨ºAT╨¼ CHA╨ºA╨¢A      25590000
  2562.          ST    R15,DBLWRK          CKOPO ╨ƒOTPE╨æ╨úETC╨»                    25600000
  2563.          N     R15,=X'000000C0'    R15 MOD 192                          25610000
  2564.          M     R14,=F'1'           ╨ƒEPEHECT╨ÿ ╨ùHAKOB╨½╨Ö ╨æ╨ÿT               25620000
  2565.          D     R14,=F'64'          R15 DIV 64                           25630000
  2566.          A     R15,DBLWRK          ╨ƒP╨ÿ╨æAB╨ÿT╨¼ KC                         25640000
  2567.          N     R15,=X'0000003F'    R15 MOD 64                           25650000
  2568.          LA    R15,32(,15)         ╨ƒP╨ÿ╨æAB╨ÿT╨¼ ╨ƒPO╨æE╨¢                     25660000
  2569.          CR    R15,R5              PABH╨½ KOHTPO╨¢╨¼H╨½E C╨úMM╨½              25670000
  2570.          BE    RPACK720            EC╨¢╨ÿ ╨öA, HOPMA╨¢╨¼H╨½╨Ö B╨½XO╨ö            25680000
  2571.          MVI   #ERROR,E$CHECK      O╨¿╨ÿ╨æKA B KOHTPO╨¢╨¼HO╨Ö C╨úMME           25690000
  2572.          B     RPACK710                                                 25700000
  2573. RPACK700 MVI   #ERROR,E$LENG                                            25710000
  2574. RPACK710 LA    R14,2               RC = 2                               25720000
  2575.          MVI   $R$CUR,AN           ╨ùA╨ƒ╨ÿCAT╨¼ NAK                         25730000
  2576.          B     RPACKRET                                                 25740000
  2577. RPACK800 DS    H                   HOMEP ╨ƒAKETA                         25750000
  2578. RPACK810 DS    H T╨ÿ╨ƒ ╨ƒAKETA                                             25760000
  2579. RPACK720 MVC   $N$CUR(2),RPACK800                                       25770000
  2580.          MVC   $R$CUR(1),RPACK810                                       25780000
  2581.          XR    R14,R14             RC = 0                               25790000
  2582. RPACKRET RETURN                                                         25800000
  2583. *********************************************************************** 25810000
  2584.          LTORG                                                          25820000
  2585.          DROP  BASE                                                     25830000
  2586. *********************************************************************** 25840000
  2587. *        ╨ƒO╨ö╨ƒPO╨ôPAMMA O╨æPA╨æOTK╨ÿ KOMAH╨ö╨½ RECEIVE                       * 25850000
  2588. *********************************************************************** 25860000
  2589. * RETURN CODE = 0  -  OK                                              * 25870000
  2590. *********************************************************************** 25880000
  2591. RECEIVE  SAVE                                                           25890000
  2592.          USING RECEIVE,BASE                                             25900000
  2593.          LR    BASE,R14                                                 25910000
  2594.          MVC   PACKAGE+1(18),=C'RECEIVE WAITING...'                     25920000
  2595.          MVI   PACKAGE,18                                               25930000
  2596.          CALL  WRS                 B╨½╨öAT╨¼ COO╨æ╨⌐EH╨ÿE                     25940000
  2597.          XC    $PUT$L(2),$PUT$L    TEK╨ú╨⌐A╨» ╨ƒO╨ù╨ÿ╨ª╨ÿ╨» B ╨ùA╨ƒ╨ÿC╨ÿ - 0         25950000
  2598.          XC    $RETRY(2),$RETRY    ╨º╨ÿC╨¢O ╨ƒOBTOPOB ╨ƒEPE╨öA╨º╨ÿ => 0         25960000
  2599.          XC    $N$OLD(2),$N$OLD    HOMEP ╨ƒAKETA => 0                    25970000
  2600.          MVI   $STATE,C'R'         ╨û╨öAT╨¼ SEND_INIT                      25980000
  2601. *********************************************************************** 25990000
  2602. *             OCHOBHO╨Ö ╨ª╨ÿK╨¢ O╨æPA╨æOTK╨ÿ RECEIVE                         * 26000000
  2603. *********************************************************************** 26010000
  2604. RLOOP    CLI   $STATE,C'D'         D  A T A ?                           26020000
  2605.          BNE   RLOOP1                                                   26030000
  2606.          CALL  RDATA                                                    26040000
  2607.          BRTORC RLOOP,REST=RLOOPERR                                     26050000
  2608. RLOOP1   CLI   $STATE,C'F'         FILE_HEADER ?                        26060000
  2609.          BNE   RLOOP2                                                   26070000
  2610.          CALL  RFILE                                                    26080000
  2611.          BRTORC RLOOP,REST=RLOOPERR                                     26090000
  2612. RLOOP2   CLI   $STATE,C'R'         SEND_INIT ?                          26100000
  2613.          BNE   RLOOP3                                                   26110000
  2614.          CALL  RINIT                                                    26120000
  2615.          BRTORC RLOOP,REST=RLOOPERR                                     26130000
  2616. RLOOP3   CLI   $STATE,C'C'         COMPLETE ?                           26140000
  2617.          BNE   RLOOP4                                                   26150000
  2618.          B     RECRET                                                   26160000
  2619. RLOOP4   CLI   $STATE,C'A'         ABORT ?                              26170000
  2620.          BNE   RLOOP5                                                   26180000
  2621. RLOOPERR CALL  RABORT                                                   26190000
  2622.          B     RECRET                                                   26200000
  2623. RLOOP5   MVI   #ERROR,E$STATE      HEPAC╨ƒO╨ùHAHHOE COCTO╨»H╨ÿE             26210000
  2624.          CALL  RABORT                                                   26220000
  2625. *        ╨ùABEP╨¿EH╨ÿE ╨ƒP╨ÿEMA ╨ñA╨Ö╨¢A                                *       26230000
  2626. RECRET   XR    R14,R14             H╨ú╨¢EBO╨Ö KO╨ö BO╨ùBPATA                 26240000
  2627.          RETURN                                                         26250000
  2628. *********************************************************************** 26260000
  2629.          LTORG                                                          26270000
  2630.          DROP  BASE                                                     26280000
  2631. *********************************************************************** 26290000
  2632. *              A B O R T                                              * 26300000
  2633. *********************************************************************** 26310000
  2634. * RETURN CODE = 0  -  OK                                              * 26320000
  2635. *********************************************************************** 26330000
  2636. RABORT   SAVE                                                           26340000
  2637.          USING RABORT,BASE                                              26350000
  2638.          LR    BASE,R14                                                 26360000
  2639.          CLI   #ERROR,E$ERR        O╨æ╨¢OMA╨¢C╨» ╨ƒAPTHEP ?                  26370000
  2640.          BE    RAB100              EC╨¢╨ÿ ╨öA, ╨ƒAKET HE ╨ƒOC╨½╨¢AT╨¼           26380000
  2641.          MVI   $S$CUR,AE           T╨ÿ╨ƒ ╨ƒAKETA - ERROR                   26390000
  2642.          MVC   $SDAT$L(2),=H'30'   ╨ö╨¢╨ÿHA COO╨æ╨¿EH╨ÿ╨»                      26400000
  2643.          MVC   $N$OLD(2),$N$CUR    C╨ÿHXPOH╨ÿ╨ù╨ÿPOBAT╨¼ HOMEPA ╨ƒAKETOB      26410000
  2644.          XR    R2,R2                                                    26420000
  2645.          IC    R2,#ERROR           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP O╨¿╨ÿ╨æK╨ÿ               26430000
  2646.          MH    R2,=H'30'           ╨úMHO╨û╨ÿT╨¼ HA ╨ö╨¢╨ÿH╨ú COO╨æ╨⌐EH╨ÿ╨»          26440000
  2647.          L     R3,ERRTBL#A         A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½ ERROR COO╨æ╨⌐EH╨ÿ╨Ö        26450000
  2648.          LA    R3,0(R3,R2)         ╨ƒO╨¢╨ú╨º╨ÿT╨¼ A╨öPEC COO╨æ╨⌐EH╨ÿ╨»             26460000
  2649.          L     TIOABAR,$SMA                                             26470000
  2650.          LA    R1,TIOADBA                                               26480000
  2651.          LA    R1,3(R1)                                                 26490000
  2652.          MVC   0(30,R1),0(R3)      ╨ùA╨ƒ╨ÿCAT╨¼ TEKCT COO╨æ╨⌐EH╨ÿ╨»             26500000
  2653.          L     R2,A#TRT#EA         A╨öPEC TA╨æ╨¢╨ÿ╨ª╨½ ╨ƒEPEKO╨ö╨ÿPOBK╨ÿ B ASCII  26510000
  2654.          TR    0(30,R1),0(R2)      ╨ƒEPEBECT╨ÿ B ASCII                    26520000
  2655.          CALL  SPACK                                                    26530000
  2656. RAB100   XR    R14,R14             RC = 0                               26540000
  2657.          RETURN                                                         26550000
  2658. *********************************************************************** 26560000
  2659.          LTORG                                                          26570000
  2660.          DROP  BASE                                                     26580000
  2661. *********************************************************************** 26590000
  2662. *              O╨æPA╨æOTKA SEND_INIT                                    * 26600000
  2663. *********************************************************************** 26610000
  2664. * RETURN CODE = 0  -  OK                                              * 26620000
  2665. * RETURN CODE = 2  -  ERROR (H╨ú╨ûEH ERROR ╨ƒAKET)                       * 26630000
  2666. *********************************************************************** 26640000
  2667. RINIT    SAVE                                                           26650000
  2668.          USING RINIT,BASE                                               26660000
  2669.          LR    BASE,R14                                                 26670000
  2670.          CALL  RPACK               ╨º╨ÿTAT╨¼ ╨ƒAKET OT ╨ƒAPTHEPA             26680000
  2671.          BRTORC RINIT010,REST=RINIT600                                  26690000
  2672. RINIT010 CLI   $R$CUR,AS           SEND_INIT ?                          26700000
  2673.          BE    RINIT015                                                 26710000
  2674.          CLI   $R$CUR,AE           ERROR ?                              26720000
  2675.          BE    RINIT990                                                 26730000
  2676.          BNE   RINIT600            ╨ƒOC╨¢AT╨¼ NAK                          26740000
  2677. * O╨æPA╨æOTKA ╨ƒO╨¢╨» MAXLEN                                                 26750000
  2678. RINIT015 XR    R1,R1                                                    26760000
  2679.          XR    R3,R3                                                    26770000
  2680.          L     R2,$DAT$A                                                26780000
  2681.          IC    R1,0(R3,R2)         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨ƒAKETA               26790000
  2682.          SH    R1,=H'32'           OTH╨»T╨¼ ╨ƒPO╨æE╨¢                        26800000
  2683.          LTR   R1,R1                                                    26810000
  2684.          BNZ   RINIT020                                                 26820000
  2685.          LH    R1,PACKET           ╨ùA╨ƒPO╨¿EHA ╨ö╨¢╨ÿHA ╨ƒO ╨úMO╨¢╨ºAH╨ÿ╨«         26830000
  2686.          B     RINIT030                                                 26840000
  2687. *                                                                       26850000
  2688. RINIT020 EQU   *                                                        26860000
  2689.          CH    R1,=H'94'           CPABH╨ÿT╨¼ C MAKC╨ÿMA╨¢╨¼HO╨Ö ╨ö╨¢╨ÿHO╨Ö       26870000
  2690.          BNH   RINIT030            EC╨¢╨ÿ <=, TO BCE B ╨ƒOP╨»╨öKE            26880000
  2691.          B     RINIT700            ERROR INIT PARM                      26890000
  2692. *                                                                       26900000
  2693. RINIT030 STH   R1,PACKET           ╨ùA╨ƒ╨ÿCAT╨¼ MAKC. ╨ö╨¢╨ÿH╨ú ╨ƒAKETOB         26910000
  2694.          LA    R3,4(R3)                                                 26920000
  2695. * O╨æPA╨æOTKA ╨ƒO╨¢╨» EOL                                                    26930000
  2696.          CH    R3,$RDAT$L          ECT╨¼ E╨⌐E ╨ƒAPAMETP╨½ ?                 26940000
  2697.          BNH   RINIT500            HET                                  26950000
  2698.          IC    R1,0(R3,R2)         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ EOL                        26960000
  2699.          SH    R1,=H'32'           B╨½╨ºECT╨¼ ╨ƒPO╨æE╨¢                       26970000
  2700.          CH    R1,=H'32'                                                26980000
  2701.          BNL   RINIT700                                                 26990000
  2702.          STC   R1,S#EOT            ╨ùA╨ƒ╨ÿCAT╨¼ EOL                         27000000
  2703.          LA    R3,1(R3)                                                 27010000
  2704. * O╨æPA╨æOTKA ╨ƒO╨¢╨» QUOTE                                                  27020000
  2705.          CH    R3,$RDAT$L          ECT╨¼ E╨⌐E ╨ƒAPAMETP╨½ ?                 27030000
  2706.          BNH   RINIT500            HET                                  27040000
  2707.          IC    R1,0(R3,R2)         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ QUOTE                      27050000
  2708.          CH    R1,=H'32'                                                27060000
  2709.          BNH   RINIT700            ERROR INIT PARM                      27070000
  2710.          CH    R1,=H'126'                                               27080000
  2711.          BH    RINIT700            ERROR INIT PARM                      27090000
  2712.          CH    R1,=H'62'                                                27100000
  2713.          BNH   RINIT110                                                 27110000
  2714.          CH    R1,=H'96'                                                27120000
  2715.          BL    RINIT700            ERROR INIT PARM                      27130000
  2716. RINIT110 STC   R1,QUOTE            ╨ùA╨ƒ╨ÿCAT╨¼ QUOTE                       27140000
  2717.          LA    R3,1(R3)                                                 27150000
  2718. * O╨æPA╨æOTKA ╨ƒO╨¢╨» PREF                                                   27160000
  2719.          CH    R3,$RDAT$L          ECT╨¼ E╨⌐E ╨ƒAPAMETP╨½ ?                 27170000
  2720.          BNH   RINIT500            HET                                  27180000
  2721.          LA    R1,0(R3,R2)         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ QUOTE                      27190000
  2722.          CLC   QUOTE(1),0(R1)      QUOTE = PREF ?                       27200000
  2723.          BE    RINIT700            ERROR INIT PARM                      27210000
  2724.          IC    R1,0(R3,R2)         ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ PREF                       27220000
  2725.          CH    R1,=H'32'                                                27230000
  2726.          BNH   RINIT700            ERROR INIT PARM                      27240000
  2727.          CH    R1,=H'126'                                               27250000
  2728.          BH    RINIT700            ERROR INIT PARM                      27260000
  2729.          CH    R1,=H'62'                                                27270000
  2730.          BNH   RINIT210                                                 27280000
  2731.          CH    R1,=H'96'                                                27290000
  2732.          BL    RINIT700            ERROR INIT PARM                      27300000
  2733. RINIT210 STC   R1,PREF             ╨ùA╨ƒ╨ÿCAT╨¼ PREF                        27310000
  2734.          CLI   $RDAT$L+1,7         ECT╨¼ PREF ?                          27320000
  2735.          LA    R3,1(R3)                                                 27330000
  2736. * O╨æPA╨æOTKA ╨ƒO╨¢╨» CHECK                                                  27340000
  2737.          CH    R3,$RDAT$L          ECT╨¼ E╨⌐E ╨ƒAPAMETP╨½ ?                 27350000
  2738.          BNH   RINIT500            HET                                  27360000
  2739. RINIT500 MVC   $N$OLD,$N$CUR       C╨ÿHXPOH╨ÿ╨ù╨ÿPOBAT╨¼ HOMEPA ╨ƒAKETOB      27370000
  2740.          MVI   $S$CUR,AY           T╨ÿ╨ƒ ╨ƒAKETA - ACK                     27380000
  2741.          MVC   $SDAT$L(2),=H'7'    ╨ö╨¢╨ÿHA ╨öAHH╨½X = 7                     27390000
  2742. *                                                                       27400000
  2743.          L     TIOABAR,$SMA                                             27410000
  2744.          LA    R1,TIOADBA          A╨öPEC HA╨ºA╨¢A ╨ƒAKETA                  27420000
  2745.          LA    R1,3(R1)            A╨öPEC ╨öAHH╨½X B ╨ƒAKETE                27430000
  2746. *                                                                       27440000
  2747.          LA    R15,32              ╨ƒPO╨æE╨¢ ( X'20' )                     27450000
  2748.          LH    R2,PACKET           ╨ö╨¢╨ÿHA ╨ƒP╨ÿH╨ÿMAEM╨½X ╨ƒAKETOB            27460000
  2749.          AR    R2,R15              ╨ƒP╨ÿ╨æAB╨ÿT╨¼ ╨ƒPO╨æE╨¢                     27470000
  2750. * ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú ╨ƒAKETA                                                 27480000
  2751.          STC   R2,0(R1)            ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú                       27490000
  2752.          MVC   1(3,R1),=X'282020'   TA╨ÖMA╨úT, NPAD, PADC                 27500000
  2753.          IC    R2,R#EOT            EOL                                  27510000
  2754.          AR    R2,R15              ╨ƒP╨ÿ╨æAB╨ÿT╨¼ ╨ƒPO╨æE╨¢                     27520000
  2755.          STC   R2,4(R1)                                                 27530000
  2756.          MVC   5(1,R1),QUOTE       ╨ùA╨ƒ╨ÿCAT╨¼ QUOTE                       27540000
  2757.          MVC   6(1,R1),PREF        ╨ùA╨ƒ╨ÿCAT╨¼ PREF                        27550000
  2758.          CALL  SPACK               ╨ƒOC╨¢AT╨¼ ACK                          27560000
  2759.          BRTORC RINIT550,REST=RINIT700                                  27570000
  2760. RINIT550 MVI   $STATE,C'F'         ╨ƒEPEXO╨ö B COCTO╨»H╨ÿE FILE_HEADER      27580000
  2761.          LH    R3,$N$OLD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒAKETA               27590000
  2762.          LA    R3,1(,R3)           ╨úBE╨¢╨ÿ╨º╨ÿT╨¼ HA 1                       27600000
  2763.          N     R3,=X'0000003F'     R3 MOD 63                            27610000
  2764.          STH   R3,$N$OLD           ╨ùA╨ƒ╨ÿCAT╨¼ HOMEP O╨æPATHO               27620000
  2765.          XR    R14,R14             RC = 0                               27630000
  2766.          B     RINIRET             ╨ÿ ╨û╨öAT╨¼ FILE_HEADER                  27640000
  2767. RINIT600 EQU   *                                                        27650000
  2768.          CLC   $RETRY(2),RETRY     ╨ƒPEB╨½╨¿EH ╨¢╨ÿM╨ÿT HA ╨ƒOBTOP ?           27660000
  2769.          BH    RINIT700            ╨öA                                   27670000
  2770.          MVI   $S$CUR,AN           T╨ÿ╨ƒ ╨ƒAKETA - NAK                     27680000
  2771.          XC    $SDAT$L(2),$SDAT$L  ╨ö╨¢╨ÿHA ╨öAHH╨½X = 0                     27690000
  2772.          CALL  SPACK               ╨ƒOC╨¢AT╨¼ NAK                          27700000
  2773.          XR    R14,R14             RC = 0                               27710000
  2774.          B     RINIRET             ╨ÿ ╨û╨öAT╨¼ C╨¢E╨ö. ╨ƒAKET                  27720000
  2775. RINIT700 EQU   *                                                        27730000
  2776.          MVI   $STATE,C'A'         ╨ƒEPEXO╨ö B COCTO╨»H╨ÿE ABORT            27740000
  2777.          LA    R14,2               RC = 2                               27750000
  2778.          B     RINIRET             ╨ƒOC╨¢AT╨¼ ERROR ╨ÿ ╨ùABEP╨¿╨ÿT╨¼ RECEIVE    27760000
  2779. RINIT990 MVI   #ERROR,E$ERR        ╨ƒP╨ÿ╨¿E╨¢ ERROR ╨ƒAKET                   27770000
  2780.          MVI   $STATE,C'A'         ╨ƒEPEXO╨ö B COCTO╨»H╨ÿE ABORT            27780000
  2781.          LA    R14,2               RC = 2                               27790000
  2782.          B     RINIRET             ╨ƒOC╨¢AT╨¼ ERROR ╨ÿ ╨ùABEP╨¿╨ÿT╨¼ RECEIVE    27800000
  2783. RINIRET  RETURN                                                         27810000
  2784. *********************************************************************** 27820000
  2785.          LTORG                                                          27830000
  2786.          DROP  BASE                                                     27840000
  2787. *********************************************************************** 27850000
  2788. *              O╨æPA╨æOTKA FILE_HEADER                                  * 27860000
  2789. *********************************************************************** 27870000
  2790. * RETURN CODE = 0  -  OK                                              * 27880000
  2791. * RETURN CODE = 2  -  ERROR (H╨ú╨ûEH ERROR ╨ƒAKET)                       * 27890000
  2792. *********************************************************************** 27900000
  2793. RFILE    SAVE                                                           27910000
  2794.          USING RFILE,BASE                                               27920000
  2795.          LR    BASE,R14                                                 27930000
  2796. *                                                                       27940000
  2797.          CALL  RPACK               ╨º╨ÿTAT╨¼ ╨ƒAKET OT ╨ƒAPTHEPA             27950000
  2798.          BRTORC RFILE010,REST=RFILE700                                  27960000
  2799. RFILE010 CLI   $R$CUR,AS           ╨ƒP╨ÿ╨¿E╨¢ O╨ƒ╨»T╨¼ SEND_INIT ?             27970000
  2800.          BE    RFILE100                                                 27980000
  2801.          CLI   $R$CUR,AZ           ╨ƒP╨ÿ╨¿E╨¢ EOF ?                         27990000
  2802.          BE    RFILE200                                                 28000000
  2803.          CLI   $R$CUR,AF           ╨ƒP╨ÿ╨¿E╨¢ FILE_HEADER ?                 28010000
  2804.          BE    RFILE300                                                 28020000
  2805.          CLI   $R$CUR,AB           ╨ƒP╨ÿ╨¿E╨¢ BREAK - ╨ƒAKET ?               28030000
  2806.          BE    RFILE400                                                 28040000
  2807.          CLI   $R$CUR,AE           ╨ƒP╨ÿ╨¿E╨¢ ERROR - ╨ƒAKET ?               28050000
  2808.          BE    RFILE990                                                 28060000
  2809.          B     RFILE700            ╨ƒOC╨¢AT╨¼ NAK                          28070000
  2810. *                                                                       28080000
  2811. RFILE100 CLC   $RETRY,RETRY        MO╨ûHO ╨ƒOC╨½╨¢AT╨¼ E╨⌐E ?                 28090000
  2812.          BL    RFILE150            EC╨¢╨ÿ MO╨ûHO, ╨ƒOC╨¢AT╨¼ ACK              28100000
  2813.          MVI   $STATE,C'A'         BCE, ╨¢╨ÿM╨ÿT ╨ÿC╨ºEP╨ƒAH                  28110000
  2814.          B     RFILE900            ╨ƒOC╨¢AT╨¼ ERROR ╨ƒAKET                  28120000
  2815. RFILE150 EQU   *                                                        28130000
  2816.          LH    R3,$N$OLD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒAKETA               28140000
  2817.          BCTR  R3,1                B╨½╨ºECT╨¼ 1 - ╨ƒPE╨ö╨½╨ö╨ú╨⌐╨ÿ╨Ö HOMEP         28150000
  2818.          CH    R3,$N$CUR           COB╨ƒA╨öA╨«T HOMEPA ?                   28160000
  2819.          BE    RFILE160            EC╨¢╨ÿ ╨öA, TO BCE B ╨ƒOP╨»╨öKE            28170000
  2820.          MVI   #ERROR,E$BAD        ╨ƒOTEP╨»H ╨ƒAKET                        28180000
  2821.          B     RFILE800            ╨ƒOC╨¢AT╨¼ NAK                          28190000
  2822. RFILE160 MVI   $S$CUR,AY           T╨ÿ╨ƒ ╨ƒAKETA - ACK                     28200000
  2823.          STH   R3,$N$OLD           ╨ùA╨ƒ╨ÿCAT╨¼ HOMEP ╨ƒAKETA                28210000
  2824.          MVC   $SDAT$L(2),=H'7'    ╨ö╨¢╨ÿHA ╨öAHH╨½X - 7 ╨æA╨ÖT                28220000
  2825.          CALL  SPACK               ╨ƒOC╨¢AT╨¼ ACK                          28230000
  2826.          BRTORC RFILE180,REST=RFILE900                                  28240000
  2827. RFILE180 LH    R4,$N$OLD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒAKETA               28250000
  2828.          LA    R4,1(,R4)           ╨úBE╨¢╨ÿ╨º╨ÿT╨¼ HA 1                       28260000
  2829.          STH   R4,$N$OLD           ╨ÿ ╨ùA╨ƒ╨ÿCAT╨¼ O╨æPATHO                   28270000
  2830.          XR    R14,R14             RC = 0                               28280000
  2831.          B     RFILERET            ╨ÿ ╨û╨öAT╨¼C╨¢E╨ö╨ú╨«╨⌐E╨ôO ╨ƒAKETA             28290000
  2832. *  ╨ƒP╨ÿ╨¿E╨¢ ╨ƒAKET 'Z'                                                     28300000
  2833. RFILE200 CLC   $N$OLD,$N$CUR       COB╨ƒA╨öA╨«T HOMEPA ╨ƒAKETOB ?           28310000
  2834.          BE    RFILE230            EC╨¢╨ÿ ╨öA, ╨ƒOC╨¢AT╨¼ ACK HA FILE_HEADER  28320000
  2835.          MVI   #ERROR,E$BAD        ╨ƒOTEP╨»H ╨ƒAKET                        28330000
  2836.          B     RFILE800            ╨ƒOC╨¢AT╨¼ NAK                          28340000
  2837. RFILE230 CALL  SACK                ╨ƒOC╨¢AT╨¼ ACK                          28350000
  2838.          MVI   $STATE,C'F'         ╨û╨öAT╨¼ ╨ƒP╨ÿXO╨öA ╨ƒAKETA 'F' ╨ÿ╨¢╨ÿ 'B'     28360000
  2839.          XR    R14,R14             RC = 0                               28370000
  2840.          B     RFILERET                                                 28380000
  2841. * ╨ƒP╨ÿ╨¿E╨¢ ╨ƒAKET 'F'                                                      28390000
  2842. RFILE300 CLC   $N$OLD,$N$CUR       COB╨ƒA╨öA╨«T HOMEPA ╨ƒAKETOB ?           28400000
  2843.          BE    RFILE330            EC╨¢╨ÿ ╨öA, ╨ƒOC╨¢AT╨¼ ACK HA FILE_HEADER  28410000
  2844.          MVI   #ERROR,E$BAD        ╨ƒOTEP╨»H ╨ƒAKET                        28420000
  2845.          B     RFILE800            ╨ƒOC╨¢AT╨¼ NAK                          28430000
  2846. RFILE330 CALL  SACK                ╨ƒOC╨¢AT╨¼ ACK                          28440000
  2847.          MVI   $STATE,C'D'         ╨û╨öAT╨¼ ╨ƒP╨ÿXO╨öA ╨öAHH╨½X                 28450000
  2848.          XR    R14,R14             RC = 0                               28460000
  2849.          B     RFILERET                                                 28470000
  2850. * ╨ƒP╨ÿ╨¿E╨¢ ╨ƒAKET 'B'                                                      28480000
  2851. RFILE400 CLC   $N$OLD,$N$CUR       COB╨ƒA╨öA╨«T HOMEPA ╨ƒAKETOB ?           28490000
  2852.          BE    RFILE430            EC╨¢╨ÿ ╨öA, ╨ƒOC╨¢AT╨¼ ACK HA FILE_HEADER  28500000
  2853.          MVI   #ERROR,E$BAD        ╨ƒOTEP╨»H ╨ƒAKET                        28510000
  2854.          B     RFILE800            ╨ƒOC╨¢AT╨¼ NAK                          28520000
  2855. RFILE430 CALL  SACK                ╨ƒOC╨¢AT╨¼ ACK                          28530000
  2856.          MVI   $STATE,C'C'         ╨ùABEP╨¿EH╨ÿE PA╨æOT╨½                    28540000
  2857.          XR    R14,R14             RC = 0                               28550000
  2858.          B     RFILERET                                                 28560000
  2859. *                                                                       28570000
  2860. RFILE700 CLC   $RETRY,RETRY        MO╨ûHO ╨ƒOC╨½╨¢AT╨¼ E╨⌐E ?                 28580000
  2861.          BL    RFILE800                                                 28590000
  2862.          MVI   $STATE,C'A'         BCE, ╨¢╨ÿM╨ÿT ╨ÿC╨ºEP╨ƒAH                  28600000
  2863.          B     RFILE900            ╨ƒOC╨¢AT╨¼ ERROR ╨ƒAKET                  28610000
  2864. RFILE800 MVI   $S$CUR,AN           T╨ÿ╨ƒ ╨ƒAKETA - NAK                     28620000
  2865.          XC    $SDAT$L(2),$SDAT$L  ╨ö╨¢╨ÿHA ╨öAHH╨½X = 0                     28630000
  2866.          CALL  SPACK               ╨ƒOC╨¢AT╨¼ NAK                          28640000
  2867.          BRTORC RFILE880,REST=RFILE900                                  28650000
  2868. RFILE880 XR    R14,R14             RC = 0                               28660000
  2869.          B     RFILERET            ╨ÿ ╨û╨öAT╨¼ C╨¢E╨ö. ╨ƒAKET                  28670000
  2870. RFILE900 LA    R14,2               RC = 2                               28680000
  2871.          B     RFILERET                                                 28690000
  2872. RFILE990 MVI   #ERROR,E$ERR        ╨ƒP╨ÿ╨¿E╨¢ ERROR ╨ƒAKET                   28700000
  2873.          MVI   $STATE,C'A'         ╨ƒEPEXO╨ö B COCTO╨»H╨ÿE ABORT            28710000
  2874.          LA    R14,2               RC = 2                               28720000
  2875. RFILERET RETURN                                                         28730000
  2876. *********************************************************************** 28740000
  2877.          LTORG                                                          28750000
  2878.          DROP  BASE                                                     28760000
  2879. *********************************************************************** 28770000
  2880. *              ╨ƒP╨ÿEM ╨ƒAKETOB ╨öAHH╨½X                                   * 28780000
  2881. *********************************************************************** 28790000
  2882. * RETURN CODE = 0  -  OK                                              * 28800000
  2883. * RETURN CODE = 2  -  ERROR (H╨ú╨ûEH ERROR ╨ƒAKET)                       * 28810000
  2884. *********************************************************************** 28820000
  2885. RDATA    SAVE                                                           28830000
  2886.          USING RDATA,BASE                                               28840000
  2887.          LR    BASE,R14                                                 28850000
  2888.          CALL  RPACK               C╨º╨ÿTAT╨¼ ╨ƒAKET OT ╨ƒAPTHEPA            28860000
  2889.          BRTORC RDATA010,REST=RDATA800                                  28870000
  2890. RDATA010 CLI   $R$CUR,AD           ╨ƒP╨ÿ╨¿E╨¢ ╨ƒAKET ╨öAHH╨½X ?                28880000
  2891.          BE    RDATA100                                                 28890000
  2892.          CLI   $R$CUR,AF           ╨ƒP╨ÿ╨¿E╨¢ ╨ùA╨ôO╨¢OBOK ╨ñA╨Ö╨¢A ?             28900000
  2893.          BE    RDATA200                                                 28910000
  2894.          CLI   $R$CUR,AZ           ╨ƒP╨ÿ╨¿E╨¢ EOF ?                         28920000
  2895.          BE    RDATA300                                                 28930000
  2896.          CLI   $R$CUR,AE           ╨ƒP╨ÿ╨¿E╨¢ ERROR ?                       28940000
  2897.          BE    RDATA990                                                 28950000
  2898.          B     RDATA400                                                 28960000
  2899. *                                                                       28970000
  2900. RDATA100 CLC   $N$OLD,$N$CUR       CPABH╨ÿT╨¼ HOMEPA ╨ƒAKETOB              28980000
  2901.          BNE   RDATA200            EC╨¢╨ÿ HE COB╨ƒA╨¢╨ÿ, ╨ƒOC╨¢AT╨¼ ACK HA ╨ƒPE╨ö 28990000
  2902.          CALL  PTCHR               ╨ƒO╨ö╨ƒPO╨ôPAMMA O╨æPA╨æOTK╨ÿ ╨öAHH╨½X        29000000
  2903.          BRTORC RDATA110,REST=RDATA910                                  29010000
  2904. RDATA110 CALL  SACK                ╨ƒOC╨¢AT╨¼ ACK HA ╨ƒAKET ╨öAHH╨½X          29020000
  2905.          B     RDATRET             ╨ÿ ╨û╨öAT╨¼ C╨¢E╨ö. ╨ƒAKET                  29030000
  2906. *                                                                       29040000
  2907. RDATA200 CLC   $RETRY,RETRY        MO╨ûHO ╨ƒOC╨¢AT╨¼ ╨ƒAKET ?                29050000
  2908.          BL    RDATA220            EC╨¢╨ÿ MO╨ûHO, TO ╨ƒOC╨¢AT╨¼               29060000
  2909.          MVI   $STATE,C'A'         ╨ÿC╨ºEP╨ƒAH ╨¢╨ÿM╨ÿT                       29070000
  2910.          LA    R14,8               RC = 8                               29080000
  2911.          B     RDATRET             ╨ƒPEKPAT╨ÿT╨¼ ╨ƒP╨ÿEM ╨ñA╨Ö╨¢A               29090000
  2912. RDATA220 EQU   *                                                        29100000
  2913.          LH    R4,$N$OLD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒAKETA               29110000
  2914.          BCTR  R4,0                B╨½╨ºECT╨¼ 1 - ACK HA ╨ƒPE╨ö. ╨ƒAKET       29120000
  2915.          N     R4,=X'0000003F'     $N$OLD MOD 64                        29130000
  2916.          CH    R4,$N$CUR           TE╨ƒEP╨¼ COB╨ƒA╨¢╨ÿ HOMEPA ?              29140000
  2917.          BE    RDATA240            EC╨¢╨ÿ ╨öA, ╨ƒOC╨¢AT╨¼ ACK                 29150000
  2918.          MVI   #ERROR,E$BAD        ╨ƒOTEP╨»H ╨ƒAKET                        29160000
  2919.          B     RDATA800            ╨ƒOC╨¢AT╨¼ NAK                          29170000
  2920. RDATA240 STH   R4,$N$OLD           ╨ùA╨ƒ╨ÿCAT╨¼ HOMEP ╨ƒAKETA                29180000
  2921.          CALL  SACK                ╨ƒOC╨¢AT╨¼ ACK                          29190000
  2922.          B     RDATRET             ╨ÿ ╨û╨öAT╨¼, ╨ºTO ╨ƒO╨¢╨ú╨º╨ÿ╨¢OC╨¼              29200000
  2923. *                                                                       29210000
  2924. RDATA300 CLC   $N$OLD,$N$CUR       COB╨ƒA╨öA╨«T HOMEPA ╨ƒAKETOB ?           29220000
  2925.          BE    RDATA320            EC╨¢╨ÿ ╨öA, ╨ƒOC╨¢AT╨¼ ACK HA EOF          29230000
  2926.          MVI   #ERROR,E$BAD        ╨ƒOTEP╨»H ╨ƒAKET                        29240000
  2927.          B     RDATA800            ╨ƒOC╨¢AT╨¼ HAK HA EOF                   29250000
  2928. RDATA320 LH    R15,$PUT$L          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨ƒOC╨¢E╨öHE╨Ö ╨ùA╨ƒ╨ÿC╨ÿ     29260000
  2929.          LTR   R15,R15             ECT╨¼ ╨öAHH╨½E ?                        29270000
  2930.          BZ    RDATA340            EC╨¢╨ÿ HET, HE╨ºE╨ôO B╨½BO╨ö╨ÿT╨¼            29280000
  2931.          STH   R15,$WR$L           ╨ö╨¢╨ÿHA ╨ƒOC╨¢E╨öHE╨Ö ╨ùA╨ƒ╨ÿC╨ÿ               29290000
  2932.          CALL  WRITEX              B╨½BECT╨ÿ ╨ùA╨ƒ╨ÿC╨¼ B ╨ñA╨Ö╨¢                29300000
  2933.          LTR   R14,R14                                                  29310000
  2934.          BNZ   RDATA900                                                 29320000
  2935. RDATA340 CALL  SACK                ╨ƒOC╨¢AT╨¼ ACK HA EOF                   29330000
  2936.          MVI   $STATE,C'F'         ╨û╨öAT╨¼ BREAK ╨ÿ╨¢╨ÿ FILE_HEADER          29340000
  2937.          XR    R14,R14             RC = 0                               29350000
  2938.          B     RDATRET             ╨ÿ ╨ùA C╨¢E╨ö╨ú╨«╨⌐╨ÿM ╨ƒAKETOM               29360000
  2939. *                                                                       29370000
  2940. RDATA400 EQU   *                                                        29380000
  2941.          CLC   $RETRY,RETRY        ╨ƒPEB╨½╨¿EH ╨¢╨ÿM╨ÿT HA ╨ƒOBTOP ?           29390000
  2942.          BL    RDATA420            HET                                  29400000
  2943.          MVI   $STATE,C'A'                                              29410000
  2944.          LA    R14,8               RC = 8                               29420000
  2945.          B     RDATRET                                                  29430000
  2946. RDATA420 CLI   $R$CUR,AN           ╨ƒP╨ÿ╨¿E╨¢ NAK ?                         29440000
  2947.          BE    RDATA800            EC╨¢╨ÿ ╨öA, OTBET╨ÿT╨¼ NAK'OM             29450000
  2948.          MVI   $STATE,C'A'         KOH╨º╨ÿT╨¼ ╨ƒP╨ÿEM ╨ñA╨Ö╨¢A                  29460000
  2949.          MVI   #ERROR,E$TYPE       HEBEPH╨½╨Ö T╨ÿ╨ƒ ╨ƒAKETA                  29470000
  2950.          B     RDATRET             ╨ÿ ╨ùABEP╨¿╨ÿT╨¼                          29480000
  2951. RDATA800 MVI   $S$CUR,AN           T╨ÿ╨ƒ ╨ƒAKETA - NAK                     29490000
  2952.          XC    $SDAT$L(2),$SDAT$L  ╨ö╨¢╨ÿHA ╨öAHH╨½X = 0                     29500000
  2953.          CALL  SPACK               ╨ƒOC╨¢AT╨¼ NAK                          29510000
  2954.          XR    R14,R14             RC = 0                               29520000
  2955.          B     RDATRET                                                  29530000
  2956. RDATA900 MVI   $STATE,C'A'         HE╨ÿC╨ƒPAB╨ÿM╨½E O╨¿╨ÿ╨æK╨ÿ                  29540000
  2957.          LA    R14,2               RC = 2                               29550000
  2958.          B     RDATRET                                                  29560000
  2959. RDATA910 EQU   *                                                        29570000
  2960.          MVI   $STATE,C'A'         ╨ƒEPEXO╨ö B COCTO╨»H╨ÿE ABORT            29580000
  2961.          LA    R14,2               RC = 2                               29590000
  2962.          B     RDATRET                                                  29600000
  2963. RDATA990 MVI   #ERROR,E$ERR        ╨ƒP╨ÿ╨¿E╨¢ ERROR ╨ƒAKET                   29610000
  2964.          MVI   $STATE,C'A'         ╨ƒEPEXO╨ö B COCTO╨»H╨ÿE ABORT            29620000
  2965.          LA    R14,2               RC = 2                               29630000
  2966. RDATRET  RETURN                                                         29640000
  2967. *********************************************************************** 29650000
  2968.          LTORG                                                          29660000
  2969.          DROP  BASE                                                     29670000
  2970. *********************************************************************** 29680000
  2971. *              ╨ƒO╨ö╨ƒPO╨ôPAMMA ╨ƒOC╨½╨¢K╨ÿ ACK                               * 29690000
  2972. *********************************************************************** 29700000
  2973. * RETURN CODE = 0  -  OK                                              * 29710000
  2974. * RETURN CODE = 2  -  ERROR (H╨ú╨ûEH ERROR ╨ƒAKET)                       * 29720000
  2975. *********************************************************************** 29730000
  2976. SACK     SAVE                                                           29740000
  2977.          USING SACK,BASE                                                29750000
  2978.          LR    BASE,R14                                                 29760000
  2979.          MVI   $S$CUR,AY           T╨ÿ╨ƒ ╨ƒAKETA - ACK                     29770000
  2980.          XC    $SDAT$L(2),$SDAT$L  ╨ƒAKET ╨æE╨ù ╨öAHH╨½X                     29780000
  2981.          CALL  SPACK               ╨ƒOC╨¢AT╨¼ ╨ƒAKET                        29790000
  2982.          BRTORC SACK010,REST=SACKERR                                    29800000
  2983. SACK010  LH    R4,$N$OLD           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ HOMEP ╨ƒOC╨¢AH. ╨ƒAKETA       29810000
  2984.          LA    R4,1(,R4)           ╨úBE╨¢╨ÿ╨º╨ÿT╨¼ HA 1                       29820000
  2985.          N     R4,=X'0000003F'     $N$OLD MOD 64                        29830000
  2986.          STH   R4,$N$OLD           ╨ùA╨ƒ╨ÿCAT╨¼ HOMEP  O╨æPATHO              29840000
  2987.          XR    R14,R14             RC = 0                               29850000
  2988.          B     SACKRET                                                  29860000
  2989. SACKERR  LA    R14,2               RC = 2                               29870000
  2990. SACKRET  RETURN                                                         29880000
  2991. *********************************************************************** 29890000
  2992.          LTORG                                                          29900000
  2993.          DROP  BASE                                                     29910000
  2994. *********************************************************************** 29920000
  2995. *           ╨ƒO╨ö╨ƒPO╨ôPAMMA O╨æPA╨æOTK╨ÿ ╨ƒP╨ÿ╨¿E╨ö╨¿╨ÿX B ╨ƒAKETE ╨öAHH╨½X          * 29930000
  2996. *********************************************************************** 29940000
  2997. * RETURN CODE = 0  -  OK                                              * 29950000
  2998. * RETURN CODE = 2  -  ERROR WRITE (H╨ú╨ûEH ERROR ╨ƒAKET)                 * 29960000
  2999. *********************************************************************** 29970000
  3000. PTCHR    SAVE                                                           29980000
  3001.          USING PTCHR,BASE                                               29990000
  3002.          LR    BASE,R14                                                 30000000
  3003.          XR    R0,R0                                                    30010000
  3004.          IC    R0,QUOTE            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ QUOTE                      30020000
  3005.          XR    R1,R1                                                    30030000
  3006.          IC    R1,PREF                                                  30040000
  3007.          L     R2,$DAT$A           A╨öPEC IN DATA                        30050000
  3008.          LH    R3,$RDAT$L          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú IN DATA              30060000
  3009.          LH    R4,$PUT$L           CME╨⌐EH╨ÿE/╨ö╨¢╨ÿHA OUT DATA              30070000
  3010.          L     TDOABAR,$FMA        A╨öPEC OUT DATA                       30080000
  3011.          LA    R5,TDOADBA          A╨öPEC OUT DATA                       30090000
  3012. *                                                                       30100000
  3013. PTC#010  EQU   *                                                        30110000
  3014.          LTR   R3,R3               ECT╨¼ ╨öAHH╨½E ?                        30120000
  3015.          BNZ   MOR                 EC╨¢╨ÿ ECT╨¼, O╨æPA╨æOTAT╨¼                30130000
  3016.          STH   R4,$PUT$L                                                30140000
  3017.          XR    R14,R14             RC = 0                               30150000
  3018.          B     PTCRET                                                   30160000
  3019. *                                                                       30170000
  3020. MOR      EQU   *                                                        30180000
  3021.          LH    R15,F#REC           ╨ö╨¢╨ÿHA ╨ùA╨ƒ╨ÿC╨ÿ ╨ñA╨Ö╨¢A                   30190000
  3022.          TM    FILSTAT,X'08'                                            30200000
  3023.          BNZ   PTC#510             HE V                                 30210000
  3024.          TM    FILSTAT,X'04'                                            30220000
  3025.          BNO   PTC#510             HE V                                 30230000
  3026.          SH    R15,=H'4'                                                30240000
  3027. PTC#510  EQU   *                                                        30250000
  3028.          CR    R4,R15              ECT╨¼ MECTO B ╨æ╨ú╨ñEPE ╨ö╨¢╨» 1 C╨ÿMB. ?    30260000
  3029.          BNL   PTC#600             HET                                  30270000
  3030.          XR    R14,R14             ╨ö╨¢╨» ╨ùA╨ôP╨ú╨ùK╨ÿ O╨ºEPE╨öHO╨ôO C╨ÿMBO╨¢A      30280000
  3031.          IC    R14,0(R2)           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ O╨ºEPE╨öHO╨Ö C╨ÿMBO╨¢           30290000
  3032.          TM    PGMSTAT,X'20'       BE╨öETC╨» ╨ƒPE╨ñ╨ÿKCA╨ª╨ÿ╨» 8-╨ôO ╨æ╨ÿTA ?      30300000
  3033.          BZ    PTC#130             EC╨¢╨ÿ HET, HE ╨ƒPOBEP╨»T╨¼               30310000
  3034. *                                                                       30320000
  3035.          CR    R14,R1              ╨ƒO╨¢╨ú╨ºEH PREF ?                       30330000
  3036.          BNE   PTC#130             EC╨¢╨ÿ HET, ╨ƒPOBEP╨»T╨¼ ╨öA╨¢╨¼╨¿E           30340000
  3037. *              ╨ƒO╨¢╨ú╨ºEH ╨ƒPE╨ñ╨ÿKC BOC╨¼MO╨ôO ╨æ╨ÿTA                            30350000
  3038.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼                30360000
  3039.          BCTR  R3,0                B╨½╨ºECT╨¼ 1 ╨ÿ╨ù C╨ºET╨º╨ÿKA                30370000
  3040.          IC    R14,0(R2)           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ C╨ÿMBO╨¢                     30380000
  3041.          CR    R14,R0              PREF QUOTE ?                         30390000
  3042.          BE    PTC#110             EC╨¢╨ÿ ╨öA, B╨½CTAB╨ÿT╨¼ HA C╨¢E╨ö.          30400000
  3043.          O     R14,=X'00000080'    B╨½CTAB╨ÿT╨¼ 8-O╨Ö ╨æ╨ÿT                   30410000
  3044.          B     PTC#500             ╨ùA╨ƒ╨ÿCAT╨¼ C╨ÿMBO╨¢                      30420000
  3045. *                                                                       30430000
  3046. PTC#110  EQU   *                                                        30440000
  3047.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼                30450000
  3048.          BCTR  R3,0                B╨½╨ºECT╨¼ 1 ╨ÿ╨ù C╨ºET╨º╨ÿKA                30460000
  3049.          IC    R14,0(R2)           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ C╨ÿMBO╨¢                     30470000
  3050.          CR    R14,R0              QUOTE ?                              30480000
  3051.          BE    PTC#120                                                  30490000
  3052.          CR    R14,R1              PREF ?                               30500000
  3053.          BE    PTC#120                                                  30510000
  3054.          X     R14,=X'00000040'    CTL(R14)                             30520000
  3055. PTC#120  O     R14,=X'00000080'                                         30530000
  3056.          B     PTC#500                                                  30540000
  3057. *                                                                       30550000
  3058. PTC#130  CR    R14,R0              QUOTE ?                              30560000
  3059.          BNE   PTC#500             EC╨¢╨ÿ HET, O╨æ╨½╨ºH╨½╨Ö C╨ÿMBO╨¢             30570000
  3060.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼ HA C╨¢E╨ö. C╨ÿMB. 30580000
  3061.          BCTR  R3,0                B╨½╨ºECT╨¼ E╨⌐E 1 ╨ÿ╨ù C╨ºET╨º╨ÿKA            30590000
  3062.          IC    R14,0(R2)           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ C╨ƒE╨ªC╨ÿMBO╨¢                 30600000
  3063.          TM    PGMSTAT,X'40'       ╨ÿ╨öET ╨ƒP╨ÿEM TEXT ╨ñA╨Ö╨¢A ?              30610000
  3064.          BZ    PTC#360             HET. HE ╨ÿCKAT╨¼ CR LF                 30620000
  3065. *                                                                       30630000
  3066.          C     R14,=X'0000004D'    C R  ?                               30640000
  3067.          BNE   PTC#200             EC╨¢╨ÿ HET, ╨ƒPOBEP╨ÿT╨¼ L F              30650000
  3068.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ BXO╨öHO╨Ö ╨úKA╨ùATE╨¢╨¼        30660000
  3069.          BCTR  R3,0                B╨½╨ºECT╨¼ E╨⌐E 1 ╨ÿ╨ù C╨ºET╨º╨ÿKA            30670000
  3070.          B     PTC#250             ╨ÿ B╨½BECT╨ÿ ╨ùA╨ƒ╨ÿC╨¼                     30680000
  3071. *                                                                       30690000
  3072. PTC#200  C     R14,=X'0000004A'    L F   ?                              30700000
  3073.          BNE   PTC#360             EC╨¢╨ÿ HET, ╨ƒPOBEP╨ÿT╨¼ QUOTE            30710000
  3074.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ BXO╨öHO╨Ö ╨úKA╨ùATE╨¢╨¼        30720000
  3075.          BCTR  R3,0                B╨½╨ºECT╨¼ E╨⌐E 1 ╨ÿ╨ù C╨ºET╨º╨ÿKA            30730000
  3076.          B     PTC#010                                                  30740000
  3077. *                                                                       30750000
  3078. PTC#250  EQU   *                                                        30760000
  3079.          TM    PGMSTAT,X'40'       ╨ÿ╨öET ╨ƒP╨ÿEM TEXT ╨ñA╨Ö╨¢A ?              30770000
  3080.          BZ    PTC#320             HET. HE ╨ƒEPEKO╨ö╨ÿPOBAT╨¼               30780000
  3081. *                                                                       30790000
  3082.          LTR   R4,R4               ECT╨¼ ╨öAHH╨½E B ╨ùA╨ƒ╨ÿC╨ÿ ?               30800000
  3083.          BZ    PTC#320             EC╨¢╨ÿ HET, HE ╨ƒEPEKO╨ö╨ÿPOBAT╨¼          30810000
  3084. *                                                                       30820000
  3085.          L     R14,A#TRT#AE                                             30830000
  3086.          LR    R15,R5              COXPAH╨ÿT╨¼ PE╨ô╨ÿCTP                    30840000
  3087.          LR    R0,R4               COXPAH╨ÿT╨¼ PE╨ô╨ÿCTP                    30850000
  3088. *                                                                       30860000
  3089. PTC#280  CH    R4,=H'256'                                               30870000
  3090.          BNH   PTC#300                                                  30880000
  3091.          TR    0(256,R5),0(R14)    ╨ƒEPEBECT╨ÿ B ╨öKO╨ÿ                     30890000
  3092.          SH    R4,=H'256'                                               30900000
  3093.          LA    R5,256(R5)                                               30910000
  3094.          B     PTC#280                                                  30920000
  3095. *                                                                       30930000
  3096. PTC#800  TR    0(0,R5),0(R14)      ╨ƒEPEBECT╨ÿ B ╨öKO╨ÿ                     30940000
  3097. *                                                                       30950000
  3098. PTC#300  BCTR  R4,0                ╨ö╨¢╨» TR                               30960000
  3099.          EX    R4,PTC#800                                               30970000
  3100.          LR    R5,R15              BOCCTAHOB╨ÿT╨¼ PE╨ô╨ÿCTP                 30980000
  3101.          LR    R4,R0               BOCCTAHOB╨ÿT╨¼ PE╨ô╨ÿCTP                 30990000
  3102.          XR    R0,R0                                                    31000000
  3103.          IC    R0,QUOTE            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ QUOTE                      31010000
  3104. *                                                                       31020000
  3105. PTC#320  XC    $PUT$L(2),$PUT$L    ╨ùA╨ƒ╨ÿC╨¼ ╨ƒ╨úCTA╨»                        31030000
  3106.          STH   R4,$WR$L                                                 31040000
  3107.          CALL  WRITEX              B╨½BECT╨ÿ ╨ùA╨ƒ╨ÿC╨¼ B ╨æ╨¢OK                31050000
  3108.          L     TDOABAR,$FMA        BOCCTAHOB╨ÿT╨¼ A╨öPEC OUT DATA          31060000
  3109.          LA    R5,TDOADBA          A╨öPEC OUT DATA                       31070000
  3110.          LTR   R14,R14             OK ?                                 31080000
  3111.          BZ    PTC#340             ╨öA                                   31090000
  3112.          LA    R14,2               RC = 2                               31100000
  3113.          B     PTCRET                                                   31110000
  3114. *                                                                       31120000
  3115. PTC#340  EQU   *                                                        31130000
  3116.          XR    R4,R4               C╨æPOC╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨ùA╨ƒ╨ÿC╨ÿ                31140000
  3117.          B     PTC#010             ╨ÿ ╨ƒPOBEP╨»T╨¼ C╨¢E╨ö╨ú╨«╨⌐╨ÿ╨Ö C╨ÿMBO╨¢         31150000
  3118. *                                                                       31160000
  3119. PTC#360  EQU   *                                                        31170000
  3120.          CR    R14,R0              QUOTE ?                              31180000
  3121.          BE    PTC#500                                                  31190000
  3122.          TM    PGMSTAT,X'20'       BE╨öETC╨» ╨ƒPE╨ñ╨ÿKCA╨ª╨ÿ╨» 8-╨ôO ╨æ╨ÿTA ?      31200000
  3123.          BZ    PTC#380             HET                                  31210000
  3124.          CR    R14,R1              PREF ?                               31220000
  3125.          BE    PTC#500                                                  31230000
  3126. PTC#380  X     R14,=X'00000040'    CTL(R14)                             31240000
  3127. *                                                                       31250000
  3128. PTC#500  EQU   *                                                        31260000
  3129.          STC   R14,0(R5,R4)        ╨ùA╨ƒ╨ÿCAT╨¼ C╨ÿMBO╨¢                      31270000
  3130.          LA    R4,1(,R4)           ╨ƒEPEMECT╨ÿT╨¼ B╨½XO╨öHO╨Ö ╨ÿH╨öEKC          31280000
  3131.          LA    R2,1(,R2)           A╨öPEC C╨¢E╨ö. C╨ÿMBO╨¢A IN DATA          31290000
  3132.          BCT   R3,PTC#010          ╨ƒEPEXO╨ö EC╨¢╨ÿ O╨æPA╨æOTAH HE BEC╨¼ ╨ƒAKET 31300000
  3133.          B     PTC#700                                                  31310000
  3134. * O╨æPA╨æOTKA ╨ùA╨ƒO╨¢HEHHO╨ôO OUT ╨æ╨ú╨ñEPA                                     31320000
  3135. PTC#600  EQU   *                                                        31330000
  3136.          TM    PGMSTAT,X'40'       ╨ÿ╨öET ╨ƒP╨ÿEM TEXT ╨ñA╨Ö╨¢A ?              31340000
  3137.          BZ    PTC#650             HET                                  31350000
  3138. * O╨æPA╨æOTKA ╨ùA╨ƒO╨¢HEHHO╨ôO OUT ╨æ╨ú╨ñEPA                                     31360000
  3139. * B TEKCTOBOM PE╨û╨ÿME                                                    31370000
  3140. PTC#620  XR    R14,R14             ╨ö╨¢╨» ╨ùA╨ôP╨ú╨ùK╨ÿ O╨ºEPE╨öHO╨ôO C╨ÿMBO╨¢A      31380000
  3141.          IC    R14,0(R2)           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ O╨ºEPE╨öHO╨Ö C╨ÿMBO╨¢           31390000
  3142.          CR    R14,R0              QUOTE ?                              31400000
  3143.          BNE   PTC#640             HET - ERROR                          31410000
  3144.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ ╨úKA╨ùATE╨¢╨¼ HA C╨¢E╨ö. C╨ÿMB. 31420000
  3145.          BCTR  R3,0                B╨½╨ºECT╨¼ E╨⌐E 1 ╨ÿ╨ù C╨ºET╨º╨ÿKA            31430000
  3146.          IC    R14,0(R2)           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ C╨ƒE╨ªC╨ÿMBO╨¢                 31440000
  3147. *                                                                       31450000
  3148.          C     R14,=X'0000004D'    C R  ?                               31460000
  3149.          BNE   PTC#630             EC╨¢╨ÿ HET, ╨ƒPOBEP╨ÿT╨¼ L F              31470000
  3150.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ BXO╨öHO╨Ö ╨úKA╨ùATE╨¢╨¼        31480000
  3151.          BCTR  R3,0                B╨½╨ºECT╨¼ E╨⌐E 1 ╨ÿ╨ù C╨ºET╨º╨ÿKA            31490000
  3152.          B     PTC#250             ╨ÿ B╨½BECT╨ÿ ╨ùA╨ƒ╨ÿC╨¼                     31500000
  3153. *                                                                       31510000
  3154. PTC#630  C     R14,=X'0000004A'    L F   ?                              31520000
  3155.          BNE   PTC#640             EC╨¢╨ÿ HET, ERROR                      31530000
  3156.          LA    R2,1(,R2)           ╨ƒEPEMECT╨ÿT╨¼ BXO╨öHO╨Ö ╨úKA╨ùATE╨¢╨¼        31540000
  3157.          BCT   R3,PTC#620          ╨ƒEPEXO╨ö EC╨¢╨ÿ O╨æPA╨æOTAH HE BEC╨¼ ╨ƒAKET 31550000
  3158.          B     PTC#700                                                  31560000
  3159. *                                                                       31570000
  3160. PTC#640  MVI   #ERROR,E$TRUNC                                           31580000
  3161.          LA    R14,2               RC = 2                               31590000
  3162.          B     PTCRET                                                   31600000
  3163. * O╨æPA╨æOTKA ╨ùA╨ƒO╨¢HEHHO╨ôO OUT ╨æ╨ú╨ñEPA                                     31610000
  3164. * B PE╨û╨ÿME BINARY                                                       31620000
  3165. PTC#650  XC    $PUT$L(2),$PUT$L    ╨ùA╨ƒ╨ÿC╨¼ ╨ƒ╨úCTA╨»                        31630000
  3166.          STH   R4,$WR$L                                                 31640000
  3167.          CALL  WRITEX              B╨½BECT╨ÿ ╨ùA╨ƒ╨ÿC╨¼                       31650000
  3168.          L     TDOABAR,$FMA        BOCCTAHOB╨ÿT╨¼ A╨öPEC OUT DATA          31660000
  3169.          LA    R5,TDOADBA          A╨öPEC OUT DATA                       31670000
  3170.          XR    R4,R4               C╨æPOC╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú ╨ùA╨ƒ╨ÿC╨ÿ                31680001
  3171.          LTR   R14,R14             OK ?                                 31690000
  3172.          BZ    PTC#010             ╨öA                                   31700001
  3173.          LA    R14,2               RC = 2                               31710000
  3174.          B     PTCRET                                                   31720000
  3175. *                                                                       31730000
  3176. * KOHE╨ª O╨æPA╨æOTK╨ÿ ╨ùA╨ƒO╨¢HEHHO╨ôO ╨æ╨ú╨ñEPA                                   31740000
  3177. *                                                                       31750001
  3178. PTC#700  STH   R4,$PUT$L                                                31760000
  3179.          XR    R14,R14             RC = 0                               31770000
  3180.          B     PTCRET                                                   31780000
  3181. *                                                                       31790000
  3182. PTCRET   RETURN                                                         31800000
  3183. *********************************************************************** 31810000
  3184.          LTORG                                                          31820000
  3185.          DROP  BASE                                                     31830000
  3186. *********************************************************************** 31840000
  3187. *              ╨ƒO╨ö╨ƒPO╨ôPAMMA B╨½BO╨öA ╨öAHH╨½X HA ╨ö╨ÿCK                     * 31850000
  3188. *********************************************************************** 31860000
  3189. * RETURN CODE = 0  -  OK                                              * 31870000
  3190. * RETURN CODE = 2  -  ERROR                                           * 31880000
  3191. * RETURN CODE = 4  -  HEPAC╨ƒO╨ùHAHHA╨» O╨¿╨ÿ╨æKA B╨½BO╨öA                    * 31890000
  3192. *********************************************************************** 31900000
  3193. WRITEX   SAVE                                                           31910000
  3194.          USING WRITEX,BASE         ╨úCTAHOB╨ÿT╨¼ A╨öPECA╨ª╨ÿ╨«                 31920000
  3195.          LR    BASE,R14            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨æA╨ùOB╨½╨Ö PE╨ô╨ÿCTP            31930000
  3196.          L     TDOABAR,$FMA                                             31940000
  3197.          LH    R3,$WR$L            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú B╨½BO╨ö╨ÿMO╨Ö ╨ùA╨ƒ╨ÿC╨ÿ     31950000
  3198.          LTR   R3,R3               ╨ö╨¢╨ÿHA = 0 ?                          31960000
  3199.          BNZ   WRT000              HET                                  31970000
  3200.          LA    R3,1                                                     31980000
  3201.          LA    R14,64              ╨ƒPO╨æE╨¢ B KO╨öE EBCDIC                 31990000
  3202.          STC   R14,TDOADBA                                              32000000
  3203. *                                                                       32010000
  3204. WRT000   EQU   *                                                        32020000
  3205.          TM    FILSTAT,X'08'                                            32030000
  3206.          BNZ   WRT012              HE V                                 32040000
  3207.          TM    FILSTAT,X'04'                                            32050000
  3208.          BNO   WRT012              HE V                                 32060000
  3209. *                                                                       32070000
  3210.          LA    R3,4(R3)            ╨ö╨¢╨ÿHA ╨öAHH╨½X + ╨ö╨¢╨ÿHA RDW             32080000
  3211.          CH    R3,F#REC            ╨ö╨¢╨ÿHA CTPOK╨ÿ < ╨ö╨¢╨ÿH╨½ OUT ╨ùA╨ƒ╨ÿC╨ÿ ?    32090000
  3212.          BL    WRT010              ╨öA                                   32100000
  3213.          LH    R3,F#REC                                                 32110000
  3214.          SH    R3,=H'4'            ╨ö╨¢╨ÿHA ╨öAHH╨½X ╨æE╨ù RDW                 32120000
  3215.          B     WRT020                                                   32130000
  3216. WRT010   LA    R14,=F'0'                                                32140000
  3217.          SH    R3,=H'4'            ╨ö╨¢╨ÿHA ╨öAHH╨½X ╨æE╨ù RDW                 32150000
  3218.          ST    R3,0(R14)                                                32160000
  3219.          LA    R15,64              ╨ƒPO╨æE╨¢ B KO╨öE EBCDIC                 32170000
  3220.          STC   R15,0(R14)                                               32180000
  3221.          L     R3,0(R14)           ╨ö╨¢╨ÿHA ╨ÿ C╨ÿMBO╨¢ ╨ùA╨ƒO╨¢H╨ÿTE╨¢╨¼           32190000
  3222.          B     WRT020                                                   32200000
  3223. *                                                                       32210000
  3224. WRT012   CH    R3,F#REC            ╨ö╨¢╨ÿHA CTPOK╨ÿ < ╨ö╨¢╨ÿH╨½ OUT ╨ùA╨ƒ╨ÿC╨ÿ ?    32220000
  3225.          BL    WRT014              ╨öA                                   32230000
  3226.          LH    R3,F#REC                                                 32240000
  3227.          B     WRT020                                                   32250000
  3228. WRT014   LA    R14,=F'0'           ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC C╨¢OBA                32260000
  3229.          ST    R3,0(R14)           ╨ùA╨ƒ╨ÿCAT╨¼ B HE╨ôO ╨ö╨¢╨ÿH╨ú                32270000
  3230.          LA    R15,64              ╨ƒPO╨æE╨¢ B KO╨öE EBCDIC                 32280000
  3231.          STC   R15,0(R14)          ╨ùA╨ƒ╨ÿCAT╨¼ ╨ƒPO╨æE╨¢ B CTAP╨¿. ╨æA╨ÖT C╨¢OBA  32290000
  3232.          L     R3,0(R14)           ╨ö╨¢╨ÿHA ╨ÿ C╨ÿMBO╨¢ ╨ùA╨ƒO╨¢H╨ÿTE╨¢╨¼           32300000
  3233. *                                                                       32310000
  3234. WRT020   LA    R2,TDOADBA          A╨öPEC ╨æ╨ú╨ñEPA PAC╨ƒAKOBK╨ÿ              32320000
  3235.          LA    R4,TDOAVRL          A╨öPEC ╨æ╨ú╨ñEPA B╨½BO╨öA          (!)     32330000
  3236.          LH    R5,F#REC            ╨ö╨¢╨ÿHA ╨æ╨ú╨ñEPA B╨½BO╨öA                  32340000
  3237.          TM    FILSTAT,X'08'                                            32350000
  3238.          BNZ   WRT030              HE V                                 32360000
  3239.          TM    FILSTAT,X'04'                                            32370000
  3240.          BNO   WRT030              HE V                                 32380000
  3241.          LR    R14,R3                                                   32390000
  3242.          LA    R14,4(R14)          LENGHT + L'RDW                       32400000
  3243.          STH   R14,0(R4)           RECORD DESCRIPTOR WORD               32410000
  3244.          XC    2(2,R4),2(R4)       RDW                                  32420000
  3245.          LA    R4,4(R4)            A╨öPEC ╨öAHH╨½X B ╨æ╨ú╨ñEPE B╨½BO╨öA         32430000
  3246.          SH    R5,=H'4'            ╨ö╨¢╨ÿHA ╨öAHH╨½X B ╨æ╨ú╨ñEPE B╨½BO╨öA         32440000
  3247. WRT030   EQU   *                                                        32450000
  3248.          MVCL  R4,R2               ╨ùA╨ƒO╨¢HEH╨ÿE ╨æ╨ú╨ñEPA B╨½BO╨öA             32460000
  3249.          MVC   TCATDDI(4),FILEDEST ╨ÿM╨» ╨ƒ╨úHKTA HA╨ùHA╨ºEH╨ÿ╨»                32470000
  3250.          LA    R14,TDOAVRL         A╨öPEC ╨æ╨ú╨ñEPA B╨½BO╨öA                  32480000
  3251.          ST    R14,TCATDAA                                              32490000
  3252.          DFHTD TYPE=PUT,IOERROR=WRT100,NOSPACE=WRT200,NORESP=WRT700     32500000
  3253.          MVI   #ERROR,E$CICS                                            32510000
  3254.          LA    R14,4               RC = 4                               32520000
  3255.          B     WRTRET                                                   32530000
  3256. WRT100   EQU   *                                                        32540000
  3257.          MVI   #ERROR,E$PIO                                             32550000
  3258.          LA    R14,2               RC = 2                               32560000
  3259.          B     WRTRET                                                   32570000
  3260. WRT200   EQU   *                                                        32580000
  3261.          MVI   #ERROR,E$SPACE                                           32590000
  3262.          LA    R14,2               RC = 2                               32600000
  3263.          B     WRTRET                                                   32610000
  3264. WRT700   EQU   *                                                        32620000
  3265.          XC    $WR$L(2),$WR$L                                           32630000
  3266.          XR    R14,R14             RC = 0                               32640000
  3267. WRTRET   RETURN                                                         32650000
  3268. *********************************************************************** 32660000
  3269.          LTORG                                                          32670000
  3270.          DROP  BASE                                                     32680000
  3271. *********************************************************************** 32690000
  3272. *              B╨½BO╨ö COO╨æ╨⌐EH╨ÿ╨Ö COURIER - CICS                         * 32700000
  3273. *********************************************************************** 32710000
  3274. * RETURN CODE = 0  -  OK                                              * 32720000
  3275. *********************************************************************** 32730000
  3276. WRS      SAVE                                                           32740000
  3277.          USING WRS,BASE            ╨úCTAHOB╨ÿT╨¼ A╨öPECA╨ª╨ÿ╨«                 32750000
  3278.          LR    BASE,R14            ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨æA╨ùOB╨½╨Ö PE╨ô╨ÿCTP            32760000
  3279.          XR    R2,R2               ╨ö╨¢╨» ╨ùA╨ôP╨ú╨ùK╨ÿ ╨ö╨¢╨ÿH╨½ COO╨æ╨⌐EH╨ÿ╨»         32770000
  3280.          IC    R2,PACKAGE          ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ ╨ö╨¢╨ÿH╨ú                      32780000
  3281.          LA    R3,2(R2)            ╨ö╨¢╨ÿHA CR LF                          32790000
  3282.          L     TIOABAR,$SMA        ╨ùA╨ôP╨ú╨ù╨ÿT╨¼ A╨öPEC TIOA                 32800000
  3283.          STH   R3,TIOATDL          ╨ùA╨ƒ╨ÿCAT╨¼ ╨ö╨¢╨ÿH╨ú TIOA                  32810000
  3284.          MVC   TIOADBA(2),=X'0D25' ╨ùA╨ƒ╨ÿCAT╨¼ CR LF                       32820000
  3285.          BCTR  R2,0                B╨½╨ºECT╨¼ 1 ╨ö╨¢╨» MVC                    32830000
  3286.          EX    R2,WRS600           ╨ùA╨ƒ╨ÿCAT╨¼ TEKCT COO╨æ╨⌐EH╨ÿ╨»             32840000
  3287.          ST    TIOABAR,TCTTEDA     ╨ùA╨ƒ╨ÿCAT╨¼ A╨öPEC TIOA B TCTTE          32850000
  3288.          DFHTC TYPE=(PUT,SAVE)     B╨½BECT╨ÿ COO╨æ╨⌐EH╨ÿE                    32860000
  3289.          XR    R14,R14             RC=0                                 32870000
  3290.          B     WRS##010                                                 32880000
  3291. WRS600   MVC   TIOADBA+2(0),PACKAGE+1                                   32890000
  3292. WRS##010 RETURN                                                         32900000
  3293. *********************************************************************** 32910000
  3294.          LTORG                                                          32920000
  3295.          DROP  BASE                                                     32930000
  3296.          END                                                            32940000
  3297.