IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

continue & NEXT SENTENCE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prabhucs01
Warnings : 1

New User


Joined: 07 Mar 2005
Posts: 43

PostPosted: Thu Apr 28, 2005 9:45 am
Reply with quote

can any one specify the difference between [b]continue[/b] and [b]next scentence [/b]with an example...
Back to top
View user's profile Send private message
seegovind

New User


Joined: 02 Apr 2005
Posts: 3

PostPosted: Thu Apr 28, 2005 2:14 pm
Reply with quote

Both continue and next sentence will go to the next statement.But the slight difference is that Next sentence can be used for future expansion.
Regards.
Back to top
View user's profile Send private message
prabhucs01
Warnings : 1

New User


Joined: 07 Mar 2005
Posts: 43

PostPosted: Thu Apr 28, 2005 3:38 pm
Reply with quote

any examples please....
Back to top
View user's profile Send private message
squid_rocks

New User


Joined: 21 Mar 2005
Posts: 15
Location: Pune, INDIA

PostPosted: Thu Apr 28, 2005 6:07 pm
Reply with quote

Hi,
The actual difference is that continue will take you to the next "logical" statement and next statement will essentially look for a '.' (period) and take the control to the statement after the peroid.

IF A=B
IF C=D
perform some-para
ELSE
IF G=H
continue
ELSE
next sentence
END-IF
END-IF
ELSE
perform some-para-1
END-IF.

I understand it is a stupid example, but then I could come up with this one at the moment.
What will happen here is the control will go to next logical statement after first END-IF.
The next sentence will take the control out of the complete IF-ELSE-END-if...
Back to top
View user's profile Send private message
ashay
Warnings : 1

New User


Joined: 18 Mar 2005
Posts: 4
Location: pune

PostPosted: Sat Apr 30, 2005 8:53 pm
Reply with quote

hiiiiiii
actually continue will continue next logical statement n next sentence will continue after the "."(period).
Back to top
View user's profile Send private message
nagireddynarva

New User


Joined: 30 Apr 2005
Posts: 5
Location: hyderabad

PostPosted: Thu May 05, 2005 11:14 am
Reply with quote

here is an example...

perform para-a varying i from 1 by 1 until i=40.
perform para-b.
para-a.
if i=20
next sentence/continue.
para-b.
display i.


in the above mentioned code if next sentence is coded the value of i
is 20 and it gets displayed...if continue is coded the value of i becomes
40.
i hope this example will help u....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Job to wait and continue based on reply COBOL Programming 5
No new posts Not enough virtual memory is availabl... IBM Tools 16
No new posts How to continue ftp line when the fil... JCL & VSAM 1
No new posts Continue PARM in SYSIN DD * DB2 9
No new posts How to continue message while using O... JCL & VSAM 3
Search our Forums:

Back to Top