View previous topic :: View next topic
|
Author |
Message |
pushpa
New User
Joined: 16 Jun 2005 Posts: 6 Location: bangalore
|
|
|
|
HI
Anybody let me know
what d represents while placing it in 7 th column of a cobol program?
I tried by placing it in 7th column the compiler doesn't recognizes that statement and it won't give any error to that.
Thanks in advance |
|
Back to top |
|
|
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
Back to top |
|
|
ashcall
New User
Joined: 07 May 2007 Posts: 1 Location: delhi
|
|
|
|
hi cobol compiler recognizes only 8th column
pushpa wrote: |
HI
Anybody let me know
what d represents while placing it in 7 th column of a cobol program?
I tried by placing it in 7th column the compiler doesn't recognizes that statement and it won't give any error to that.
Thanks in advance |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
ashcall, actually the compiler recognizes and uses all columns 1 through 72. Columns 1 through 6 can hold a sequence number which the compiler recognizes. Column 7 can contain an asterisk or a compiler directing code such as D or / (for debugging and page eject respectively), and COBOL statements can be between columns 8 and 72 (depending on the statement, some can only start in column 12 or later). The compiler also recognizes columns 73 through 80 but treats anything in those columns as a comment. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
ashcall wrote: |
hi cobol compiler recognizes only 8th column |
Ah, I still remember the days when col 8 was all we had:
Code: |
----+----1----+
M
O
V
E
A
T
O
B
. |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Quote: |
Ah, I still remember the days when col 8 was all we had:
|
Made for an impressive number of Lines-of-Code (LOC) |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello ashcall and welcome to the forum
Please note that this topic has been inactive for 4 years.
Enjoy the forum
d |
|
Back to top |
|
|
|