Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: what is meant by placing d in 7th column of a program?
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    Post subject: Re: what is meant by placing d in 7th column of a program?
Reply with quote

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

http://search400.techtarget.com/tip/1,289483,sid3_gci518047,00.html
http://publib.boulder.ibm.com/html/as400/v4r5/ic2924/index.htm?info/db2/rzajpmst46.htm
http://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    Post subject: Re: what is meant by placing d in 7th column of a program?
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: 8002
Location: Bellevue, IA

PostPosted: Thu Jun 04, 2009 4:55 pm    Post subject:
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: 1226
Location: Israel

PostPosted: Thu Jun 04, 2009 7:50 pm    Post subject: Re: what is meant by placing d in 7th column of a program?
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

Site Director


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

PostPosted: Fri Jun 05, 2009 12:39 am    Post subject: Reply to: what is meant by placing d in 7th column of a prog
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

Site Director


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

PostPosted: Fri Jun 05, 2009 12:42 am    Post subject: Reply to: what is meant by placing d in 7th column of a prog
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. DB2 query Using Recursion, Converting... smilewithashu2 DB2 3 Tue Jan 03, 2017 12:50 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us