IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

what is meant by placing d in 7th column of a program?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pushpa

New User


Joined: 16 Jun 2005
Posts: 6
Location: bangalore

PostPosted: Fri Jun 24, 2005 11:18 am
Reply with quote

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
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Fri Jun 24, 2005 12:16 pm
Reply with quote

Hi,
It is used for Debugging purpose.
Check the followings:

search400.techtarget.com/tip/1,289483,sid3_gci518047,00.html
publib.boulder.ibm.com/html/as400/v4r5/ic2924/index.htm?info/db2/rzajpmst46.htm
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/igy3lr10/APPENDIX1.4.1?SHELF=&DT=20020920180651&CASE=
Hope it helps
Back to top
View user's profile Send private message
ashcall

New User


Joined: 07 May 2007
Posts: 1
Location: delhi

PostPosted: Thu Jun 04, 2009 4:37 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jun 04, 2009 4:55 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Jun 04, 2009 7:50 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 05, 2009 12:39 am
Reply with quote

Quote:
Ah, I still remember the days when col 8 was all we had:

Made for an impressive number of Lines-of-Code (LOC) icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 05, 2009 12:42 am
Reply with quote

Hello ashcall and welcome to the forum icon_smile.gif

Please note that this topic has been inactive for 4 years.

Enjoy the forum icon_exclaim.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Using API Gateway from CICS program CICS 0
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top