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
 
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 WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
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

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