Nassau Community College: Nancy Stern Hofstra University Robert A. Stern
Nassau Community College: Nancy Stern Hofstra University Robert A. Stern
Nassau Community College: Nancy Stern Hofstra University Robert A. Stern
Programming “Copyright @ 2000 John Wiley & Sons, In. All rights
reserved. Reproduction or translation of this work
beyond that permitted in Section 117 of the 1976
Nancy Stern
United States Copyright Act without the express
permission of the copyright owner is unlawful.
Request for further information should be addressed
to the permissions Department , John Wily & Sons,
Hofstra University Inc. The purchaser may make back-up copies for
his/her own use only and not for distribution or
resale. The Publisher assumes no responsibility for
errors, omissions, or damages, caused by the use of
Nassau Community
College 9th Edition
PowerPoint Presentation:
Richard H. Baum, Ph.D.
DeVry Institute of Technology
CHAPTER 13
Sequential File
Processing
Solution: transaction
4. ( T or F ) In a sequential update
procedure, all files must be in sequence
by the same key field.
Solution: T
Structured COBOL Programming, Stern & Stern, 9th Ed
ition
SELF-TEST
Solution: T
Structured COBOL Programming, Stern & Stern, 9th Ed
ition
VALIDITY CHECKING IN
UPDATE PROCEDURES
A. T-KEY = M-KEY
1. Delete the master record if T-CODE indicates
deletion.
2. Change or update the master record if T-
CODE indicates update.
3. Process the transaction record as an error if
T-CODE indicates new record.
700-READ-TRANS.
READ TRANS-FILE-IN
AT END MOVE HIGH-VALUES TO T-ACCT-NO-IN
END-READ.
900-END-OF-JOB-RTN.
CLOSE OLD-MASTER-IN
TRANS-FILE-IN
NEW-MASTER-OUT.
REWRITING RECORDS ON A
DISK