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

What will be the result?


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amolondhe007
Warnings : 1

New User


Joined: 16 Apr 2007
Posts: 49
Location: Pune

PostPosted: Fri Aug 27, 2010 3:22 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Aug 27, 2010 3:25 pm
Reply with quote

Why don't you try it and tell us ?
Back to top
View user's profile Send private message
Amolondhe007
Warnings : 1

New User


Joined: 16 Apr 2007
Posts: 49
Location: Pune

PostPosted: Fri Aug 27, 2010 4:45 pm
Reply with quote

Expat,

"Why don't you try it and tell us ?"

If you know the answer can you please tell me?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 27, 2010 4:58 pm
Reply with quote

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
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 -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts first column truncated in search result IBM Tools 13
No new posts SDSF like solution in EJES (store com... All Other Mainframe Topics 4
No new posts executing XCTL command in COBOL witho... CICS 10
No new posts Undesired result while joining files. SYNCSORT 3
No new posts COBOL - Array result in single variab... COBOL Programming 3
Search our Forums:

Back to Top