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

🔄 Loops & PERFORM

COBOL
Use a loop to print numbers from 1 to 10....
perform loop counter
COBOL
Print multiplication table for a given number....
multiplication loop table
Beginner
COBOL
Execute a paragraph a specific number of times....
perform times loop iteration
Beginner
COBOL
Loop until a condition becomes true....
perform until while loop
COBOL
Generate first N Fibonacci numbers....
fibonacci sequence algorithm
COBOL
Print a pyramid pattern of stars for N rows....
pattern pyramid loop stars
Intermediate
COBOL
Calculate factorial of a number (n! = 1*2*3*...*n)....
factorial loop multiply
Intermediate
COBOL
Use PERFORM VARYING for counter-controlled loops....
perform varying for-loop nested
Intermediate
COBOL
Execute a range of paragraphs using PERFORM THRU....
perform thru paragraph sequence
Intermediate
COBOL
Generate all prime numbers up to N....
prime algorithm loop divisibility