Browse Prior Art Database

Method for sorting z/OS files containing variable length records by control field locations relative to the end of a record

IP.com Disclosure Number: IPCOM000021699D
Original Publication Date: 2004-Feb-03
Included in the Prior Art Database: 2004-Feb-03

Publishing Venue

IBM

Abstract

The limitation imposed by the requirement that sort control field location must be specified relative to the beginning of an input record is circumvented by allowing a file to be sorted by control fields which are located relative to the end of the record. An intermediate file is created where the control fields have been appended to the front of the record. Because they are now at the front, the appended fields can be described by the SORT FIELDS parameter, and traditional sort can handle this intermediate file. Control statements are read to indicate where the control fields are and how long they are. Because it is control statement driven, this concept can be used to create a generalized utility which can be used to process any file containing variable-length records without any customized programming.