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

Explain next sentence and continue statement


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
parul rana

New User


Joined: 01 Aug 2006
Posts: 4
Location: india

PostPosted: Tue Sep 12, 2006 6:34 pm
Reply with quote

Q. pls explain next sentence and continue statement in detail???with
example.
Q. give also the diff between the two.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Sep 12, 2006 7:29 pm
Reply with quote

Parul Rana...

Code:
If A = B
CONTINUE/NEXT SENTENCE
IF C = D
DISPLAY 'C IS EQUAL TO D'
ELSE
DISPLAY 'C IS NOT EQUAL TO D'.

DISPLAY 'HELLO'.


CONTINUE will go and check for comparison between C & D.
NEXT SENTENCE will not compare C & D... directly go n display "HELLO".

In short CONTINUE skips the processing to the next Scope Terminator.
NEXT SENTENCE skips the processing to the next Statement after the next PERIOD(.)

If you need detailed information on these two search the manuals...
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts DB2 Statistics - Using EXPLAIN and qu... DB2 1
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13
Search our Forums:

Back to Top