가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Chapter 8

File Handling, Sequential Files, Indexed Files, and Record Processing

Understand one of COBOL’s strongest domains: structured file-based business data processing.

Inside this chapter

  1. Why File Processing Is Central in COBOL
  2. Sequential File Processing
  3. READ and WRITE Patterns
  4. Indexed Files
  5. Business Example

Series navigation

Study the chapters in order for the clearest path from COBOL basics to enterprise batch processing, operational context, and modernization strategy. Use the navigation at the bottom to move smoothly through the full tutorial series.

Tutorial Home

Chapter 8

Why File Processing Is Central in COBOL

Many COBOL programs are built around reading large files, transforming records, validating business rules, and writing outputs. Even in systems with databases and online transactions, file-based batch workflows remain important.

Chapter 8

Sequential File Processing

Sequential files are processed record by record in order. This is common for payroll batches, daily transaction files, billing runs, and report-generation jobs.

Chapter 8

READ and WRITE Patterns

READ INPUT-FILE
    AT END
        MOVE "Y" TO END-OF-FILE-SWITCH
END-READ.

Programs often loop until an end-of-file condition is reached, processing each record in turn.

Chapter 8

Indexed Files

Indexed files support keyed access and are useful when records need to be retrieved by identifiers such as account numbers or policy numbers instead of only sequential order.

Chapter 8

Business Example

A utility billing system may read customer usage records sequentially, calculate bill amounts, and write invoice outputs. Another program may use indexed access to retrieve a specific customer account by key for online inquiry or adjustment processing.

Copyright © 2026, WithoutBook.