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 

'*/*' starting on the coulumn 7 in cobol

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
coolsrini1981
Beginner


Joined: 01 Jun 2006
Posts: 8
Topics: 3

PostPosted: Sun Jan 28, 2007 5:31 pm    Post subject: '*/*' starting on the coulumn 7 in cobol Reply with quote

I was facing a problem in compiling a code which had few */*** in
empty lines between two paras....I thot these to be comments but it gave me compilation errors...saying that paras after the */* are not defined.

2024-EXIT.
EXIT.
* SKIP3
*/**** 2025 FIND NEXT OPEN ENTRY IN TABLE
2025-FIND-NEXT-OPEN.


WHen i removed this i could compile the prg....Can anyone tel me what is the significance or how does a compiler interpret */* on cols starting 7th column???
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Sun Jan 28, 2007 7:22 pm    Post subject: Reply with quote

coolsrini1981,

A comment line is any line with an asterisk (*) or slash (/) in the indicator area (column 7) of the line. The comment can be written anywhere in Area A and Area B of that line, and can consist of any combination of characters from the character set of the computer.

You cannot Combine both in a single Comment line.

Hope this helps...

Cheers

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


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Wed Jan 31, 2007 4:18 pm    Post subject: Reply with quote

even this works in cobol. but basically this is used in Pl/1

/* code */
Back to top
View user's profile Send private message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Wed Jan 31, 2007 4:21 pm    Post subject: Reply with quote

sorry I forgot this,

/ shuld start at 7th column.what Kolusu Boss said is correct.
Back to top
View user's profile Send private message
Southington
Beginner


Joined: 02 Jun 2006
Posts: 6
Topics: 0
Location: Phoenix AZ

PostPosted: Thu Feb 08, 2007 3:52 pm    Post subject: Reply with quote

Not to mention that his paragraphs also start in column 7.
Back to top
View user's profile Send private message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Thu Feb 08, 2007 4:37 pm    Post subject: Reply with quote

Southington,
sorry, i don't get you. What you saying is the Paragraph starts at col7..it suppose to be at 8.
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