View previous topic :: View next topic
|
Author |
Message |
Amolondhe007 Warnings : 1 New User
Joined: 16 Apr 2007 Posts: 49 Location: Pune
|
|
|
|
I want to know which line numbers will execute If SPA-TYPE = A will satisfy?
Please find the code in short -
001 PROCEDURE DIVISION
002 START-PARA.
003 IF SPA-TYPE = A
004 CONTINUE
005 DISPLAY 'INFO TYPE'
006 ELSE
007 DISPLAY 'NO INFO TYPE'
008 END-IF.
009 IF SPA-TYPE = A
010 GO TO END-PARA.
011 END-PARA.
012 DISPLAY 'INFO TYPE'
013 EXIT. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why don't you try it and tell us ? |
|
Back to top |
|
|
Amolondhe007 Warnings : 1 New User
Joined: 16 Apr 2007 Posts: 49 Location: Pune
|
|
|
|
Expat,
"Why don't you try it and tell us ?"
If you know the answer can you please tell me? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Amolondhe007,
this is so easy to test; why don't you?
ELSE
look-up CONTINUE in the manual (that's the COBOL Language Ref Manual).
it does not matter which version of COBOL.
Neither the ANSII COBOL standards nor IBM extensions
have changed in regard to CONTINUE.
You should compare CONTINUE with NEXT SENTENCE.
even without testing, the manual will provide enough information to make the answer obvious.
Manuals are found by using the IBM manuals button at the top of the page
or use this hyperlink if searching the top of this page is too arduous. |
|
Back to top |
|
|
|