Skip to main content

1. Simple PERFORM

Write a COBOL program that displays "I am a Mainframe Programmer" 10 times using PERFORM.

2. PERFORM UNTIL

Write a COBOL program that prints numbers from 1 to 10 using PERFORM UNTIL.

3. Exercise PERFORM WITH VARYING

Write a COBOL program that calculates the sum of alternate numbers from 1 to 100 using PERFORM VARYING. E.g. 1+3+5+7 …..