You are on page 1of 1

frm-rte-requested crn-divdpt com-filler-4 sys-fnc-key char-table-index flg-pricing-results print-total2 frm-oe-flag aerror-file number-of-ctl-q-recs-read flg-ot-units flg-route-class todays-yy frm-call-minute-r1 pbx-msg-lost-ctr

crn-divdpt com-filler-4 sys-fnc-key char-table-index flg-pricing-results print-total2 frm-oe-flag aerror-file number-of-ctl-q-recs-read flg-ot-units flg-route-class todays-yy frm-call-minute-r1 pbx-msg-lost-ctr print-file-total print-total3 flg-overflow wrk-status-do-translate display-date flg-flags ws-recs-tobe-refrmtd-for-queue wrk-status-apply-surcharges frm-dddd ws-ctl-s-rec-file-size ws-call-detl-written-for-queue frm-call-time ws-ctl-s-rec-start-date-time rdt-index frm-actual-cost rdt-file frm-acct-redef flg-today com-filler-8 npa-nnx-table wrk-status-record crn-tdc frm-npa dsc-key frm-formated-record-area ws-ctl-s-rec-end-date-time com-filler-5 ten-tbl-no flg-message-lost current-file-start-date frm-call-day flg-today-yy return-code display-hs print-total6 flg-ot-tenths print-mm wrk-status-progress-reporting flg-func-key flg-route-prefix display-ss ws-ctl-s-rec-file-status wrk-status-incoming-discounts com-receive-work-area ws-dial-r1 frm-call-month crn-dialed print-mn wrk-status-record-delimiter-1 hex-table-index frm-nnx wrk-status-key crn-ext frm-rte-selected crn-nnx com-recv flg-ot-units-integer ws-inv-recs-returned-for-queue crn-file-status-1 ws-no-files-procssed-for-queue oldest-file-start last-read-ctl-q-rec-key wrk-status-record-delimiter-2 c04-date ws-current-time wrk-status-outgoing-discounts display-yy flg-comms-error c04-dd last-file-processed dsc-key-items crn-bldg ten-tbl-opass flg-day-end-costing current-file-start-time crn-file-status ten-tbl-tariff crn-dd ws-current-mn crn-file oldest-select-byte block-marked-for-deletion-sw com-line-enabled frm-tdc end-of-rawcall-data-file-sw print-total4 rdt-record tbl-npa pbx-char-ctr ws-current-ss flg-today-mmdd wrk-status-record-delimiter crn-cnty flg-ot-units-r1 ws-current-hh-mm com-error-key flg-local-call ten-tbl-no(ten-index) rdt-data current-file-area com-received-work-area-1 ws-index flg-call-duration aerror-status rdt-byte(rdt-index) flg-continuation-flag flg-message-lost-ctr whole-npa-nnx-table frm-number-dialed com-send-xon-xoff print-hh ws-com-recv-512-index ws-ctl-s-rec-file-status(oldest-file-no) print-dd ten-tbl-ddd(ten-index) com-filler-7 crn-ten-r1 match-found-in-char-table-sw pbx-blocks-avail ten-index print-yy frm-day-of-call rdt-byte log-rec flg-ot-units-decimal frm-penalty-cost npa-nnx-data-set oldest-file-start-date ctl-filstat(oldest-file-no) com-recv(ws-com-recv-512-index) flg-costing-control crn-min ten-tbl cs0034-area com-received-r2 print-total1 ten-tbl(ten-index) crn-file-status-2 pbx-non-fatal-err flg-process-control ctl-status-switch-model crn-ddd ten-tbl-npa(ten-index) unfinished-rec-last-byte crn-int crn-time cs0034-start-date wrk-status-type log-header-1-queue-name com-received-r1 crn-hh wrk-status-queue-name ten-tbl-tariff(ten-index) rdt-string ws-no-rt-selreq-recs-for-queue crn-prx flg-today-mm flg-route-price-class wrk-status-send-xon-xoff print-total5 flg-default-ext ws-ctl-s-start-time ten-pointer pbx-blocks-out frm-call-day-r1 tenant-table ws-line-counter more-rawcall-files-to-prcss-sw frm-tenant frm-call-month-r1 crn-ten tbl-nnx ctl-open-sw ten-tbl-opass(ten-index) wrk-status-key-filler tbl-npa-array oldest-file-no crn-rec wrk-status-user-input invalid-rawcall-file-key-sw wrk-status-immediate-costing frm-digits-dialed ws-ctl-s-start-date ws-current-hs flg-real-min-dur ten-tbl-route-prefix(ten-index) current-select-byte crn-npa char-table-entry(char-table-index) flg-default-tenant tbl-nnx-array display-mn ten-tbl-npa com-received ten-tbl-route-prefix ws-current-hh oldest-file-status frm-call-hour-r1 ws-vld-recs-returned-for-queue ten-tbl-ddd frm-actual-w-overhead wrk-status-apply-min-cost unfinished-rec-from-last-block pbx-curr-file find-oldest-file-work-area ws-num-too-lge-recs-for-queue oldest-file-start-time frm-calling-extension wrk-status-detail frm-comparison-w-overhead cs0034-next-date current-file-start pbx-block-control display-time frm-call-minute no-ctl-col-fil-s-rec-queue frm-incoming-indicator dsc-at-end wrk-status-user-translate frm-ddd-cost rdt-data-r1 c04-mm com-received-work-area-2 flg-tariff-id flg-today-dd todays-mmdd ws-ctl-s-record-area oldest-file-area filler frm-trk-selected frm-comparison-cost crn-mm ctl-file-queue-name wrk-status-non-filler flg-d-sub crn-digits rdt-byte(1) com-mark npa-nnx-table-r1 com-filler-6 crn-date dsc-type log-file-status frm-ddd-w-overhead display-hh all-rawcall-data-files-full-sw wrk-status-input-type frm-account-number frm-duration-seconds flg-exception-proc ws-num-8 frm-gross-billing-charge frm-message-units ws-dial-1-5 hold-st-day current-call-file-processed flg-min-dur-oversea ws-num-3 crn-acct-filler end-of-ctl-file-sw wrk-status-user-display ws-nd frm-filler crn-ddd-cost ws-dial-1-3 wrk-redef-switched ctl-status-record-delimiter-2 crn-processed-flag wrk-status-exempt-npa-A current-ctl-q-rec-delimiter ws-current-yy ws-dial-8-24 wrk-status-non-ddd-r-a-i moveb-from ws-rec crn-alpha-acct crn-poll-flag ws-num-2 com-filler-1 ws-rec-ext ws-current-mm ws-sub ws-num-4 frm-site hold-st-mmdd crn-loc-found hold-st-time operator-wishes-to-terminat-sw hold-en-time wrk-status-user-costing wrk-status-COMMT-1 hold-duration-seconds wrk-status-sw-dial-times flg-ctc-type crn-message-units wrk-status-switched-line ws-num-4-7 crn-rte-sel-r1 com-cd-variables frm-call-date ws-num-1-3 wrk-status-exempt-local-npa ws-r frm-flex-type ctl-status-input-type current-queue-being-processed frm-prx ctl-prog valid-npa com-text-length frm-duration-days wrk-status-exempt-npa-9 hold-st-year crn-rte-sel wrk-status-exempt-npa-8 ws-num-4-10 ws-num-dial ws-dial-1-6 starting-second frm-blank-npa crn-day com-fd hold-en-date hold-en-month ctl-ten hold-en-hour display-hh-mn ws-dial-1-2 ws-rec-size crn-transfer wrk-status-sw-tel ws-num-5 com-filler-2 ws-num-1 com-symbolic-source date-aph120-started-running frm-en-call-day hold-en-hhmm frm-en-call-day-r1 flg-call-type-code flg-dsc-file-open ws-dial-3-5 ctl-status-record-delimiter-1 ending-second wrk-status-exempt-cost frm-route-advance-penalty hold-en-year frm-costing-data com-symbolic-queue crn-cost hold-st-sec wrk-status-exempt-npa-1 ws-num-6 rdt-label ws-sub-p2 frm-penalty-w-overhead ctl-type wrk-status-user-output crn-rte-req ctl-status-record-delimiter international-flag log-file moveb-to ws-num-4-10-r1 dsc-file-status wrk-status-exempt-npa-7 wrk-status-555-1212-cost flg-sl1-xfer-assign ws-rec-r2 ws-dial-6-24 ws-num-dial-r1 wrk-status-exempt-npa-5 crn-duration wrk-status-dev-name frm-lcr-penalty ws-temp ws-rec-r1 ws-dial-r3 frm-set-ctc-flag hold-en-date-r1 report-has-printed-ok-sw hold-st-date ws-num-filler frm-calling-program ws-control-realtime-tenants wrk-status-default-ext flg-FlexRate wrk-status-411-cost end-of-ctl-file-q-recs-sw hold-st-month frm-call-hour crn-condit display-mm wrk-status-route-prefix com-symbolic-source-r1 frm-orig-ext hold-st-hhmm ctl-file-status wrk-status-exempt-npa-2 crn-cond2 wrk-status-exempt-npa-6 crn-trk-sel crn-cond3 hold-en-min current-ctl-q-ok-to-process-sw wrk-status-lcb-num ws-num-4-6 hold-st-min ctl-filler invalid-dsc ws-dial-r2 crn-cond1 ws-current-dd flg-vir-file-open tried-once com-errno unfinished-rec-in-last-blk-sw frm-en-call-month-r1 wrk-status-TDC-FLG wrk-status-exempt-npa-4 wrk-status-default-tenant ws-int-op-ass ws-num-7-10 flg-ctc-region ws-current-date ws-rec-r3 invalid-ctl-file-key-sw rdt-file-status flg-ctl-file-open wrk-status-Q-DESC hold-en-mmdd crn-pen-cost wrk-status-COMMT-2 ws-num-9-10 current-ctl-q-rec-def-tenant wrk-status-apc-flag swch-sub com-end-key moveb-len ctl-file frm-en-call-date com-sym-source-char flg-ctc-class ws-d ctl-real-ten-process crn-condit-r1 wrk-status-exempt-npa-3 wrk-status-sw-login ws-dial-4-7 ws-ctl-s-rec-file-status(ws-index) crn-acct wrk-status-sl1-xfer-assign wrk-status-FILLER1 ctl-key hold-en-day ws-ctl-s-start-date(ws-index) hold-en-sec flg-secondary-carrier ws-dial-3 ws-sub-end frm-year-of-call rdt-id-file-no hold-st-hour ws-dial wrk-status-switch-model frm-en-call-month crn-acct-1 com-status-key flg-min-dur-asst hold-st-date-r1 ctl-record dsc-file com-filler-3 ws-rec-r3-1-4 frm-net-billing-charge display-dd ws-sub-p1

start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start start

initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move spaces to crn-bldg crn-divdpt call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "FNC" using sys-fnc-key if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move ws-no-rt-selreq-recs-for-queue to print-total2 call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ctl-open-sw = space if end-of-ctl-file-sw = "NO" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move ws-current-date to flg-today date-aph120-started-running initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move ws-no-files-procssed-for-queue to print-file-total move ws-vld-recs-returned-for-queue to print-total3 call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move ws-current-date to display-date call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move zeroes to ws-no-files-procssed-for-queue ws-recs-tobe-refrmtd-for-queue ws-inv-recs-returned-for-queue ws-vld-recs-returned-for-queue ws-no-rt-selreq-recs-for-queue ws-call-detl-written-for-queue ws-num-too-lge-recs-for-queue call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler if end-of-ctl-file-sw = "NO" move zeroes to ws-no-files-procssed-for-queue ws-recs-tobe-refrmtd-for-queue ws-inv-recs-returned-for-queue ws-vld-recs-returned-for-queue ws-no-rt-selreq-recs-for-queue ws-call-detl-written-for-queue ws-num-too-lge-recs-for-queue initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler if end-of-ctl-file-sw = "NO" if end-of-rawcall-data-file-sw = "NO" initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler open i-o rdt-file call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move frm-number-dialed to crn-dialed initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler initialize dsc-key call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if end-of-ctl-file-sw = "NO" call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move high-values to find-oldest-file-work-area initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if crn-file-status not = "00" move ws-current-time to display-time move ws-num-too-lge-recs-for-queue to print-total6 call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move ws-current-mm to print-mm call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move ws-current-time to display-time if end-of-ctl-file-sw = "NO" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move frm-number-dialed to crn-dialed move ws-current-mn to print-mn call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if char-table-entry ( char-table-index ) = ctl-status-record-delimiter initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move frm-calling-extension to crn-ext falsefalse initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move frm-number-dialed to crn-dialed call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move zeroes to ws-no-files-procssed-for-queue ws-recs-tobe-refrmtd-for-queue ws-inv-recs-returned-for-queue ws-vld-recs-returned-for-queue ws-no-rt-selreq-recs-for-queue ws-call-detl-written-for-queue ws-num-too-lge-recs-for-queue if crn-file-status not = "00" and crn-file-status not = "10" move zeroes to ws-no-files-procssed-for-queue ws-recs-tobe-refrmtd-for-queue ws-inv-recs-returned-for-queue ws-vld-recs-returned-for-queue ws-no-rt-selreq-recs-for-queue ws-call-detl-written-for-queue ws-num-too-lge-recs-for-queue move high-values to find-oldest-file-work-area move last-read-ctl-q-rec-key to ctl-key call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CTIME" using ws-current-time call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move ws-current-date to display-date call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move zero to last-file-processed initialize dsc-key move spaces to crn-bldg crn-divdpt call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move "N" to flg-day-end-costing move high-values to find-oldest-file-work-area if crn-file-status not = "00" and crn-file-status not = "10" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move frm-call-date to crn-date false call "CTIME" using ws-current-time open extend log-file extend crn-file false move high-values to find-oldest-file-work-area move "NO" to block-marked-for-deletion-sw call "XCP010" using flg-flags com-cd-variables com-receive-work-area initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move "NO" to end-of-rawcall-data-file-sw move ws-inv-recs-returned-for-queue to print-total4 rewrite rdt-record call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "CTIME" using ws-current-time call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move frm-number-dialed to crn-dialed call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CTIME" using ws-current-time call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move dsc-tenant-number to ten-tbl-no ( ten-index ) rewrite rdt-record move high-values to find-oldest-file-work-area call "XCP010" using flg-flags com-cd-variables com-receive-work-area move 1 to ws-index call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ctl-open-sw = space if rdt-byte ( rdt-index ) = x"01" false move "Y" to flg-continuation-flag call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "XCP010" using flg-flags com-cd-variables com-receive-work-area move ws-current-hh to print-hh if unfinished-rec-in-last-blk-sw = "YES" if ws-ctl-s-rec-file-status ( oldest-file-no ) = 1 move ws-current-dd to print-dd move dsc-ten-ddd-rte to ten-tbl-ddd ( ten-index ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area write crn-rec if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area perform varying ten-index from 1 by 1 until ten-index > 99 iteration move ws-current-yy to print-yy initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler rewrite rdt-record write log-rec from log-header-1 call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move high-values to find-oldest-file-work-area if ctl-filstat ( oldest-file-no ) = 4 move rdt-byte ( rdt-index ) to com-recv ( ws-com-recv-512-index ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move frm-call-time to crn-time call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CS0034" using cs0034-area call "XCP010" using flg-flags com-cd-variables com-receive-work-area move ws-call-detl-written-for-queue to print-total1 move spaces to ten-tbl ( ten-index ) if crn-file-status not = "00" and crn-file-status not = "10" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move "I" to flg-process-control if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move frm-number-dialed to crn-dialed move dsc-ten-npa to ten-tbl-npa ( ten-index ) if unfinished-rec-in-last-blk-sw = "YES" move frm-number-dialed to crn-dialed move frm-call-time to crn-time move hold-st-date-r1 to cs0034-start-date call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set write log-rec from log-header-1 call "XCP010" using flg-flags com-cd-variables com-receive-work-area move frm-call-time to crn-time call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move dsc-ten-tariff to ten-tbl-tariff ( ten-index ) rewrite rdt-record move zeroes to ws-no-files-procssed-for-queue ws-recs-tobe-refrmtd-for-queue ws-inv-recs-returned-for-queue ws-vld-recs-returned-for-queue ws-no-rt-selreq-recs-for-queue ws-call-detl-written-for-queue ws-num-too-lge-recs-for-queue move frm-number-dialed to crn-dialed call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move ws-recs-tobe-refrmtd-for-queue to print-total5 call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if end-of-ctl-file-sw = "NO" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move 1 to ws-line-counter move "YES" to more-rawcall-files-to-prcss-sw initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler if current-ctl-q-rec-def-tenant not = spaces call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ctl-open-sw = space move dsc-ten-opass to ten-tbl-opass ( ten-index ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move high-values to find-oldest-file-work-area write crn-rec call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move "NO" to invalid-rawcall-file-key-sw call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler if end-of-ctl-file-sw = "NO" call "CTIME" using ws-current-time call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move dsc-ten-route-prefix to ten-tbl-route-prefix ( ten-index ) move high-values to find-oldest-file-work-area move frm-number-dialed to crn-dialed if char-table-entry ( char-table-index ) = ctl-status-record-delimiter call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move ws-current-time to display-time call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CTIME" using ws-current-time move high-values to find-oldest-file-work-area initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move zeroes to ws-no-files-procssed-for-queue ws-recs-tobe-refrmtd-for-queue ws-inv-recs-returned-for-queue ws-vld-recs-returned-for-queue ws-no-rt-selreq-recs-for-queue ws-call-detl-written-for-queue ws-num-too-lge-recs-for-queue call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if unfinished-rec-in-last-blk-sw = "YES" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move high-values to find-oldest-file-work-area move zeroes to ws-no-files-procssed-for-queue ws-recs-tobe-refrmtd-for-queue ws-inv-recs-returned-for-queue ws-vld-recs-returned-for-queue ws-no-rt-selreq-recs-for-queue ws-call-detl-written-for-queue ws-num-too-lge-recs-for-queue move high-values to find-oldest-file-work-area initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CS0034" using cs0034-area move high-values to find-oldest-file-work-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move ws-current-time to display-time initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move current-queue-being-processed to no-ctl-col-fil-s-rec-queue initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move "N" to dsc-at-end call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler rewrite rdt-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move ws-current-date to flg-today date-aph120-started-running if end-of-ctl-file-sw = "NO" move high-values to find-oldest-file-work-area initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move frm-call-date to crn-date false move current-queue-being-processed to ctl-file-queue-name call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move frm-number-dialed to crn-dialed if ws-com-recv-512-index not greater than 512 call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "XCP010" using flg-flags com-cd-variables com-receive-work-area move frm-call-date to crn-date false initialize dsc-key if log-file-status not = "00" initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move ws-current-time to display-time move "YES" to all-rawcall-data-files-full-sw call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move ctl-real-exception-proc to flg-exception-proc false initialize ws-num-dial ws-dial initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move "NO" to current-call-file-processed call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial write crn-rec move "NO" to end-of-ctl-file-sw call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move zeroes to crn-cost crn-ddd-cost crn-pen-cost initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) write crn-rec call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if char-table-entry ( char-table-index ) = ctl-status-record-delimiter call "CDATE" using ws-current-date call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set write crn-rec write crn-rec initialize ws-num-dial ws-dial call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CDATE" using ws-current-date call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move space to crn-loc-found call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if sys-fnc-key = "8a" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if frm-duration-days greater than 0 call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move zeroes to crn-message-units call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial write crn-rec call "XCP010" using flg-flags com-cd-variables com-receive-work-area initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move spaces to ctl-key call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "XCP010" using flg-flags com-cd-variables com-receive-work-area initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move frm-rte-selected to crn-rte-sel call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set write crn-rec call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move spaces to ctl-key call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move ws-current-time to display-time initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move space to crn-transfer call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial call "XCP010" using flg-flags com-cd-variables com-receive-work-area initialize ws-num-dial ws-dial call "XCP010" using flg-flags com-cd-variables com-receive-work-area move ws-current-date to flg-today date-aph120-started-running initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move "N" to flg-dsc-file-open call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "XCP010" using flg-flags com-cd-variables com-receive-work-area move zeroes to crn-cost crn-ddd-cost crn-pen-cost call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move spaces to ctl-key call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move frm-rte-requested to crn-rte-req if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set open extend log-file extend crn-file false call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial if dsc-file-status not = "00" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move frm-duration-seconds to crn-duration call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set start ctl-file key greater than ctl-key call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ctl-real-ten-process = "S" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set perform c000-process-ctl-file-q-recs thru c000-x until end-of-ctl-file-q-recs-sw = "YES" or end-of-ctl-file-sw = "YES" sequential next call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move zeroes to crn-condit move ws-current-date to display-date call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ctl-open-sw = space call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move zeroes to crn-condit call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move frm-trk-selected to crn-trk-sel move zeroes to crn-condit call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if end-of-ctl-file-sw = "NO" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if end-of-ctl-file-sw = "NO" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move zeroes to crn-condit call "CDATE" using ws-current-date call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if tried-once = "Y" call "XCP010" using flg-flags com-cd-variables com-receive-work-area if unfinished-rec-in-last-blk-sw = "YES" initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CDATE" using ws-current-date call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move "NO" to invalid-ctl-file-key-sw if rdt-file-status not = "00" move "Y" to flg-ctl-file-open call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move zeroes to crn-cost crn-ddd-cost crn-pen-cost call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ctl-open-sw = space initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ctl-real-ten-process = "S" write crn-rec call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ws-ctl-s-rec-file-status ( ws-index ) = "1" and ws-ctl-s-start-date ( ws-index ) > ws-current-date move frm-account-number to crn-acct call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move spaces to ctl-key call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if ws-ctl-s-rec-file-status ( ws-index ) = "1" and ws-ctl-s-start-date ( ws-index ) > ws-current-date call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize ws-num-dial ws-dial call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler write crn-rec call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set if end-of-ctl-file-sw = "NO" open input dsc-file call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set initialize frm-tenant frm-calling-extension frm-rte-requested frm-rte-selected frm-account-number frm-call-date frm-call-time frm-duration-seconds frm-incoming-indicator frm-number-dialed frm-message-units frm-day-of-call frm-actual-cost frm-comparison-cost frm-penalty-cost frm-ddd-cost frm-actual-w-overhead frm-comparison-w-overhead frm-ddd-w-overhead frm-penalty-w-overhead frm-route-advance-penalty frm-lcr-penalty frm-gross-billing-charge frm-net-billing-charge frm-en-call-date frm-duration-days frm-filler move ws-current-date to display-date call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set

perform-exit perform-exit sequential next perform-exit sequential next true perform-exit perform-exit sequential next perform-exit true perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit true perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit sequential next perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit true perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit sequential next perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next sequential next perform-exit sequential next perform-exit sequential next true perform-exit perform-exit sequential next perform-exit perform-exit perform-exit sequential next sequential next perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit sequential next perform-exit perform-exit true perform-exit perform-exit true false sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true true false perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next true false false perform-exit perform-exit sequential next perform-exit perform-exit sequential next true perform-exit sequential next perform-exit true sequential next true sequential next sequential next sequential next perform-exit sequential next perform-exit perform-exit sequential next perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true false true perform-exit perform-exit sequential next perform-exit sequential next perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit sequential next sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit sequential next sequential next perform-exit perform-exit perform-exit sequential next perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit sequential next true false perform-exit perform-exit sequential next sequential next true perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit true perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit InvalidKey perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit procedure call perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit sequential next perform-exit sequential next sequential next perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit false perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next true perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit false sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit

call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if sys-fnc-key = "8a" perform c010-convert-char-delim-to-hex thru c010-x varying char-table-index from 1 by 1 until match-found-in-char-table-sw = "YES" or char-table-index > 256 call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write log-rec from queue-tot-rpt-line2 call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ctl-file-status not = "00" if dsc-file-status not = "00" if ctl-open-sw = space if ctl-type = "Q" call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write log-rec from queue-tot-files-prcssd-line write log-rec from queue-tot-rpt-line3 call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move ws-current-date to display-date call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags add 1 to ws-recs-tobe-refrmtd-for-queue if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-record to ws-ctl-s-record-area move ctl-record to ws-ctl-s-record-area add 1 to ws-call-detl-written-for-queue false call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-record to ws-ctl-s-record-area move ctl-record to ws-ctl-s-record-area perform c21111-move-rawcall-block-byte thru c21111-x varying rdt-index from 1 by 1 until block-marked-for-deletion-sw = "YES" or rdt-index > 512 call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags read rdt-file next record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area move ws-current-date to flg-today date-aph120-started-running call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) write crn-rec call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags start dsc-file key not less than dsc-key call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-record to ws-ctl-s-record-area move ctl-record to ws-ctl-s-record-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ws-ctl-s-rec-file-status ( ws-index ) = "0" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area move ws-current-date to flg-today date-aph120-started-running move 255 to return-code move ws-current-time to display-time write log-rec from queue-tot-rpt-line6 call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write log-rec from end-of-report-line write log-rec from end-of-report-line if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ws-current-time to display-time move ctl-record to ws-ctl-s-record-area move ctl-record to ws-ctl-s-record-area if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec write log-rec from end-of-report-line write log-rec from end-of-report-line if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) set hex-table-index to char-table-index call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if crn-ext = spaces call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if rdt-byte ( rdt-index ) = x"01" false move crn-file-status to aerror-status if crn-file-status not = "00" if end-of-rawcall-data-file-sw = "NO" if ws-ctl-s-rec-file-status ( ws-index ) = "0" if end-of-ctl-file-sw = "NO" if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move ws-current-time to display-time if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move ws-current-date to display-date call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed start dsc-file key not less than dsc-key write crn-rec call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move "N" to flg-day-end-costing if ws-ctl-s-rec-file-status ( ws-index ) = "0" move crn-file-status to aerror-status if crn-file-status not = "00" call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec move ws-current-mn to print-mn move ws-current-time to display-time close ctl-file crn-file log-file if ws-ctl-s-rec-file-status ( ws-index ) = "0" if end-of-rawcall-data-file-sw = "NO" call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed write log-rec from queue-tot-rpt-line4 move ws-current-time to display-time call "XCP010" using flg-flags com-cd-variables com-receive-work-area move ws-current-date to flg-today date-aph120-started-running if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) write crn-rec call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ws-current-time to display-time call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ws-ctl-s-rec-file-status ( ws-index ) = "0" call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags perform c210-find-oldest-call-data-fil thru c210-x until ws-index > 10 call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ctl-file-status not = "00" if dsc-file-status not = "00" if ctl-open-sw = space move x"01" to rdt-byte ( rdt-index ) if rdt-byte ( rdt-index ) not = current-ctl-q-rec-delimiter call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move "Y" to flg-continuation-flag call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write log-rec from end-of-report-line write log-rec from end-of-report-line move unfinished-rec-last-byte to ws-com-recv-512-index false move 3 to ws-ctl-s-rec-file-status ( oldest-file-no ) if ws-ctl-s-rec-file-status ( oldest-file-no ) = 2 write log-rec from end-of-report-line write log-rec from end-of-report-line call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move "NO" to match-found-in-char-table-sw set ten-index to 1 write log-rec from end-of-report-line write log-rec from end-of-report-line call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write log-rec from log-header-underline write log-rec from no-queue-recs-in-ctl-file-msg write log-rec from no-ctl-col-fil-status-rec-msg1 call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ws-ctl-s-rec-file-status ( ws-index ) = "0" if operator-wishes-to-terminat-sw = "N" if ctl-filstat ( oldest-file-no ) = 3 move rdt-byte ( rdt-index ) to com-recv ( ws-com-recv-512-index ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write log-rec from queue-tot-rpt-line1 move crn-file-status to aerror-status if crn-file-status not = "00" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set move "T" to flg-process-control move ctl-status-non-filler to wrk-status-record write crn-rec move unfinished-rec-last-byte to ws-com-recv-512-index write crn-rec write crn-rec call "CS0034" using cs0034-area if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if log-file-status not = "00" if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if rdt-byte ( rdt-index ) = x"01" false write crn-rec call "XCP010" using flg-flags com-cd-variables com-receive-work-area move ws-current-date to flg-today date-aph120-started-running call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) write log-rec from queue-tot-rpt-line5 call "XCP010" using flg-flags com-cd-variables com-receive-work-area if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move ctl-record to ws-ctl-s-record-area move ctl-record to ws-ctl-s-record-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 3 move 1 to ws-line-counter move 1 to ws-line-counter perform c021-prcss-1-datafil-at-a-time thru c021-x until more-rawcall-files-to-prcss-sw = "NO" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move current-ctl-q-rec-def-tenant to crn-ten if ws-control-realtime-tenants not = spaces move "Y" to ctl-open-sw if ctl-open-sw = space if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ws-ctl-s-rec-file-status ( ws-index ) = "0" if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) rewrite rdt-record if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-record to ws-ctl-s-record-area move ctl-record to ws-ctl-s-record-area move ws-current-time to display-time call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ws-ctl-s-rec-file-status ( ws-index ) = "0" write crn-rec call "XCP010" using flg-flags com-cd-variables com-receive-work-area if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move ws-current-time to display-time call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ws-current-hh to print-hh move ws-current-time to display-time if ws-ctl-s-rec-file-status ( ws-index ) = "0" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if rdt-byte ( rdt-index ) = x"01" false call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move unfinished-rec-from-last-block to com-receive-work-area add 1 to ws-num-too-lge-recs-for-queue if ws-ctl-s-rec-file-status ( ws-index ) = "0" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move cs0034-next-date to hold-st-date-r1 if ws-ctl-s-rec-file-status ( ws-index ) = "0" move ws-current-time to display-time call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write log-rec from no-ctl-col-fil-status-rec-msg2 call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags start dsc-file key not less than dsc-key if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area move ws-current-date to flg-today date-aph120-started-running move ctl-record to ws-ctl-s-record-area move ctl-record to ws-ctl-s-record-area if ws-ctl-s-rec-file-status ( ws-index ) = "0" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set write log-rec from log-header-1 call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec if rdt-index = 512 if rdt-index = 512 call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec move "T" to dsc-type move log-file-status to aerror-status if log-file-status not = "00" call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ws-current-time to display-time if ws-ctl-s-rec-file-status ( ws-index ) = "0" if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ws-ctl-s-rec-file-status ( ws-index ) = "0" call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags read ctl-file with no lock perform c000-process-ctl-file-q-recs thru c000-x until end-of-ctl-file-q-recs-sw = "YES" or end-of-ctl-file-sw = "YES" sequential next if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move ctl-status-non-filler to wrk-status-record if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move hex-table-entry ( hex-table-index ) to current-ctl-q-rec-delimiter if rdt-byte ( rdt-index ) = x"01" false move ws-current-date to flg-today date-aph120-started-running call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ws-current-date to flg-today date-aph120-started-running call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move "N" to operator-wishes-to-terminat-sw call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move frm-duration-seconds to hold-duration-seconds if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-non-filler to wrk-status-record move ctl-status-queue-name to current-queue-being-processed log-header-1-queue-name call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move last-read-ctl-q-rec-key to ctl-key call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if crn-rte-req = spaces if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move last-read-ctl-q-rec-key to ctl-key call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ws-current-time to display-time call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area move 15 to ws-rec-size write crn-rec if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-non-filler to wrk-status-record call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) write crn-rec call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-queue-name to rdt-label com-symbolic-queue if rdt-file-status not = "00" call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move last-read-ctl-q-rec-key to ctl-key if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if crn-rte-req = spaces move ctl-status-non-filler to wrk-status-record call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if log-file-status not = "00" call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move dsc-file-status to aerror-status if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if frm-duration-days greater than 0 if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move "NO" to report-has-printed-ok-sw call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move "01" to ws-control-realtime-tenants if current-ctl-q-rec-def-tenant not = spaces if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if end-of-ctl-file-sw = "NO" call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move flg-secondary-carrier to crn-condit move ws-current-date to display-date if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ctl-file-status not = "00" if ctl-open-sw = space if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move flg-secondary-carrier to crn-condit if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) write crn-rec move flg-secondary-carrier to crn-condit call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ctl-type = "Q" if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-record to ws-ctl-s-record-area move ctl-record to ws-ctl-s-record-area call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move flg-secondary-carrier to crn-condit move ws-current-date to flg-today date-aph120-started-running call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if log-file-status not = "00" call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move "NO" to unfinished-rec-in-last-blk-sw call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ws-current-date to flg-today date-aph120-started-running call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags rewrite ctl-record move rdt-file-status to aerror-status call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-default-tenant to current-ctl-q-rec-def-tenant flg-default-tenant if current-ctl-q-rec-def-tenant not = spaces if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags open i-o ctl-file read ctl-file with no lock start ctl-file key greater than ctl-key call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ws-ctl-s-rec-file-status ( ws-index ) = "0" write crn-rec if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) move last-read-ctl-q-rec-key to ctl-key call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move oldest-file-no to rdt-id-file-no last-file-processed call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move "00" to com-status-key call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-record to ws-ctl-s-record-area move ctl-record to ws-ctl-s-record-area start dsc-file key not less than dsc-key call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "CST001" using wrk-status-record frm-formated-record-area flg-flags tenant-table npa-nnx-data-set call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ws-current-date to display-date call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags

perform-exit perform-exit true false procedure call perform-exit perform-exit true false true true perform-exit true perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit true perform-exit perform-exit sequential next perform-exit perform-exit sequential next procedure call perform-exit perform-exit perform-exit sequential next perform-exit true perform-exit perform-exit perform-exit sequential next perform-exit perform-exit false perform-exit sequential next perform-exit perform-exit true perform-exit perform-exit perform-exit sequential next true perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit true perform-exit true perform-exit perform-exit perform-exit false perform-exit false perform-exit false true true perform-exit perform-exit true perform-exit perform-exit true perform-exit perform-exit false perform-exit perform-exit false true perform-exit perform-exit true perform-exit sequential next true perform-exit perform-exit perform-exit perform-exit perform-exit false perform-exit procedure call perform-exit true false true true perform-exit true false perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next true perform-exit perform-exit sequential next sequential next perform-exit perform-exit sequential next sequential next sequential next perform-exit perform-exit perform-exit false true false true perform-exit perform-exit perform-exit perform-exit sequential next true perform-exit true true perform-exit true perform-exit false perform-exit sequential next perform-exit true perform-exit true perform-exit sequential next perform-exit procedure call perform-exit sequential next sequential next perform-exit procedure call perform-exit perform-exit sequential next true false true true perform-exit false perform-exit true perform-exit InvalidKey true perform-exit perform-exit sequential next perform-exit perform-exit false true perform-exit perform-exit perform-exit false perform-exit perform-exit false perform-exit perform-exit true perform-exit sequential next perform-exit false perform-exit true perform-exit perform-exit false perform-exit perform-exit InvalidKey true perform-exit perform-exit perform-exit perform-exit sequential next sequential next false perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit true true perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit true perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit false perform-exit perform-exit perform-exit perform-exit InvalidKey procedure call true perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit sequential next true perform-exit false sequential next perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit true perform-exit sequential next true perform-exit perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit true true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit true perform-exit perform-exit perform-exit perform-exit true perform-exit perform-exit true perform-exit perform-exit perform-exit true perform-exit perform-exit perform-exit true perform-exit true sequential next perform-exit true perform-exit perform-exit perform-exit perform-exit true perform-exit true perform-exit true perform-exit perform-exit perform-exit perform-exit true perform-exit true true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit perform-exit false true perform-exit perform-exit true perform-exit true perform-exit perform-exit sequential next true perform-exit perform-exit perform-exit perform-exit true true true perform-exit sequential next true perform-exit sequential next perform-exit true true perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit sequential next sequential next perform-exit true false perform-exit sequential next perform-exit true perform-exit true perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit InvalidKey perform-exit perform-exit true perform-exit perform-exit true perform-exit perform-exit perform-exit true true perform-exit perform-exit perform-exit perform-exit InvalidKey perform-exit perform-exit perform-exit perform-exit true perform-exit true perform-exit perform-exit false true perform-exit true perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit perform-exit sequential next perform-exit perform-exit perform-exit true perform-exit perform-exit sequential next perform-exit perform-exit sequential next InvalidKey perform-exit perform-exit perform-exit perform-exit perform-exit

if rdt-byte ( rdt-index ) = x"01" false call "USR000" using com-cd-variables com-receive-work-area flg-flags call "FNC" using sys-fnc-key move "00" to sys-fnc-key if char-table-entry ( char-table-index ) = ctl-status-record-delimiter call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move "SMDCTL" to aerror-file if log-file-status not = "00" move "PBXDSC" to aerror-file if ctl-file-status not = "00" if rdt-file-status not = "00" add 1 to number-of-ctl-q-recs-read call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ws-recs-tobe-refrmtd-for-queue to print-total5 move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed move ws-call-detl-written-for-queue to print-total1 call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed if rdt-byte ( rdt-index ) = x"01" false call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags close rdt-file call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags write log-rec from end-of-report-line move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if unfinished-rec-in-last-blk-sw = "YES" call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags write log-rec from end-of-report-line move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move all "Z" to crn-ext if rdt-byte ( rdt-index ) = x"01" false if unfinished-rec-in-last-blk-sw = "YES" call "USR000" using com-cd-variables com-receive-work-area flg-flags if rdt-byte ( rdt-index ) not = current-ctl-q-rec-delimiter move ws-inv-recs-returned-for-queue to print-total4 add 1 to ws-no-files-procssed-for-queue move ws-no-files-procssed-for-queue to print-file-total if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" if ctl-type = "Q" move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ws-current-time to display-time move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move oldest-file-no to rdt-id-file-no last-file-processed call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" move frm-call-date to crn-date move ws-current-time to display-time if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" perform c21111-move-rawcall-block-byte thru c21111-x varying rdt-index from 1 by 1 until block-marked-for-deletion-sw = "YES" or rdt-index > 512 call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move "NO" to end-of-rawcall-data-file-sw move ws-current-time to display-time call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ws-current-time to display-time call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" if unfinished-rec-in-last-blk-sw = "YES" if ws-ctl-s-rec-file-status ( ws-index ) = "1" and ws-ctl-s-start-date ( ws-index ) > ws-current-date call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-file-status to aerror-status if log-file-status not = "00" move dsc-file-status to aerror-status if ctl-file-status not = "00" if rdt-file-status not = "00" move rdt-byte ( rdt-index ) to com-recv ( ws-com-recv-512-index ) if rdt-byte ( rdt-index ) = current-ctl-q-rec-delimiter call "XCP010" using flg-flags com-cd-variables com-receive-work-area move "Y" to flg-continuation-flag call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags write log-rec from end-of-report-line if rdt-byte ( rdt-index ) = x"01" move 4 to ws-ctl-s-rec-file-status ( oldest-file-no ) write log-rec from end-of-report-line call "USR000" using com-cd-variables com-receive-work-area flg-flags perform c010-convert-char-delim-to-hex thru c010-x varying char-table-index from 1 by 1 until match-found-in-char-table-sw = "YES" or char-table-index > 256 perform l005-next-tenant thru l005-x until dsc-at-end equal to "Y" or dsc-type not equal to "T" or ten-index greater than 99 sequential next write log-rec from end-of-report-line call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags write log-rec from log-blank-line write log-rec from end-of-report-line write log-rec from no-ctl-col-fil-status-rec-msg2 move overflow-mssg to log-rec call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" move 0 to ctl-filstat ( oldest-file-no ) move 2 to ctl-filstat ( oldest-file-no ) move 1 to ctl-filstat ( oldest-file-no ) call "USR000" using com-cd-variables com-receive-work-area flg-flags if unfinished-rec-in-last-blk-sw = "YES" call "XCP010" using flg-flags com-cd-variables com-receive-work-area move "I" to flg-process-control if ws-com-recv-512-index not greater than 512 move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write log-rec from log-header-1 move ctl-status-queue-name to current-queue-being-processed log-header-1-queue-name if unfinished-rec-in-last-blk-sw = "YES" move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if rdt-byte ( rdt-index ) not = current-ctl-q-rec-delimiter move ws-no-rt-selreq-recs-for-queue to print-total2 call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-default-ext to flg-default-ext call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags add 1 to ws-line-counter if log-file-status not = "00" perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 2 perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 2 move 1 to ws-line-counter move "NO" to more-rawcall-files-to-prcss-sw call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags write crn-rec move ws-control-realtime-tenants to crn-ten move frm-tenant to crn-ten move "Y" to ctl-open-sw move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move "YES" to invalid-rawcall-file-key-sw move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed move ws-current-time to display-time call "USR000" using com-cd-variables com-receive-work-area flg-flags if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" move ctl-status-default-tenant to current-ctl-q-rec-def-tenant flg-default-tenant call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if unfinished-rec-in-last-blk-sw = "YES" move ws-current-time to display-time if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" if ws-ctl-s-rec-file-status ( oldest-file-no ) = 1 call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if rdt-byte ( rdt-index ) not = current-ctl-q-rec-delimiter move ws-vld-recs-returned-for-queue to print-total3 call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ws-com-recv-512-index not greater than 512 move ws-num-too-lge-recs-for-queue to print-total6 if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move "Y" to dsc-at-end sequential next move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if unfinished-rec-in-last-blk-sw = "YES" call "USR000" using com-cd-variables com-receive-work-area flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" call "XCP010" using flg-flags com-cd-variables com-receive-work-area write log-rec from log-header-underline write log-rec from end-of-report-line if end-of-ctl-file-sw = "NO" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move frm-call-date to crn-date move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move x"01" to rdt-byte ( 1 ) move x"01" to rdt-byte ( 1 ) call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move frm-call-date to crn-date start dsc-file key not less than dsc-key if log-file-status = "00" if log-file-status = "00" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move "NO" to all-rawcall-data-files-full-sw if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if flg-exception-proc = "Y" call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" if oldest-file-status = "3" falsefalse call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move "YES" to end-of-ctl-file-sw read ctl-file next record with no lock move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if char-table-entry ( char-table-index ) = ctl-status-record-delimiter move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if rdt-byte ( rdt-index ) not = current-ctl-q-rec-delimiter move ws-current-yy to print-yy call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ws-current-mm to print-mm call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags if operator-wishes-to-terminat-sw = "Y" call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move hold-duration-seconds to frm-duration-seconds crn-duration move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move current-queue-being-processed to ctl-file-queue-name call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags start ctl-file key greater than ctl-key call "USR000" using com-cd-variables com-receive-work-area flg-flags move ws-com-recv-512-index to com-text-length call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move crn-rte-sel to crn-rte-req false move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags start ctl-file key greater than ctl-key call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags if char-table-entry ( char-table-index ) = ctl-status-record-delimiter call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ctl-status-queue-name to rdt-label com-symbolic-queue call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move rdt-file-id to aerror-file call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags start ctl-file key greater than ctl-key move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move crn-rte-sel to crn-rte-req false if char-table-entry ( char-table-index ) = ctl-status-record-delimiter call "USR000" using com-cd-variables com-receive-work-area flg-flags close log-file close ctl-file crn-file log-file call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-sl1-xfer-assign to flg-sl1-xfer-assign call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move 86400 to crn-duration move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags perform 923-write-no-q-rec-log-report thru 923-x until report-has-printed-ok-sw = "YES" call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if ws-control-realtime-tenants not = spaces move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if ctl-type = "Q" call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags write crn-rec move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-file-status to aerror-status if ctl-file-status not = "00" move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags write crn-rec call "USR000" using com-cd-variables com-receive-work-area flg-flags move "NO" to current-ctl-q-ok-to-process-sw move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags write crn-rec move ws-current-dd to print-dd call "USR000" using com-cd-variables com-receive-work-area flg-flags move "Y" to tried-once if log-file-status not = "00" call "USR000" using com-cd-variables com-receive-work-area flg-flags if ws-com-recv-512-index not greater than 512 call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ws-current-date to display-date call "USR000" using com-cd-variables com-receive-work-area flg-flags move "YES" to invalid-ctl-file-key-sw call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move current-ctl-q-rec-def-tenant to crn-ten move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags close ctl-file crn-file log-file call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags start ctl-file key greater than ctl-key call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if rdt-file-status not = "00" call "USR000" using com-cd-variables com-receive-work-area flg-flags call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move ctl-status-non-filler to wrk-status-record call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed if dsc-at-end equal to "N" close dsc-file call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags

false sequential next sequential next true sequential next sequential next sequential next true false sequential next true true sequential next sequential next sequential next perform-exit sequential next perform-exit sequential next perform-exit sequential next perform-exit true sequential next perform-exit true true false sequential next sequential next perform-exit sequential next perform-exit sequential next perform-exit sequential next true sequential next sequential next true sequential next perform-exit perform-exit sequential next perform-exit perform-exit sequential next sequential next true perform-exit true sequential next sequential next perform-exit perform-exit perform-exit sequential next perform-exit perform-exit sequential next false true sequential next false true true perform-exit perform-exit sequential next perform-exit true true procedure call sequential next sequential next perform-exit perform-exit perform-exit perform-exit sequential next sequential next sequential next true true true false sequential next sequential next true false sequential next true true sequential next true sequential next perform-exit sequential next sequential next perform-exit sequential next perform-exit true false perform-exit sequential next procedure call procedure call perform-exit sequential next perform-exit sequential next sequential next perform-exit sequential next sequential next true sequential next true sequential next perform-exit true perform-exit true perform-exit false perform-exit sequential next perform-exit perform-exit true sequential next perform-exit true perform-exit perform-exit sequential next sequential next sequential next perform-exit sequential next perform-exit perform-exit true true perform-exit perform-exit sequential next perform-exit true sequential next true perform-exit true true true false perform-exit sequential next perform-exit false sequential next perform-exit true true sequential next perform-exit perform-exit sequential next true sequential next perform-exit sequential next sequential next perform-exit sequential next true sequential next perform-exit true true sequential next true false perform-exit sequential next perform-exit sequential next perform-exit sequential next sequential next sequential next InvalidKey sequential next perform-exit sequential next perform-exit sequential next perform-exit sequential next perform-exit true sequential next sequential next sequential next sequential next sequential next sequential next perform-exit true perform-exit sequential next sequential next AtEnd perform-exit perform-exit sequential next sequential next sequential next perform-exit perform-exit false perform-exit sequential next perform-exit sequential next sequential next sequential next sequential next sequential next perform-exit sequential next sequential next sequential next sequential next perform-exit sequential next true sequential next perform-exit perform-exit sequential next perform-exit sequential next perform-exit sequential next sequential next sequential next perform-exit sequential next perform-exit sequential next sequential next perform-exit sequential next perform-exit InvalidKey sequential next sequential next sequential next perform-exit perform-exit sequential next perform-exit sequential next perform-exit sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next InvalidKey sequential next sequential next perform-exit perform-exit sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next perform-exit sequential next sequential next sequential next perform-exit sequential next perform-exit sequential next sequential next sequential next InvalidKey perform-exit sequential next sequential next sequential next perform-exit sequential next sequential next perform-exit perform-exit perform-exit sequential next sequential next sequential next perform-exit sequential next perform-exit perform-exit sequential next sequential next sequential next sequential next sequential next sequential next procedure call perform-exit sequential next perform-exit sequential next sequential next perform-exit true perform-exit sequential next perform-exit true false sequential next perform-exit sequential next perform-exit perform-exit sequential next sequential next sequential next true perform-exit perform-exit sequential next sequential next perform-exit perform-exit sequential next sequential next true sequential next sequential next perform-exit sequential next true sequential next true sequential next perform-exit perform-exit perform-exit sequential next sequential next sequential next perform-exit sequential next sequential next perform-exit sequential next perform-exit sequential next perform-exit sequential next sequential next sequential next perform-exit sequential next sequential next sequential next sequential next perform-exit perform-exit sequential next true perform-exit perform-exit InvalidKey sequential next sequential next sequential next perform-exit sequential next sequential next sequential next true sequential next sequential next perform-exit sequential next perform-exit sequential next sequential next perform-exit true true sequential next sequential next sequential next sequential next

if rdt-byte ( rdt-index ) not = current-ctl-q-rec-delimiter call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if sys-fnc-key = "8b" set hex-table-index to char-table-index call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "AERROR" using aerror-file aerror-status move "PBXLOG" to aerror-file if crn-file-status not = "00" and crn-file-status not = "10" call "AERROR" using aerror-file aerror-status move "SMDCTL" to aerror-file move rdt-file-id to aerror-file call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-time to crn-time call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-number-dialed to crn-dialed move ws-ctl-s-record-area to ctl-record call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-time to crn-time move ws-ctl-s-record-area to ctl-record set rdt-index to +1 if ws-com-recv-512-index not greater than 512 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-number-dialed to crn-dialed call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move ws-ctl-s-record-area to ctl-record call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ws-ctl-s-rec-start-date-time ( ws-index ) to current-file-start call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-date to crn-date false call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags write log-rec from end-of-report-line call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ws-ctl-s-record-area to ctl-record call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move unfinished-rec-from-last-block to com-receive-work-area false call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-date to crn-date false write log-rec from end-of-report-line call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-number-dialed to crn-dialed call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area write crn-rec if rdt-byte ( rdt-index ) not = current-ctl-q-rec-delimiter move unfinished-rec-from-last-block to com-receive-work-area false call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if rdt-byte ( rdt-index ) = current-ctl-q-rec-delimiter if current-file-area < oldest-file-area move ctl-key to last-read-ctl-q-rec-key call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ws-ctl-s-rec-start-date-time ( ws-index ) to current-file-start if current-file-area < oldest-file-area if rdt-byte ( rdt-index ) = x"01" false call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-number-dialed to crn-dialed perform c2111-unload-raw-data-file thru c2111-x until end-of-rawcall-data-file-sw = "YES" call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if current-file-area < oldest-file-area move unfinished-rec-from-last-block to com-receive-work-area false add 1 to ws-index if ws-ctl-s-rec-file-status ( ws-index ) = "0" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "AERROR" using aerror-file aerror-status move log-file-status to aerror-status if crn-file-status not = "00" and crn-file-status not = "10" call "AERROR" using aerror-file aerror-status move ctl-file-status to aerror-status move rdt-file-status to aerror-status move x"01" to rdt-byte ( rdt-index ) move rdt-byte ( rdt-index ) to com-recv ( ws-com-recv-512-index ) call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags if rdt-byte ( rdt-index ) = x"01" false call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-number-dialed to crn-dialed call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags write log-rec from end-of-report-line move 1 to ws-com-recv-512-index add 1 to ws-com-recv-512-index write log-rec from end-of-report-line call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if char-table-entry ( char-table-index ) = ctl-status-record-delimiter set ten-index up by 1 write log-rec from end-of-report-line call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if log-file-status not = "00" write log-rec from end-of-report-line write log-rec write log-rec from queue-tot-files-prcssd-line call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if current-file-area < oldest-file-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move unfinished-rec-from-last-block to com-receive-work-area false call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags move "C" to flg-process-control if rdt-index = 512 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move unfinished-rec-from-last-block to com-receive-work-area false call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if rdt-byte ( rdt-index ) = current-ctl-q-rec-delimiter call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move ws-ctl-s-record-area to ctl-record call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-date to crn-date false move 1 to ws-line-counter move 1 to ws-line-counter move 1 to ws-line-counter perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 2 if ws-ctl-s-rec-file-status ( ws-index ) = "0" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if current-ctl-q-rec-def-tenant not = spaces call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-date to crn-date false call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if current-file-area < oldest-file-area move oldest-file-no to rdt-id-file-no last-file-processed call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-number-dialed to crn-dialed move ws-ctl-s-record-area to ctl-record call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move spaces to current-select-byte call "USR000" using com-cd-variables com-receive-work-area flg-flags move unfinished-rec-from-last-block to com-receive-work-area false if current-file-area < oldest-file-area if ws-ctl-s-rec-file-status ( oldest-file-no ) = 2 if sys-fnc-key = "8b" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-time to crn-time if rdt-byte ( rdt-index ) = current-ctl-q-rec-delimiter call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if rdt-index = 512 if current-file-area < oldest-file-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-calling-extension to crn-ext falsefalse call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move ws-ctl-s-rec-start-date-time ( ws-index ) to current-file-start call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-time to crn-time call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area perform l005-next-tenant thru l005-x until dsc-at-end equal to "Y" or dsc-type not equal to "T" or ten-index greater than 99 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move unfinished-rec-from-last-block to com-receive-work-area false call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags move ws-ctl-s-record-area to ctl-record if current-file-area < oldest-file-area if log-file-status not = "00" move ctl-record to ws-ctl-s-record-area write log-rec from no-ctl-col-fil-status-rec-msg1 call "REF001" using com-cd-variables com-receive-work-area frm-formated-record-area wrk-status-record c04-date tenant-table flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-trk-selected to crn-trk-sel call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags perform l005-next-tenant thru l005-x until dsc-at-end equal to "Y" or dsc-type not equal to "T" or ten-index greater than 99 if log-file-status not = "00" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-account-number to crn-acct call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-duration-seconds to crn-duration call "XCP010" using flg-flags com-cd-variables com-receive-work-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move flg-today to hold-st-date false move "YES" to current-call-file-processed if ctl-filstat ( oldest-file-no ) = 4 call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move "YES" to end-of-ctl-file-sw if end-of-ctl-file-sw = "NO" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if rdt-byte ( rdt-index ) = current-ctl-q-rec-delimiter move ws-current-date to display-date call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ws-current-date to display-date call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move flg-today to hold-st-date false call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if sys-fnc-key = "8b" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move zeros to hold-duration-seconds call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-date to crn-date false call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move current-queue-being-processed to no-ctl-col-fil-s-rec-queue call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-number-dialed to crn-dialed if end-of-ctl-file-sw = "NO" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if frm-duration-days greater than 0 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move flg-today to hold-st-date false if crn-rte-sel = spaces call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if end-of-ctl-file-sw = "NO" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if end-of-ctl-file-sw = "NO" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if crn-rte-sel = spaces call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags open output log-file if log-file-status not = "00" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area write crn-rec move hold-duration-seconds to frm-duration-seconds crn-duration call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if log-file-status = "00" if end-of-ctl-file-sw = "NO" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move flg-today to hold-st-date false call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move "APH120" to frm-calling-program false move ws-control-realtime-tenants to crn-ten call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if end-of-ctl-file-sw = "NO" move "YES" to end-of-ctl-file-q-recs-sw call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move flg-today to hold-st-date false call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-time to crn-time call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ctl-file-status to aerror-status call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if current-ctl-q-ok-to-process-sw = "YES" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ws-ctl-s-record-area to ctl-record call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move ws-current-date to display-date call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move "Y" to tried-once call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if rdt-index = 512 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if ws-ctl-s-rec-file-status ( ws-index ) = "1" and ws-ctl-s-start-date ( ws-index ) > ws-current-date call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags read ctl-file next record with no lock call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if current-file-area < oldest-file-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if end-of-ctl-file-sw = "NO" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags initialize flg-secondary-carrier call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move rdt-file-id to aerror-file call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move hold-st-date-r1 to cs0034-start-date move ws-ctl-s-record-area to ctl-record read dsc-file next record with no lock call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags

false sequential next false sequential next sequential next true sequential next sequential next sequential next sequential next sequential next sequential next true false false sequential next perform-exit sequential next sequential next sequential next sequential next sequential next sequential next perform-exit sequential next sequential next sequential next sequential next sequential next sequential next false sequential next sequential next true true sequential next sequential next sequential next true true false sequential next procedure call sequential next perform-exit sequential next sequential next sequential next true sequential next false sequential next sequential next true sequential next sequential next false perform-exit sequential next sequential next sequential next false sequential next true true sequential next sequential next sequential next true sequential next sequential next sequential next perform-exit perform-exit true sequential next true sequential next perform-exit sequential next sequential next sequential next sequential next sequential next sequential next perform-exit false perform-exit false sequential next true perform-exit sequential next sequential next sequential next sequential next true move 3 to oldest-file-status true false true true true sequential next procedure call sequential next sequential next sequential next perform-exit true true sequential next perform-exit sequential next sequential next sequential next procedure call false perform-exit sequential next sequential next sequential next sequential next sequential next sequential next false sequential next sequential next true sequential next sequential next perform-exit sequential next sequential next sequential next sequential next sequential next sequential next perform-exit sequential next sequential next sequential next sequential next sequential next true false sequential next sequential next sequential next sequential next sequential next sequential next sequential next true sequential next sequential next true sequential next true sequential next sequential next sequential next sequential next sequential next sequential next sequential next true sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next true true sequential next true false sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next true false perform-exit sequential next sequential next sequential next false perform-exit sequential next sequential next sequential next sequential next sequential next true sequential next sequential next sequential next sequential next sequential next perform-exit sequential next sequential next true sequential next sequential next sequential next perform-exit sequential next sequential next sequential next sequential next sequential next sequential next sequential next perform-exit sequential next sequential next sequential next sequential next true true sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next

if rdt-byte ( rdt-index ) = current-ctl-q-rec-delimiter call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if sys-fnc-key = "8a" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "AERROR" using aerror-file aerror-status move "SMDCRN" to aerror-file call "AERROR" using aerror-file aerror-status call "AERROR" using aerror-file aerror-status call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if rdt-index = 512 set rdt-index to 1 if rdt-index = 512 call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move flg-today to hold-st-date false call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if current-file-area < oldest-file-area move frm-call-date to hold-st-mmdd call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move flg-today to hold-st-date false call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if rdt-byte ( rdt-index ) = x"01" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-date to hold-st-mmdd if rdt-byte ( rdt-index ) = current-ctl-q-rec-delimiter if rdt-byte ( rdt-index ) = x"01" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if flg-continuation-flag = "Y" move current-file-area to oldest-file-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if current-file-area < oldest-file-area move current-file-area to oldest-file-area move "YES" to block-marked-for-deletion-sw move "YES" to block-marked-for-deletion-sw call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area read rdt-file next record call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move flg-today to hold-st-date false call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move current-file-area to oldest-file-area if rdt-byte ( rdt-index ) = x"01" if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "AERROR" using aerror-file aerror-status move crn-file-status to aerror-status call "AERROR" using aerror-file aerror-status call "AERROR" using aerror-file aerror-status if rdt-byte ( rdt-index ) not = current-ctl-q-rec-delimiter move "Y" to flg-continuation-flag call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if ws-com-recv-512-index not greater than 512 move ws-com-recv-512-index to com-text-length call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move "YES" to match-found-in-char-table-sw write log-rec from log-header-1 write log-rec from end-of-report-line write log-rec from queue-tot-rpt-line1 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move current-file-area to oldest-file-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if rdt-byte ( rdt-index ) = x"01" call "USR000" using com-cd-variables com-receive-work-area flg-flags move "C" to flg-process-control move "T" to flg-process-control move ws-com-recv-512-index to unfinished-rec-last-byte if rdt-byte ( rdt-index ) = x"01" if flg-continuation-flag = "Y" call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move flg-today to hold-st-date false call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move frm-call-date to hold-st-mmdd perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 3 perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 3 perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 2 move 1 to ws-line-counter if ws-ctl-s-rec-file-status ( ws-index ) greater than "0" and less than "5" and current-call-file-processed = "NO" if more-rawcall-files-to-prcss-sw = "YES" if ws-control-realtime-tenants not = spaces move frm-call-date to hold-st-mmdd move ws-index to oldest-file-no move "N" to wrk-status-immediate-costing call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if current-file-area < oldest-file-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags if rdt-byte ( rdt-index ) = x"01" move ws-ctl-s-rec-file-status ( ws-index ) to oldest-file-status sequential next false move 4 to oldest-file-status if sys-fnc-key = "8a" if flg-continuation-flag = "Y" move com-receive-work-area to unfinished-rec-from-last-block move current-file-area to oldest-file-area if current-file-area < oldest-file-area if dsc-at-end equal to "N" if rdt-byte ( rdt-index ) = x"01" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move flg-today to hold-st-date false move current-file-area to oldest-file-area write log-rec from log-header-1 write log-rec from no-ctl-col-fil-status-rec-msg2 move ctl-record to ws-ctl-s-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if dsc-at-end equal to "Y" or dsc-type not equal to "T" sequential nextfalse if log-file-status not = "00" if log-file-status = "00" if frm-duration-days greater than 0 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-date to hold-st-mmdd if ctl-filstat ( oldest-file-no ) = 3 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if ws-ctl-s-rec-file-status ( ws-index ) = "1" and ws-ctl-s-start-date ( ws-index ) > ws-current-date call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if ws-ctl-s-rec-file-status ( ws-index ) = "1" and ws-ctl-s-start-date ( ws-index ) > ws-current-date call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-date to hold-st-mmdd call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if ctl-filstat ( oldest-file-no ) = 4 if sys-fnc-key = "8a" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-date to hold-st-mmdd call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if ctl-type = "Q" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags perform c024-24-hour-records thru c024-x until frm-duration-days less than 1 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move crn-rte-req to crn-rte-sel call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if ctl-type = "Q" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if ctl-type = "Q" move crn-rte-req to crn-rte-sel call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area close log-file if log-file-status not = "00" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move "YES" to report-has-printed-ok-sw move "NO" to report-has-printed-ok-sw move "NO" to report-has-printed-ok-sw call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area start ctl-file key greater than ctl-key if current-ctl-q-ok-to-process-sw = "YES" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move frm-call-date to hold-st-mmdd call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move "YES" to current-ctl-q-ok-to-process-sw call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area rewrite ctl-record call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if ws-ctl-s-rec-file-status ( ws-index ) = "1" and ws-ctl-s-start-date ( ws-index ) > ws-current-date call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move "YES" to unfinished-rec-in-last-blk-sw call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move ws-current-date to display-date call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if end-of-ctl-file-sw = "NO" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move ws-ctl-s-rec-file-status ( ws-index ) to oldest-file-status if ctl-type = "Q" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move flg-secondary-carrier to crn-condit call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move cs0034-next-date to hold-st-date-r1 rewrite ctl-record call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area

true sequential next sequential next true sequential next sequential next true false sequential next true true false false sequential next true AtEnd perform-exit sequential next true false true sequential next false true false sequential next sequential next true false sequential next true false true sequential next sequential next sequential next perform-exit sequential next true false sequential next true sequential next true false sequential next true true true true true false sequential next sequential next sequential next perform-exit true sequential next true true false perform-exit perform-exit sequential next true true sequential next true sequential next procedure call sequential next true sequential next sequential next true sequential next sequential next true sequential next sequential next sequential next InvalidKey true sequential next sequential next perform-exit true true sequential next

call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "AERROR" using aerror-file aerror-status call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move current-file-area to oldest-file-area move hold-st-mmdd to frm-call-date call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move spaces to com-receive-work-area if ws-com-recv-512-index not greater than 512 move hold-st-mmdd to frm-call-date call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move spaces to com-receive-work-area if ws-com-recv-512-index not greater than 512 add 1 to ws-inv-recs-returned-for-queue call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move current-file-area to oldest-file-area move "YES" to end-of-rawcall-data-file-sw if end-of-rawcall-data-file-sw = "NO" call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move spaces to com-receive-work-area if ws-com-recv-512-index not greater than 512 true if current-file-area < oldest-file-area call "AERROR" using aerror-file aerror-status if rdt-byte ( rdt-index ) = current-ctl-q-rec-delimiter if rdt-index = 512 move 1 to ws-com-recv-512-index move 1 to ws-com-recv-512-index write log-rec from queue-tot-rpt-line2 move spaces to com-receive-work-area if ws-com-recv-512-index not greater than 512 call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move spaces to com-receive-work-area if ws-com-recv-512-index not greater than 512 if ( frm-rte-requested not = spaces or frm-rte-selected not = spaces ) call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move hold-st-mmdd to frm-call-date move 1 to ws-line-counter perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 2 move "YES" to more-rawcall-files-to-prcss-sw move frm-tenant to crn-ten move hold-st-mmdd to frm-call-date move current-file-area to oldest-file-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move spaces to com-receive-work-area if ws-com-recv-512-index not greater than 512 if oldest-file-status = "3" if operator-wishes-to-terminat-sw = "Y" add 1 to ws-vld-recs-returned-for-queue move current-file-area to oldest-file-area read dsc-file next record with no lock move spaces to com-receive-work-area if ws-com-recv-512-index not greater than 512 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area write log-rec from end-of-report-line if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed write log-rec from queue-tot-files-prcssd-line move frm-duration-seconds to hold-duration-seconds move hold-st-mmdd to frm-call-date move "YES" to current-call-file-processed move "NO" to end-of-ctl-file-sw start ctl-file key greater than ctl-key move ws-current-date to display-date move ws-current-date to display-date move hold-st-mmdd to frm-call-date if operator-wishes-to-terminat-sw = "N" if operator-wishes-to-terminat-sw = "Y" move hold-st-mmdd to frm-call-date move ctl-key to last-read-ctl-q-rec-key call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area subtract 1 from frm-duration-days write crn-rec move ctl-key to last-read-ctl-q-rec-key call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area move ctl-key to last-read-ctl-q-rec-key write crn-rec open output log-file close log-file call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area perform 924-write-no-s-rec-log-report thru 924-x until report-has-printed-ok-sw = "YES" perform 925-write-queue-totals-log-rpt thru 925-x until report-has-printed-ok-sw = "YES" move "YES" to end-of-ctl-file-q-recs-sw start ctl-file key greater than ctl-key move hold-st-mmdd to frm-call-date if end-of-ctl-file-sw = "NO" move ws-current-date to display-date if ctl-type = "Q" move ctl-key to last-read-ctl-q-rec-key call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area

sequential next perform-exit sequential next true false false sequential next sequential next perform-exit true false false true false false false true true true sequential next true false false sequential next true false false false sequential next sequential next perform-exit sequential next true false false true AtEnd false true false false true sequential next sequential next sequential next perform-exit InvalidKey sequential next sequential next sequential next sequential next sequential next procedure call procedure call InvalidKey false true sequential next

call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if flg-continuation-flag = "Y" move frm-call-date to crn-date if rdt-index = 512 move spaces to com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move frm-call-date to crn-date call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if flg-continuation-flag = "Y" if rdt-index = 512 move spaces to com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags if rdt-index = 512 move spaces to com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags false move ws-index to oldest-file-no move "Y" to flg-continuation-flag move ws-com-recv-512-index to unfinished-rec-last-byte write log-rec from queue-tot-rpt-underline1 if rdt-index = 512 move spaces to com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if rdt-index = 512 move spaces to com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags add 1 to ws-no-rt-selreq-recs-for-queue move frm-call-date to crn-date perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 3 move 1 to ws-line-counter move frm-call-date to crn-date if rdt-index = 512 move spaces to com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move "3" to oldest-file-status move "Y" to dsc-at-end sequential next if rdt-index = 512 move spaces to com-receive-work-area call "USR000" using com-cd-variables com-receive-work-area flg-flags move ws-ctl-s-record-area to ctl-record write log-rec from queue-tot-rpt-line1 move hold-duration-seconds to frm-duration-seconds crn-duration read ctl-file if end-of-ctl-file-sw = "NO" move "YES" to end-of-ctl-file-sw move frm-call-date to crn-date if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) open output log-file if log-file-status = "00" if log-file-status = "00" move "YES" to end-of-ctl-file-q-recs-sw move "NO" to current-ctl-q-ok-to-process-sw if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" ) if ( ctl-status-switch-model not = "NEX22" and ctl-status-input-type = "B" )

true true sequential next true true sequential next true sequential next sequential next sequential next perform-exit sequential next true sequential next true sequential next sequential next true sequential next sequential next true sequential next perform-exit sequential next sequential next InvalidKey true false perform-exit true false perform-exit true false perform-exit true true true false perform-exit true false perform-exit

if ( frm-rte-requested not = spaces or frm-rte-selected not = spaces ) move com-receive-work-area to unfinished-rec-from-last-block move spaces to com-receive-work-area if ( frm-rte-requested not = spaces or frm-rte-selected not = spaces ) move com-receive-work-area to unfinished-rec-from-last-block move spaces to com-receive-work-area move com-receive-work-area to unfinished-rec-from-last-block move spaces to com-receive-work-area add 1 to ws-index call "USR000" using com-cd-variables com-receive-work-area flg-flags if flg-continuation-flag = "Y" write log-rec from queue-tot-rpt-line3 move com-receive-work-area to unfinished-rec-from-last-block move spaces to com-receive-work-area move com-receive-work-area to unfinished-rec-from-last-block move spaces to com-receive-work-area perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 2 move com-receive-work-area to unfinished-rec-from-last-block move spaces to com-receive-work-area if dsc-at-end equal to "Y" or dsc-type not equal to "T" move com-receive-work-area to unfinished-rec-from-last-block move spaces to com-receive-work-area if frm-rte-selected not = spaces false call "USR000" using com-cd-variables com-receive-work-area flg-flags write log-rec from queue-tot-rpt-line2 move "YES" to end-of-ctl-file-sw move spaces to ctl-key start ctl-file key greater than ctl-key if current-ctl-q-ok-to-process-sw = "YES" move spaces to ctl-key start ctl-file key greater than ctl-key if current-ctl-q-ok-to-process-sw = "YES" move spaces to ctl-key start ctl-file key greater than ctl-key if current-ctl-q-ok-to-process-sw = "YES" move "YES" to report-has-printed-ok-sw move "YES" to report-has-printed-ok-sw read ctl-file start ctl-file key greater than ctl-key if current-ctl-q-ok-to-process-sw = "YES" move spaces to ctl-key start ctl-file key greater than ctl-key if current-ctl-q-ok-to-process-sw = "YES"

true false true false false sequential next true sequential next false false perform-exit false false false sequential next perform-exit sequential next perform-exit true perform-exit true sequential next perform-exit true perform-exit true perform-exit true

move frm-rte-requested to crn-rte-req call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move frm-rte-selected to crn-rte-sel call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags IF flg-continuation-flag = "N" move "Y" to flg-continuation-flag write log-rec from queue-tot-rpt-line4 call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move 1 to ws-line-counter call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move "NO ROUTE DATA - REJECTED" to com-received-work-area-2 call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags move overflow-mssg to log-rec write log-rec from queue-tot-rpt-underline1 if end-of-ctl-file-sw = "NO" move ctl-record to ws-ctl-s-record-area if end-of-ctl-file-sw = "NO" move ctl-record to ws-ctl-s-record-area move "S" to ctl-type if end-of-ctl-file-sw = "NO" move ctl-record to ws-ctl-s-record-area if end-of-ctl-file-sw = "NO" if ctl-open-sw = space if end-of-ctl-file-sw = "NO" move ctl-record to ws-ctl-s-record-area

sequential next sequential next sequential next sequential next false sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next sequential next true false sequential next perform-exit true false sequential next perform-exit true false sequential next perform-exit false true perform-exit true false sequential next perform-exit

call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area if frm-rte-selected not = spaces call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USR010" using com-cd-variables com-receive-work-area frm-formated-record-area flg-flags write log-rec from queue-tot-rpt-underline2 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area perform 920-multiple-space-log-rpt thru 920-x until ws-line-counter > 3 call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area write log-rec from end-of-report-line write log-rec from queue-tot-rpt-line3 move ctl-record to ws-ctl-s-record-area start ctl-file key greater than ctl-key if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed start ctl-file key greater than ctl-key move ctl-record to ws-ctl-s-record-area start ctl-file key greater than ctl-key if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed start ctl-file key greater than ctl-key move ctl-record to ws-ctl-s-record-area start ctl-file key greater than ctl-key if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed start ctl-file key greater than ctl-key start ctl-file key greater than ctl-key open i-o ctl-file start ctl-file key greater than ctl-key move ctl-record to ws-ctl-s-record-area start ctl-file key greater than ctl-key if all-rawcall-data-files-full-sw = "YES" or oldest-file-no not = last-file-processed start ctl-file key greater than ctl-key

perform-exit false sequential next sequential next sequential next true true true true

if frm-rte-selected not = spaces call "USRO01" using flg-flags wrk-status-record com-cd-variables pbx-block-control com-receive-work-area frm-formated-record-area write log-rec from queue-tot-rpt-line5 write log-rec from queue-tot-rpt-line4 move ws-ctl-s-record-area to ctl-record move ws-ctl-s-record-area to ctl-record move ws-ctl-s-record-area to ctl-record move ws-ctl-s-record-area to ctl-record

sequential next sequential next sequential next sequential next sequential next sequential next

write log-rec from queue-tot-rpt-line6 write log-rec from queue-tot-rpt-underline2 rewrite ctl-record rewrite ctl-record rewrite ctl-record rewrite ctl-record

sequential next sequential next

write log-rec from end-of-report-line write log-rec from queue-tot-rpt-line5

sequential next

write log-rec from queue-tot-rpt-line6

sequential next

write log-rec from end-of-report-line

test

You might also like