اكثر اسئلة واجوبة المقابلات طلبا والاختبارات عبر الإنترنت
منصة تعليمية للتحضير للمقابلات والاختبارات عبر الإنترنت والدروس والتدريب المباشر

طوّر مهاراتك من خلال مسارات تعلم مركزة واختبارات تجريبية ومحتوى جاهز للمقابلات.

يجمع WithoutBook أسئلة المقابلات حسب الموضوع والاختبارات العملية عبر الإنترنت والدروس وأدلة المقارنة في مساحة تعلم متجاوبة واحدة.

Chapter 6

Conditions, IF, EVALUATE, PERFORM, and Control Flow Patterns

Write conditional and procedural logic in COBOL using clear flow-control constructs common in business applications.

Inside this chapter

  1. IF Statements
  2. EVALUATE
  3. PERFORM
  4. Loops and Repetition
  5. Real 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 6

IF Statements

IF ACCOUNT-BALANCE < 0
    DISPLAY "OVERDRAWN"
END-IF.

Conditional logic is used in validation, eligibility rules, record routing, risk checks, and transaction handling.

Chapter 6

EVALUATE

EVALUATE ACCOUNT-TYPE
    WHEN "S"
        DISPLAY "SAVINGS"
    WHEN "C"
        DISPLAY "CHECKING"
    WHEN OTHER
        DISPLAY "UNKNOWN"
END-EVALUATE.

EVALUATE is often easier to read than long chains of IF conditions when the logic is based on categories or discrete states.

Chapter 6

PERFORM

PERFORM is used to invoke paragraphs or sections and is central to structuring COBOL programs into understandable processing steps.

Chapter 6

Loops and Repetition

COBOL commonly uses PERFORM ... UNTIL for repetitive processing, especially when reading records from a file until the end is reached.

Chapter 6

Real Example

A transaction-processing program may check whether an account is active, evaluate transaction type, perform the appropriate update logic, and then continue to the next record. This structured flow is normal in COBOL applications.

حقوق النشر © 2026، WithoutBook.