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
 

 

What will be the result?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
Amolondhe007
Warnings : 1

New User


Joined: 16 Apr 2007
Posts: 50
Location: Pune

PostPosted: Fri Aug 27, 2010 3:22 pm    Post subject: What will be the result?
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: 8593
Location: Back in jolly old England

PostPosted: Fri Aug 27, 2010 3:25 pm    Post subject:
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: 50
Location: Pune

PostPosted: Fri Aug 27, 2010 4:45 pm    Post subject: Reply to: What will be the result?
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts scheduling between OPC and TWS give u... nsbl IBM Tools 1 Sun Mar 12, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
This topic is locked: you cannot edit posts or make replies. How to run and see the result of DFH$... lind sh CICS 2 Wed Jul 27, 2016 7:04 pm
No new posts Build record according subtraction re... witsche SYNCSORT 5 Fri Oct 02, 2015 12:53 pm


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