Record trimming method, apparatus, and system to improve processing in a sort utility
First Claim
1. A method for trimming data elements matching a specified value from data records, the method comprising:
- scanning control statements associated with a set of data records;
finding at least one trimming control parameter within the control statements;
scanning from the end of a data record until a data element does not match a value specified by the at least one trimming control parameter; and
modifying a record length associated with the data record.
1 Assignment
0 Petitions
Accused Products
Abstract
Control statements related to record input, output, filtering, and formatting in a data processing system are scanned by a parser to find one or more trimming control parameters referenced in the control statements. A record trimming module scans selected data records backwards beginning at the end of the record. A record length associated with a data record is decremented as trailing values that match a value specified in the trimming control parameters are trimmed from the processed records. Processed data records are output to a specified file. The present invention increases the efficiency of processing data records within data processing applications such as pipelined sort utilities.
-
Citations
21 Claims
-
1. A method for trimming data elements matching a specified value from data records, the method comprising:
-
scanning control statements associated with a set of data records;
finding at least one trimming control parameter within the control statements;
scanning from the end of a data record until a data element does not match a value specified by the at least one trimming control parameter; and
modifying a record length associated with the data record. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An apparatus for trimming specified trailing values from a record associated with a set of data records, the apparatus comprising:
-
means for scanning control statements associated with a set of data records;
means for finding at least one trimming control parameter within the control statements; and
means for scanning backwards from the end of the record until a current value does not match a value specified by the at least one trimming control parameter. - View Dependent Claims (8, 9, 10)
-
-
11. A system for processing data records, the system comprising:
-
a computer configured to process data records; and
a utility for processing data records, the utility comprising a parser configured to scan control statements and find at least one trimming control parameter referenced in the control statements, and a record trimming module configured to eliminate trailing values within data records.
-
- 13. The system of claim 13, wherein the record trimming module is further configured to scan a data record backwards.
-
18. A method for trimming data elements matching a specified value from data records, the method comprising:
-
scanning control statements associated with a set of data records;
finding at least one trimming control parameter within the control statements;
scanning from the end of a data record until a data element does not match a value specified by the at least one trimming control parameter; and
modifying a record length associated with the data record. - View Dependent Claims (20)
-
-
19. A computer readable storage medium comprising computer readable program code for trimming trailing values from data records, the program code configured to:
-
scan control statements associated with a set of data records;
find at least one trimming control parameter referenced in the control statements;
determine the length of a data record;
scan the data record backwards starting at the last data element;
eliminate each data element having a value that matches a value specified by the at least one trimming control parameter; and
modify a record length associated with the data record.
-
-
21. A method for trimming data elements matching a specified value from data records, the method comprising:
-
scanning control statements associated with a set of data records;
scanning from the end of a data record until a data element does not match a value specified by a trimming control parameter; and
modifying a record length associated with the data record; and
determining the length of the record.
-
Specification