Method and system for implementing header and trailer record validations
AssigneeJPMorgan Chase Bank, N.A.
InventorRobert A. Winiarski
Life of this patent
Estimating the term…
Abstract
The invention relates to header and trailer record validation for batch files. According to an embodiment of the present invention, a computer implemented system implements a Header/Trailer Validation Tool. The Header/Trailer Validation Tool may read a control file containing pertinent information of each file to be validated. Key information may be determined at run time and the Header/Trailer Validation Tool may process the files dynamically. An embodiment of the present invention may also process any number of files in a single execution—this is particularly useful because in some cases a set of files may be received from another application, but not all the files may be used at the same time.
Claims16
A computer implemented system that implements a header and trailer validation tool for batch files, the system comprising:
- a memory interface that accesses a database table;
- an interactive interface that receives a user selection;
- and
- a processor, coupled to the memory interface and the interactive interface, that executes a set of JCL (Job Control Language) program lines inserted into a parameter driven program and further configured to perform the steps comprising:
- receiving a plurality of files from a plurality of applications;
- for each file, accessing a control card to identify a header format and a trailer format;
- retrieving a filename from the control card;
- dynamically reading a file corresponding to the filename;
- for each record of the file, identifying a header field based on the header format and identify a trailer field based on the trailer format;
- at the end of the file, confirming that the header field corresponds to the header format and confirm that the trailer field matches a number of records in the file;
- and
- wherein the trailer format includes the header field and the trailer field as part of the count.
A computer implemented method that implements a header and trailer validation tool for batch files, the method comprising the steps of:
- executing a set of JCL (Job Control Language) program lines inserted into a parameter driven program;
- receiving a plurality of files from a plurality of applications;
- for each file, accessing a control card to identify a header format and a trailer format;
- retrieving a filename from the control card;
- dynamically reading a file corresponding to the filename;
- for each record of the file, identifying a header field based on the header format and identify a trailer field based on the trailer format;
- at the end of the file, confirming that the header field corresponds to the header format and confirm that the trailer field matches a number of records in the file;
- and
- wherein the trailer format includes the header field and the trailer field as part of the count.
Dependencies are inferred from the claim text.