Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Explain next sentence and continue statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Explain next sentence and continue statement
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: 1452
Location: Chicago, IL

PostPosted: Tue Sep 12, 2006 7:29 pm    Post subject: Re: Explain next sentence and continue statement
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
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


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us