Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
continue & NEXT SENTENCE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
prabhucs01

New User


Joined: 07 Mar 2005
Posts: 40

PostPosted: Thu Apr 28, 2005 9:45 am    Post subject: continue & NEXT SENTENCE
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
References
seegovind

New User


Joined: 02 Apr 2005
Posts: 3

PostPosted: Thu Apr 28, 2005 2:14 pm    Post subject:
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

New User


Joined: 07 Mar 2005
Posts: 40

PostPosted: Thu Apr 28, 2005 3:38 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Re: continue & NEXT SENTENCE
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1