How to use " FOR " loop in COBOL

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
shivakumar
Member
Posts: 2
Joined: Wed Nov 21, 2007 9:01 pm

How to use " FOR " loop in COBOL

Post by shivakumar » Sun Dec 23, 2007 8:46 pm

Hi,

Please let me know how to use for loop iternation
in COBOL with example

Eagerly waiting for response

With regards
shiva

mkk157
Member
Posts: 37
Joined: Wed Feb 07, 2007 2:00 pm
Location: Hyderabad

Post by mkk157 » Mon Dec 24, 2007 11:49 am

Hi Shivakumar,

Welcome to the Forum.

The FOR loop in C Language is handled by PERFORM statement in COBOL language.


See the below link for more information.

http://publib.boulder.ibm.com/infocente ... psperf.htm
Kumar
If u can dream it, U can do it.

sai
Member
Posts: 7
Joined: Tue Mar 18, 2008 3:26 pm

Post by sai » Sat Mar 22, 2008 2:09 pm

HI
There are various types of perform statements in which for loop is handled so we can't directly use for loop in cobol.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others