Master Mainframe Technologies - COBOL, JCL, DB2, VSAM, CICS & More
ABEND Codes SQLCODEs File Status Interview Prep Contact

Practice Problems

Master COBOL, JCL, and mainframe skills with real-world scenarios

109
Total Problems
38
Beginner
47
Intermediate
24
Advanced

🔀 Conditional Logic

COBOL
Accept a number and determine if it is positive, negative, or zero....
if-else conditions signed
Beginner
COBOL
Accept marks (0-100) and display grade: A(90+), B(80-89), C(70-79), D(60-69), F(<60)....
evaluate grades conditions
Beginner
COBOL
Demonstrate nested IF statements and ELSE clause....
if else conditional nested
COBOL
Determine if a year is a leap year....
leap-year divisibility date
COBOL
Given three sides, determine triangle type: Equilateral, Isoceles, Scalene, or Invalid....
triangle geometry validation
Intermediate
COBOL
Accept a year and determine if it is a leap year....
leap-year divide remainder
Intermediate
COBOL
Use EVALUATE for multiple condition checking (like switch-case)....
evaluate switch case conditions
COBOL
Use 88-level condition names for readable conditions....
88-level condition-name readable
Intermediate
COBOL
Combine conditions using AND, OR, NOT operators....
and or not complex-conditions