00001  IDENTIFICATION DIVISION.                                         06/29/99
00002  PROGRAM-ID.             DTSBR717.                                DTSBR717
00003  AUTHOR.                 MT DEPT OF LABOR/UI PROGRAMMING SECTION     LV006
00004                          MODIFIED BY TRW/BDM OCT. 1998.              CL**2
00005  DATE-WRITTEN.           DECEMBER 1994.                           DTSBR717
00006  DATE-COMPILED.                                                   DTSBR717
00007                                                                      CL**4
00008 *****                                                             DTSBR717
00009 *                                                                    CL**3
00010 *    CALLING SEQUENCE:  DTSBD400 CALLS                               CL**3
00011 *                       DTSBE717 WHICH UPDATES DTSIR717              CL**3
00012 *                       DTSBR717 READS DTSIR715 RECORDS.             CL**3
00013 *                                                                 DTSBR717
00014 *    FUNCTION:  RQC COLLECTION UNIVERSE RECORD BUILD.             DTSBR717
00015 *                                                                 DTSBR717
00016 *                                                                 DTSBR717
00017 *    MODIFICATION HISTORY:                                        DTSBR717
00018 *                                                                 DTSBR717
00019 * 12-10-94 INITIAL DEVELOPMENT                                    DTSBR717
00020 *          REFERENCE RFP #RAP             AUTHOR OF CHANGE - SFW  DTSBR717
00021 *                                                                 DTSBR717
00022 * 04-07-95 RECOMPILED FOR R991-UNIT-DSCR PER CHANGE REQUEST 064   DTSBR717
00023 *          REFERENCE RFP #RAP             AUTHOR OF CHANGE - SFW  DTSBR717
00024 *                                                                 DTSBR717
00025 * MM-DD-YY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  DTSBR717
00026 *          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  DTSBR717
00027 *          REFERENCE RFP #****            AUTHOR OF CHANGE - XXX  DTSBR717
00028 *                                                                 DTSBR717
00029 *                                                                 DTSBR717
00030 *    DESCRIPTION:                                                 DTSBR717
00031 *                                                                 DTSBR717
00032 *        THIS MODULE CREATES A FILE OF RQC COLLECTIONS            DTSBR717
00033 *        TRANSACTION RECORDS FOR EXPORT TO THE DEPARTMENTAL RQC   DTSBR717
00034 *        SYSTEM.                                                  DTSBR717
00035 *                                                                 DTSBR717
00036 *        THIS IS AN "AT LEAST ONCE" MODULE.                       DTSBR717
00037 *                                                                 DTSBR717
00038 *                                                                 DTSBR717
00039 *    RECORDS READ:                                                DTSBR717
00040 *                                                                 DTSBR717
00041 *        NONE.                                                    DTSBR717
00042 *                                                                 DTSBR717
00043 *                                                                 DTSBR717
00044 *    PRINTED OUTPUTS:                                             DTSBR717
00045 *                                                                 DTSBR717
00046 *        NONE.                                                    DTSBR717
00047 *                                                                 DTSBR717
00048 *                                                                 DTSBR717
00049 *    RECORDS WRITTEN:                                             DTSBR717
00050 *                                                                 DTSBR717
00051 *        717R1  RQC COLLECTIONS UNIVERSE RECORDS.                 DTSBR717
00052 *                                                                 DTSBR717
00053 *                                                                 DTSBR717
00054 *    MODULES CALLED:                                              DTSBR717
00055 *                                                                 DTSBR717
00056 *        GETSER   DATASET INFORMATION MODULE                      DTSBR717
00057 *        DTSBR991 EXPORT CONTROL REPORT MODULE                       CL**3
00058 *                                                                 DTSBR717
00059 *                                                                 DTSBR717
00060 *****                                                             DTSBR717
00061      EJECT                                                        DTSBR717
00062  ENVIRONMENT DIVISION.                                            DTSBR717
00063                                                                      CL**4
00064  INPUT-OUTPUT SECTION.                                            DTSBR717
00065                                                                      CL**4
00066  FILE-CONTROL.                                                    DTSBR717
00067      SELECT EXPORT-FILE ASSIGN TO RPT717R1                        DTSBR717
00068          FILE STATUS IS WS-FILE-STATUS.                           DTSBR717
00069                                                                      CL**4
00070  DATA DIVISION.                                                   DTSBR717
00071                                                                      CL**4
00072  FILE SECTION.                                                    DTSBR717
00073                                                                      CL**4
00074  FD  EXPORT-FILE                                                  DTSBR717
00075      RECORDING MODE IS F                                          DTSBR717
00076      BLOCK CONTAINS 0 RECORDS.                                    DTSBR717
00077  01  EXPORT-REC                     PIC  X(71).                   DTSBR717
00078      EJECT                                                        DTSBR717
00079  WORKING-STORAGE SECTION.                                         DTSBR717
000795 77  PAN-VALET PICTURE X(24) VALUE '006DTSBR717  06/29/99'.       DTSBR717
00080                                                                      CL**4
00081  01  WRK-AREA.                                                    DTSBR717
00082      05  WRK-ABEND-CD                PIC S9(04)  COMP  VALUE +717.DTSBR717
00083      05  FIRST-TIME-IND              PIC  X(01)  VALUE 'Y'.       DTSBR717
00084      05  WS-FILE-STATUS              PIC  X(02).                  DTSBR717
00085          88  FILE-OK-88                          VALUE '00'.      DTSBR717
00086                                                                      CL**4
00087  01  WS-GETSER-PARAMETERS.                                        DTSBR717
00088      05  WS-GETSER-VOL-SER           PIC  X(30).                  DTSBR717
00089      05  WS-GETSER-DATASET-NAME      PIC  X(44).                  DTSBR717
00090      05  WS-GETSER-VOLUME-COUNT      PIC  9(03).                  DTSBR717
00091      05  WS-GETSER-DD-NAME           PIC  X(08).                  DTSBR717
00092      05  WS-GETSER-STEP-NAME         PIC  X(08).                  DTSBR717
00093                                                                      CL**4
00094  01  WS-EXPORT-REC.                                               DTSBR717
00095      05  WS-SEQ-NUMBER               PIC  9(08).                  DTSBR717
00096      05  FILLER                      PIC  X(13)                   DTSBR717
00097             VALUE 'CS05111000000'.                                DTSBR717
00098      05  WS-EMP-NO                   PIC  9(06).                  DTSBR717
00099      05  WS-AMT-DUE                  PIC  9(11).                  DTSBR717
00100      05  WS-RUN-DATE                 PIC  9(08).                  DTSBR717
00101      05  FILLER                      PIC  X(25)  VALUE SPACES.    DTSBR717
00102      EJECT                                                        DTSBR717
00103  01  R991-REC.                                                    DTSBR717
00104  ++INCLUDE  DTSIR991                                                 CL**3
00105      EJECT                                                        DTSBR717
00106  LINKAGE SECTION.                                                 DTSBR717
00107                                                                      CL**4
00108  01  LRCM-LINK-AREA.                                              DTSBR717
00109  ++INCLUDE  DTSILRCM                                                 CL**3
00110      EJECT                                                        DTSBR717
00111  01  R717-REC.                                                    DTSBR717
00112  ++INCLUDE  DTSIR717                                                 CL**3
00113      EJECT                                                        DTSBR717
00114  PROCEDURE DIVISION USING LRCM-LINK-AREA                          DTSBR717
00115                           R717-REC.                               DTSBR717
00116                                                                      CL**4
00117      IF FIRST-TIME-IND = 'Y'                                      DTSBR717
00118          PERFORM I1000-INITIATE                                      CL**4
00119             THRU I1000-EXIT                                          CL**4
00120          MOVE 'N' TO FIRST-TIME-IND.                              DTSBR717
00121                                                                      CL**4
00122      IF LRCM-EOR-88                                               DTSBR717
00123          PERFORM T1000-TERMINATE                                     CL**4
00124             THRU T1000-EXIT                                          CL**4
00125      ELSE                                                         DTSBR717
00126          PERFORM P1000-PROCESS                                       CL**4
00127             THRU P1000-EXIT.                                         CL**4
00128                                                                      CL**4
00129      GOBACK.                                                      DTSBR717
00130      EJECT                                                        DTSBR717
00131  I1000-INITIATE.                                                  DTSBR717
00132                                                                      CL**4
00133      OPEN OUTPUT EXPORT-FILE.                                        CL**5
00134                                                                      CL**4
00135      MOVE '717'                  TO R991-MOD.                        CL**4
00136      MOVE 'TPS DESK'             TO R991-ROUTE1.                     CL**6
00137      MOVE 'ENFORCEMENT UNIT    ' TO R991-ROUTE2.                     CL**5
00138      MOVE 'COLLECTIONS UNIVERSE RECORDS'                          DTSBR717
00139                                  TO R991-DATA-TYPE.                  CL**4
00140      MOVE 'RECORDS'              TO R991-UNIT-DSCR.                  CL**4
00141      MOVE +0                     TO R991-UNIT-COUNT                  CL**4
00142                                     WS-SEQ-NUMBER.                   CL**4
00143                                                                      CL**4
00144  I1000-EXIT.                                                      DTSBR717
00145      EXIT.                                                        DTSBR717
00146      EJECT                                                        DTSBR717
00147  P1000-PROCESS.                                                   DTSBR717
00148                                                                      CL**4
00149      MOVE R717-EMP-NO   TO WS-EMP-NO.                                CL**4
00150      MOVE R717-AMT-DUE  TO WS-AMT-DUE.                               CL**4
00151      MOVE R717-RUN-DATE TO WS-RUN-DATE.                           DTSBR717
00152      ADD +1             TO R991-UNIT-COUNT                           CL**4
00153                            WS-SEQ-NUMBER.                            CL**4
00154                                                                      CL**4
00155      WRITE EXPORT-REC FROM WS-EXPORT-REC.                            CL**5
00156                                                                      CL**4
00157      IF FILE-OK-88                                                DTSBR717
00158          NEXT SENTENCE                                            DTSBR717
00159      ELSE                                                         DTSBR717
00160          PERFORM S999-ABEND                                          CL**4
00161             THRU S999-EXIT.                                          CL**4
00162                                                                      CL**4
00163  P1000-EXIT.                                                      DTSBR717
00164      EXIT.                                                        DTSBR717
00165      EJECT                                                        DTSBR717
00166  T1000-TERMINATE.                                                 DTSBR717
00167                                                                      CL**4
00168 *    IF R991-UNIT-COUNT = +0                                         CL**5
00169 *        MOVE SPACES TO R991-DATASET-NAME                            CL**5
00170 *    ELSE                                                            CL**5
00171 *        CALL 'GETSER' USING EXPORT-FILE                             CL**5
00172 *                            WS-GETSER-VOL-SER                       CL**5
00173 *                            WS-GETSER-DATASET-NAME                  CL**5
00174 *                            WS-GETSER-VOLUME-COUNT                  CL**5
00175 *                            WS-GETSER-DD-NAME                       CL**5
00176 *                            WS-GETSER-STEP-NAME                     CL**5
00177 *        MOVE WS-GETSER-DATASET-NAME TO R991-DATASET-NAME.           CL**5
00178                                                                      CL**4
00179      PERFORM R991-EXPORT-CONTROL-REPORT                              CL**4
00180         THRU R991-EXIT.                                              CL**4
00181                                                                      CL**4
00182      CLOSE EXPORT-FILE.                                           DTSBR717
00183                                                                      CL**4
00184  T1000-EXIT.                                                      DTSBR717
00185      EXIT.                                                        DTSBR717
00186      EJECT                                                        DTSBR717
00187  R991-EXPORT-CONTROL-REPORT.                                      DTSBR717
00188                                                                      CL**4
00189      CALL 'DTSBR991' USING LRCM-LINK-AREA                            CL**3
00190                            R991-REC.                              DTSBR717
00191                                                                      CL**4
00192  R991-EXIT.                                                       DTSBR717
00193      EXIT.                                                        DTSBR717
00194                                                                      CL**4
00195  S999-ABEND.                                                      DTSBR717
00196                                                                      CL**4
00197      CALL 'DTSBU999' USING WRK-ABEND-CD.                             CL**3
00198                                                                      CL**4
00199  S999-EXIT.                                                       DTSBR717
00200      EXIT.                                                        DTSBR717
