MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

COBOL Comments

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Tue Sep 26, 2006 4:31 pm    Post subject: COBOL Comments Reply with quote

Hi,
Without using any external help, can you say what is the 'problem' with the below text which you might see in a COBOL program ?
Code:

*                                                             
*This EVALUATE block will test the various types of ITEM-CODE.
*It is expected that, this program will recieve only 4 of the 
*10 possible item codes. Thus, it would be extremely rare that
*control would goto the WHEN OTHER part .                     

8)
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Sep 26, 2006 5:28 pm    Post subject: Reply with quote

Cogito-Ergo-Sum,

I don't think it will compile. just a hunch on the 4th line (*control is reserved word)

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Wed Sep 27, 2006 12:36 am    Post subject: Reply with quote

Brilliant, Kolusu !

That is the problem with the above comments. !!
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
kraj
Beginner


Joined: 15 Apr 2004
Posts: 8
Topics: 2

PostPosted: Mon Oct 02, 2006 10:13 am    Post subject: Comment Reply with quote

Kolusu, Cogito,
When I tried to compile using Control , itwent through. It didn't come up with any error.
thanks.
Kraj.
Note: I am working inUnisys 2200 systemusing Cobol.

* 02/02/06 Local version .only for my testing
*CONTROL RAJ
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group