Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
continue & NEXT SENTENCE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    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

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
Warnings : 1

New User


Joined: 07 Mar 2005
Posts: 43

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Job to wait and continue based on reply yugendran COBOL Programming 5 Wed Oct 05, 2016 1:46 pm
No new posts Not enough virtual memory is availabl... Vinay Pushpala IBM Tools 16 Tue Sep 13, 2016 4:37 pm
No new posts How to continue ftp line when the fil... jasorn JCL & VSAM 1 Fri Mar 14, 2014 5:47 am
No new posts Continue PARM in SYSIN DD * vishalbshah DB2 9 Thu Apr 19, 2012 3:23 pm
No new posts How to continue message while using O... ppandey07 JCL & VSAM 3 Wed Sep 21, 2011 4:21 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us