Cobol program sort sequential file




















Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 0. A duplicate key exist for at least one alternate key for which duplicates are allowed.

Possible causes:. For a READ statement, the key value for the current key is equal to the value of that same key in the next record in the current key of reference. A READ statement was successfully executed, but the length of the record being processed did not conform to the fixed file attributes for that file. It means the size of the record just read does not agree with the size specified in the program. This does not apply to VSAM sequential files.

Sequential files only. A sequential READ statement was attempted and no next logical record existed in the file because the end of file EOF had been reached, or the first READ was attempted on an optional input file that was not present.

A sequential READ statement was attempted for a relative file, and the number of significant digits in the relative record number is greater than the size specified for the relative key data item. Indicates a sequence error. Prime record key values must be in ascending order. Indicates a duplicate key condition. An attempt has been made to access a record, identified by a record key prime or alternate for indexed file, relative key for relative files , and that record does not exist in the file.

Operation failed because an attempt was made to write beyond the externally defined boundaries for an indexed or relative file; or a sequential write operation was attempted for a relative file but the number of digits in the relative key value exceeded the size specified for the relative key data item.

Or Disk full. The leftmost data-name is the major key, the next data-name is the next most significant key, and so forth. Specifies the input files. During the SORT operation, all the records from input-file, output-file are transferred to file-name An indexed sequential file consists of records that can be accessed sequentially.

Direct access is also possible. Records can be accessed randomly if the primary key is known. Index file is used to get the address of a record and then the record is fetched from the data file. Sorted index is maintained in this file system which relates the key value to the position of the record in the file.

A relative file consists of records ordered by their relative address. Records can be accessed using relative key.



0コメント

  • 1000 / 1000