File reconciliation processing method and device
By merging, splitting, and comparing financial transaction documents, the problem of long reconciliation processing time and low efficiency in existing technologies has been solved, and a highly efficient document reconciliation method has been achieved.
Patent Information
- Application Number
- CN202010980313.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technologies suffer from lock conflicts and index usage issues in financial transaction reconciliation processing, and require real-time monitoring of database performance, resulting in long processing times and low efficiency.
By merging the transaction files involved in the target date reconciliation, first and second reconciliation files are generated, and then split into multiple split files for comparison. Mismatched files are identified, and optional format conversion and sorting are performed to reduce the need for real-time database monitoring.
It achieves file reconciliation processing with low resource consumption, short time, and high efficiency, avoiding real-time database maintenance.
Smart Images

Figure CN112037003B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a file reconciliation processing method and device. Background Art
[0002] Financial transactions of financial institutions are generally subject to centralized clearing, and reconciliation is an important part of the clearing process. As transaction volume increases dramatically, the time required for reconciliation processing in systems that use mainframe platforms, VSAM (Virtual Storage Access Method), QSAM (Queued Sequential Access, a queued sequential access method, QSAM files are file systems that use sequential storage methods) and other data storage tools is getting longer and longer.
[0003] The existing technology generally uses database partition tables to perform reconciliation operations. However, this method will bring lock conflicts, index usage problems, etc., and requires real-time monitoring of database performance and additional database maintenance processing, such as backup and recovery, which takes a long time and is inefficient. Summary of the invention
[0004] The embodiment of the present invention provides a file reconciliation processing method, which has low resource consumption, short time required for file reconciliation processing, and high efficiency. The method includes:
[0005] Merging the transaction files involved in the target day reconciliation to generate a first reconciliation file and a second reconciliation file for reconciliation;
[0006] Splitting the first reconciliation file and the second reconciliation file into a plurality of first split files and a plurality of second split files respectively;
[0007] Comparing corresponding file data in the plurality of first split files and the plurality of second split files;
[0008] According to the comparison result, a first reconciliation mismatch file and a second reconciliation mismatch file are obtained, wherein the first reconciliation mismatch file is used to store file data that is present in the first reconciliation file but not in the second reconciliation file, and the second reconciliation mismatch file is used to store file data that is present in the second reconciliation file but not in the first reconciliation file.
[0009] Optionally, the first reconciliation file and the second reconciliation file are QSAM files;
[0010] After generating the first reconciliation file and the second reconciliation file for reconciliation, the method further includes:
[0011] The file data in the first reconciliation file and the second reconciliation file are sorted.
[0012] Optionally, after splitting the first reconciliation file and the second reconciliation file into a plurality of first split files and a plurality of second split files respectively, the method further includes:
[0013] The plurality of first split files and the plurality of second split files are converted into VSAM files.
[0014] Optionally, after obtaining the first reconciliation mismatch file and the second reconciliation mismatch file according to the comparison result, the method further includes:
[0015] A second comparison is performed on the first reconciliation mismatch file and the second reconciliation mismatch file.
[0016] Optionally, the comparison result also includes: a first daily reconciliation file and a second daily reconciliation file, the first daily reconciliation file is used to store the file data required for the next day reconciliation of the target day existing in the first reconciliation file, and the second daily reconciliation file is used to store the file data required for the next day reconciliation of the target day existing in the second reconciliation file.
[0017] The embodiment of the present invention further provides a file reconciliation processing device, which has low resource consumption, short time required for file reconciliation processing, and high efficiency. The device includes:
[0018] A merging module, used for merging the transaction files involved in the target day reconciliation to generate a first reconciliation file and a second reconciliation file for reconciliation;
[0019] A splitting module, used to split the first reconciliation file and the second reconciliation file into a plurality of first split files and a plurality of second split files respectively;
[0020] A comparison module, used for comparing corresponding file data in the plurality of first split files and the plurality of second split files;
[0021] The file processing module is used to obtain a first reconciliation mismatch file and a second reconciliation mismatch file according to the comparison result, wherein the first reconciliation mismatch file is used to store file data that is present in the first reconciliation file but not in the second reconciliation file, and the second reconciliation mismatch file is used to store file data that is present in the second reconciliation file but not in the first reconciliation file.
[0022] Optionally, the first reconciliation file and the second reconciliation file are QSAM files;
[0023] The device also includes:
[0024] The sorting module is used to sort the file data in the first reconciliation file and the second reconciliation file.
[0025] Optionally, the device further comprises:
[0026] The format conversion module is used to convert the formats of the multiple first split files and the multiple second split files into VSAM files.
[0027] Optionally, the device further comprises:
[0028] The secondary comparison module is used to perform a secondary comparison on the first reconciliation mismatch file and the second reconciliation mismatch file.
[0029] Optionally, the comparison result also includes: a first daily reconciliation file and a second daily reconciliation file, the first daily reconciliation file is used to store the file data required for the next day reconciliation of the target day existing in the first reconciliation file, and the second daily reconciliation file is used to store the file data required for the next day reconciliation of the target day existing in the second reconciliation file.
[0030] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.
[0031] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method.
[0032] In an embodiment of the present invention, transaction files involved in the target day reconciliation are merged to generate a first reconciliation file and a second reconciliation file for reconciliation, and the first reconciliation file and the second reconciliation file are respectively split into a plurality of first split files and a plurality of second split files, and the corresponding file data in the plurality of first split files and the plurality of second split files are compared, and according to the comparison result, a first reconciliation mismatch file and a second reconciliation mismatch file are obtained, without the need to monitor the database performance in real time, add maintenance processing for the database, etc., with low resource consumption, short time required for file reconciliation processing, and high efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0034] Figure 1 Flow chart of a file reconciliation processing method in an embodiment of the present invention;
[0035] Figure 2A flowchart of sorting file data in a first reconciliation file and a second reconciliation file in an embodiment of the present invention;
[0036] Figure 3 A flowchart of performing format conversion on a plurality of first split files and a plurality of second split files in an embodiment of the present invention;
[0037] Figure 4 Flow chart of a file reconciliation processing method in an embodiment of the present invention;
[0038] Figure 5 Schematic diagram of the structure of the file reconciliation processing device in an embodiment of the present invention;
[0039] Figure 6 A schematic diagram of a structure for sorting file data in a first reconciliation file and a second reconciliation file in an embodiment of the present invention;
[0040] Figure 7 It is a structural schematic diagram of format conversion of multiple first split files and multiple second split files in an embodiment of the present invention;
[0041] Figure 8 Schematic diagram of the structure of the file reconciliation processing device in an embodiment of the present invention;
[0042] Fig. 9 This is a specific example diagram of performing file reconciliation processing in an embodiment of the present invention;
[0043] Fig.10 This is a specific example diagram of performing file reconciliation processing in an embodiment of the present invention;
[0044] Fig.11 It is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0046] Figure 1 A flowchart of a file reconciliation processing method provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0047] Step 101: merge transaction files involved in the target day reconciliation to generate a first reconciliation file and a second reconciliation file for reconciliation.
[0048] In the embodiment, since the files involved in the reconciliation may include multiple files, the transaction files involved in the target day reconciliation include the transaction files of all parties, for example, multiple transaction files that need to be reconciled on the bank side, multiple transaction files that need to be reconciled on the external system side, etc. In addition, the files involved in the reconciliation also include: files involved in the reconciliation on the next day of the target day. In this process, the formats of all files must be consistent, and the keywords of the fields in the files must be the same.
[0049] Step 102: split the first reconciliation file and the second reconciliation file into a plurality of first split files and a plurality of second split files respectively.
[0050] In specific implementation, the first reconciliation file and the second reconciliation file can be split into multiple first split files and multiple second split files respectively with a fixed number of records. Each of the first split files and the second split files can be configured with parameters. At the same time, the multiple first split files and multiple second split files can operate in parallel, thereby shortening the data processing time and improving the system work efficiency.
[0051] Step 103: Compare corresponding file data in the plurality of first split files and the plurality of second split files.
[0052] In a specific implementation, the comparison of corresponding file data in a plurality of first split files and a plurality of second split files can be processed in parallel, and the job data for parallel processing can be configured according to the system allowable value.
[0053] Step 104: According to the comparison result, a first reconciliation mismatch file and a second reconciliation mismatch file are obtained, wherein the first reconciliation mismatch file is used to store file data that is present in the first reconciliation file but not in the second reconciliation file, and the second reconciliation mismatch file is used to store file data that is present in the second reconciliation file but not in the first reconciliation file. For a specific file reconciliation processing flow chart, see Fig.10 .
[0054] Depend on Figure 1 It can be seen that the file reconciliation processing method provided by the embodiment of the present invention merges the transaction files involved in the target day reconciliation to generate a first reconciliation file and a second reconciliation file for reconciliation, and splits the first reconciliation file and the second reconciliation file into multiple first split files and multiple second split files respectively, compares the corresponding file data in the multiple first split files and the multiple second split files, and obtains the first reconciliation mismatch file and the second reconciliation mismatch file according to the comparison result. There is no need to monitor the database performance in real time, add maintenance processing for the database, etc., resource consumption is small, the time required for file reconciliation processing is short, and the efficiency is high.
[0055] Figure 21 is a flowchart of sorting file data in a first reconciliation file and a second reconciliation file according to an embodiment of the present invention, wherein the first reconciliation file and the second reconciliation file are QSAM files, such as Figure 2 As shown, after generating the first reconciliation file and the second reconciliation file for reconciliation, the method further includes:
[0056] Step 201: sort the file data in the first reconciliation file and the second reconciliation file.
[0057] In the specific implementation, DFSORT (operating system command) is used to sort the file data (QSAM files) in the first reconciliation file and the second reconciliation file. It should be noted that due to the processing mechanism of VSAM-KSDS itself, when QSAM data is written into VSAM, the system will automatically reorganize the data in ascending order according to its key value, thereby reducing the processing efficiency of the entire reconciliation operation.
[0058] Figure 3 The flowchart of the embodiment of the present invention for converting the format of multiple first split files and multiple second split files is to facilitate the subsequent comparison of the two files and improve the reconciliation efficiency, such as Figure 3 As shown, after splitting the first reconciliation file and the second reconciliation file into a plurality of first split files and a plurality of second split files respectively, the method further includes:
[0059] Step 301: Convert the formats of multiple first split files and multiple second split files into VSAM files.
[0060] In the embodiment, since the VSAM file has a key value, it is convenient to compare, so the multiple first split files and the multiple second split files can be converted into VSAM files. In specific implementation, the ZOS operating system command IDCAMS can be used to convert the QSAM file into a VSAM file.
[0061] Figure 4 A flowchart of a file reconciliation processing method provided by an embodiment of the present invention, such as Figure 4 As shown, after obtaining the first reconciliation mismatch file and the second reconciliation mismatch file according to the comparison result, the method further includes:
[0062] Step 401: perform a secondary comparison on the first reconciliation mismatch file and the second reconciliation mismatch file.
[0063] Due to file splitting, the boundary records of the files may be misplaced (for example, a record is in the first first split file of the first reconciliation file, while the corresponding record is in the second second split file of the second reconciliation file). Therefore, in order to ensure the accuracy of the reconciliation result, a second comparison can be performed on the first reconciliation unmatched file and the second reconciliation unmatched file, and the same records in the two files can be deleted.
[0064] In an embodiment of the present invention, the comparison result also includes: a first daily reconciliation file and a second daily reconciliation file, the first daily reconciliation file is used to store the file data required for the next day reconciliation of the target day existing in the first reconciliation file, and the second daily reconciliation file is used to store the file data required for the next day reconciliation of the target day existing in the second reconciliation file.
[0065] In specific implementation, the first day reconciliation file and the second day reconciliation file can be added to multiple transaction files of the next day reconciliation for processing. For details, please refer to Fig. 9 .
[0066] Based on the same inventive concept, a file reconciliation processing device is also provided in an embodiment of the present invention, as described in the following embodiments. Since the principle of solving the problem by the file reconciliation processing device is similar to that of the file reconciliation processing method, the implementation of the file reconciliation processing device can refer to the implementation of the file reconciliation processing method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0067] Figure 5 A schematic diagram of the structure of a file reconciliation processing device provided by an embodiment of the present invention, such as Figure 5 As shown, the device comprises:
[0068] The merging module 501 is used to merge the transaction files involved in the target day reconciliation to generate a first reconciliation file and a second reconciliation file for reconciliation.
[0069] The splitting module 502 is used to split the first reconciliation file and the second reconciliation file into a plurality of first split files and a plurality of second split files respectively.
[0070] The comparison module 503 is used to compare the corresponding file data in the multiple first split files and the multiple second split files.
[0071] The file processing module 504 is used to obtain a first reconciliation mismatch file and a second reconciliation mismatch file according to the comparison result, wherein the first reconciliation mismatch file is used to store file data that is present in the first reconciliation file but not in the second reconciliation file, and the second reconciliation mismatch file is used to store file data that is present in the second reconciliation file but not in the first reconciliation file.
[0072] Figure 6 Schematic diagram of a structure for sorting file data in a first reconciliation file and a second reconciliation file according to an embodiment of the present invention, wherein the first reconciliation file and the second reconciliation file are QSAM files, such as Figure 6 As shown, the device also includes:
[0073] The sorting module 601 is used to sort the file data in the first reconciliation file and the second reconciliation file.
[0074] Figure 7 FIG. 1 is a schematic diagram of a structure for converting the format of a plurality of first split files and a plurality of second split files according to an embodiment of the present invention. Figure 7 As shown, the device also includes:
[0075] The format conversion module 701 is used to convert the formats of the multiple first split files and the multiple second split files into VSAM files.
[0076] Figure 8 The structure of the file reconciliation processing device provided by the embodiment of the present invention is shown as follows: Figure 8 As shown, the device also includes:
[0077] The secondary comparison module 801 is used to perform a secondary comparison on the first reconciliation mismatch file and the second reconciliation mismatch file.
[0078] In an embodiment of the present invention, the comparison result also includes: a first daily reconciliation file and a second daily reconciliation file, the first daily reconciliation file is used to store the file data required for the next day reconciliation of the target day existing in the first reconciliation file, and the second daily reconciliation file is used to store the file data required for the next day reconciliation of the target day existing in the second reconciliation file.
[0079] In order to achieve the above object, according to another aspect of the present application, a computer device is also provided. Fig.11 As shown, the computer device includes a memory, a processor, a communication interface and a communication bus. A computer program that can be executed on the processor is stored in the memory. When the processor executes the computer program, the steps in the above-mentioned embodiment method are implemented.
[0080] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0081] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and units, such as the corresponding program units in the above method embodiments of the present invention. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiments.
[0082] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0083] The one or more units are stored in the memory, and when executed by the processor, the method in the above embodiment is performed.
[0084] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method.
[0085] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0086] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0087] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0088] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0089] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for processing document reconciliation, It is characterized in that include: Merging the transaction files involved in the target day reconciliation to generate a first reconciliation file and a second reconciliation file for reconciliation; The first reconciliation file and the second reconciliation file are respectively split into a plurality of first split files and a plurality of second split files according to a fixed number of records; and each of the first split files and the second split files is parameterized; Comparing corresponding file data in the plurality of first split files and the plurality of second split files; According to the comparison result, a first reconciliation mismatch file and a second reconciliation mismatch file are obtained, wherein the first reconciliation mismatch file is used to store file data present in the first reconciliation file but not in the second reconciliation file, and the second reconciliation mismatch file is used to store file data present in the second reconciliation file but not in the first reconciliation file; Comparing corresponding file data in the plurality of first split files and the plurality of second split files includes: Comparing and processing corresponding file data in a plurality of first split files and a plurality of second split files in parallel, and configuring the parallel processing operation data according to a system allowable value; The first reconciliation file and the second reconciliation file are QSAM files; After generating the first reconciliation file and the second reconciliation file for reconciliation, the method further includes: Use the operating system command DFSORT to sort the file data in the first reconciliation file and the second reconciliation file; After splitting the first reconciliation file and the second reconciliation file into a plurality of first split files and a plurality of second split files respectively, the method further includes: The ZOS operating system command IDCAMS is used to convert the multiple first split files and the multiple second split files into VSAM files.
2. The method according to claim 1, It is characterized in that After obtaining the first reconciliation mismatch file and the second reconciliation mismatch file according to the comparison result, the method further includes: A second comparison is performed on the first reconciliation mismatch file and the second reconciliation mismatch file.
3. The method according to claim 1, It is characterized in that The comparison result also includes: a first daily reconciliation file and a second daily reconciliation file, the first daily reconciliation file is used to store the file data required for the reconciliation of the next day of the target day that exists in the first reconciliation file, and the second daily reconciliation file is used to store the file data required for the reconciliation of the next day of the target day that exists in the second reconciliation file.
4. A file reconciliation processing device, It is characterized in that include: A merging module, used for merging the transaction files involved in the target day reconciliation to generate a first reconciliation file and a second reconciliation file for reconciliation; A splitting module, used to split the first reconciliation file and the second reconciliation file into a plurality of first split files and a plurality of second split files respectively according to a fixed number of records; and each of the first split files and the second split files is parameterized; A comparison module, used for comparing corresponding file data in the plurality of first split files and the plurality of second split files; A file processing module, configured to obtain a first reconciliation mismatch file and a second reconciliation mismatch file according to the comparison result, wherein the first reconciliation mismatch file is used to store file data present in the first reconciliation file but not in the second reconciliation file, and the second reconciliation mismatch file is used to store file data present in the second reconciliation file but not in the first reconciliation file; A comparison module, specifically used for performing parallel processing on the comparison of corresponding file data in a plurality of first split files and a plurality of second split files, wherein the parallel processing operation data is configured according to a system allowable value; The first reconciliation file and the second reconciliation file are QSAM files; The device further includes: a sorting module, configured to use an operating system command DFSORT to sort the file data in the first reconciliation file and the second reconciliation file; The device further comprises: a format conversion module, which is used to convert the formats of the plurality of first split files and the plurality of second split files into VSAM files by using the ZOS operating system command IDCAMS.
5. The device as claimed in claim 4, It is characterized in that The device also includes: The secondary comparison module is used to perform a secondary comparison on the first reconciliation mismatch file and the second reconciliation mismatch file.
6. The device according to claim 4, It is characterized in that The comparison result also includes: a first daily reconciliation file and a second daily reconciliation file, the first daily reconciliation file is used to store the file data required for the reconciliation of the next day of the target day that exists in the first reconciliation file, and the second daily reconciliation file is used to store the file data required for the reconciliation of the next day of the target day that exists in the second reconciliation file.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 3 is implemented.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Account checking method and system, computer equipment and storage medium
CN110287200A
Account checking method and device and server
CN110390586A
