Exforsys

Online Training

Is there any difference??

This is a discussion on Is there any difference?? within the COBOL forums, part of the Programming Talk category; Hi All, I wanted to transfer control to next verb after explicit scope terminator. In this situation I am confused ...


Go Back   Exforsys > Programming Talk > COBOL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-17-2006, 06:33 PM
Junior Member
 
Join Date: May 2006
Posts: 29
blenda is on a distinguished road
Is there any difference??

Hi All,
I wanted to transfer control to next verb after explicit scope terminator. In this situation I am confused whether to use NEXT SENTENCE or CONTINUE in my program. Do both CONTINUE and NEXT SENTENCE functions the same way. If not what is the difference. Somebody provide a brief answer to this query.

Regards,
Blenda
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-28-2006, 04:27 AM
anuragvma's Avatar
Junior Member
 
Join Date: Jun 2006
Posts: 3
anuragvma is on a distinguished road
Quote:
Originally Posted by blenda
Hi All,
I wanted to transfer control to next verb after explicit scope terminator. In this situation I am confused whether to use NEXT SENTENCE or CONTINUE in my program. Do both CONTINUE and NEXT SENTENCE functions the same way. If not what is the difference. Somebody provide a brief answer to this query.

Regards,
Blenda
Yes there is a difference between these two ....CONTINUE means "Do nothing" this is a NULL statement, whereas NEXT SENTENCE will take your program flow to the next coded sentence.
eg.
IF (X=Y)
CONTINUE
ELSE
NEXT SENTENCE
END-IF
GO TO A1000-PARA-EXIT.
the flow will jump to this sentence.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2007, 03:51 PM
Senior Member
 
Join Date: Apr 2006
Posts: 153
cyrus is on a distinguished road
In a nutshell if you don’t want to do any action that is do nothing then take up CONTINUE verb. But in contrast NEXT SENTENCE is actually an unconditional branch to whatever follows the next period. In effect, it is a restricted form of GO TO
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new questions
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Difference between pentium 3 and pentium... JobHelper Tech FAQ 1 09-25-2008 03:19 PM
Linux vs. Windows web Hosting, does it make a difference? sanereddy Unix Articles and Tutorials 7 04-23-2006 01:39 PM
what is difference between terminal service and remote desktop techguru Interview Questions 1 04-17-2006 08:14 AM
Difference between Data Warehousing and Datamart kalareddy Data Warehousing 2 04-12-2006 10:30 PM
Difference between .jar .war & .ear ajagania Java Tutorials 2 10-21-2004 09:03 AM


All times are GMT -4. The time now is 07:50 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.