View previous topic :: View next topic |
Author |
Message |
coolsrini1981 Beginner
Joined: 01 Jun 2006 Posts: 8 Topics: 3
|
Posted: Sun Jan 28, 2007 5:31 pm Post subject: '*/*' starting on the coulumn 7 in cobol |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Sun Jan 28, 2007 7:22 pm Post subject: |
|
|
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 |
|
 |
vak255 Intermediate

Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Wed Jan 31, 2007 4:18 pm Post subject: |
|
|
even this works in cobol. but basically this is used in Pl/1
/* code */ |
|
Back to top |
|
 |
vak255 Intermediate

Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Wed Jan 31, 2007 4:21 pm Post subject: |
|
|
sorry I forgot this,
/ shuld start at 7th column.what Kolusu Boss said is correct. |
|
Back to top |
|
 |
Southington Beginner

Joined: 02 Jun 2006 Posts: 6 Topics: 0 Location: Phoenix AZ
|
Posted: Thu Feb 08, 2007 3:52 pm Post subject: |
|
|
Not to mention that his paragraphs also start in column 7. |
|
Back to top |
|
 |
vak255 Intermediate

Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Thu Feb 08, 2007 4:37 pm Post subject: |
|
|
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 |
|
 |
|
|