How to break a DO-WHILE loop

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
skvijay87
Member
Posts: 1
Joined: Fri Sep 23, 2011 10:44 am

How to break a DO-WHILE loop

Post by skvijay87 » Fri Sep 23, 2011 10:54 am

Hi Frns,
I want to break a DO-WHILE loop on certain conditions and again want to goto job and process the next record.
When i used 'BREAK' in two places the error received is 'DUPLICATE NAME'

Can anyone suggest how to skip the iteration. Thanks in advance

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri Sep 23, 2011 8:12 pm

Post the bit of code that is giving you a problem and explain why the loop cannot simply be completed in the code (by setting some indicator that tells the process to "not process" these last iterations.

Seeing the code may help us help you.
Have a good one

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