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

use of DECLARATIVES


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

New User


Joined: 20 Sep 2010
Posts: 6
Location: banglore

PostPosted: Fri Oct 08, 2010 9:43 am
Reply with quote

in one progranm they have used DECLARATIVES.
after procedure devision
DECLARATIVES.

0100-DEBUG-DECLARATIVES SECTION.
USE FOR DEBUGGING ON ALL PROCEDURES.
0100-DEBUG-PARAGRAPH.
DISPLAY ' ------------ START ------------------'.
DISPLAY ' PARAGRAPH NAME :' DEBUG-NAME.
DISPLAY ' Counter-I :' WS-A-I.
DISPLAY ' Program :' LON-PGM-CD.
DISPLAY ' Product :' LON-PGM-PRD-CD.
DISPLAY ' --------------- END -------------------'.
0100-EXIT.
EXIT.

END DECLARATIVES.
in this program they have error routine also . what is the use of this one can any one explain properly as i am new to these things.
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 Oct 08, 2010 10:06 am
Reply with quote

Hello,

At the top of the page is a link to "IBM Manuals". The first set is for COBOL. Suggest you become both familiar and comfortable with using the IBM manuals.

Read here for info about the debugging declaritive:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/igy3lr50/8.1.15.4

There is no reason for someone to re-post what is already well covered in the documentation. If you find something in the manual that is not clear, post what you found and your doubt. Someone will be able to clarify.
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 Declaratives in procedure division COBOL Programming 11
No new posts Use of Declaratives in cobol COBOL Programming 1
Search our Forums:

Back to Top