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
 

 

Compiling cobol program WITH DEBUGGING MODE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Ragav86

New User


Joined: 27 Jan 2010
Posts: 37
Location: chennai

PostPosted: Wed Sep 15, 2010 3:02 pm    Post subject: Compiling cobol program WITH DEBUGGING MODE
Reply with quote

Hi ,
i tried to compile the cobol program with debugging mode program executed successfully but the debugging option is not working. please guide me whether i need to give any compiler options or should i need to change the syntaxes.


Code:

//A999999A JOB COBOL,'SAMPLE   ',                                     
//         MSGCLASS=X,NOTIFY=&SYSUID,CLASS=A                     
//STEP1    EXEC IGYWCLG,PARM='LIST'                             
//COBOL.SYSIN DD *                                               
        IDENTIFICATION DIVISION.                                 
        PROGRAM-ID. SAMPLE.                                     
        ENVIRONMENT DIVISION.                                   
        CONFIGURATION SECTION.                                   
        SOURCE-COMPUTER IBM-370 WITH DEBUGGING MODE.             
        OBJECT-COMPUTER.  IBM-370.                               
        DATA DIVISION.                                           
        WORKING-STORAGE SECTION.                                 
         01 X PIC X.                                             
        PROCEDURE DIVISION.                                     
        DECLARATIVES.                                           
        DEBUG SECTION.                                           
                   USE FOR DEBUGGING ON ALL PROCEDURES.         
        COBOL-II-DEBUG-PARA.                                     
                    DISPLAY 'ENTERING... ' DEBUG-NAME.           
        END DECLARATIVES.                                       
        PGM SECTION.                                             
             DISPLAY 'HI'                                       
             PERFORM 1000-PARA.                                 
             STOP RUN.                                           
        1000-PARA.                                               
             DISPLAY 'THIS IS THE COBOL DEBUGGING PROGRAM'.     
             PERFORM 110-PARA.                                   
        110-PARA.                                               
             DISPLAY 'DEBUGGED'.                                 
/*                                                               
//GO.SYSOUT   DD SYSOUT=*                                       
[/code]
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Sep 15, 2010 4:26 pm    Post subject:
Reply with quote

What, exactly, do you think the WITH DEBUGGING MODE phrase does?

There is a link to manuals at the top of the page. Click on it, find the COBOL Language Reference manual and read up on the phrase. I think you will find it does nothing like what you apparently believe it does.
Back to top
View user's profile Send private message
Gary McDowell

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Mon Mar 11, 2013 7:55 pm    Post subject:
Reply with quote

It just looks like you need to put the letter 'D' in column 7 of your DISPLAY line for "WITH DEBUGGING MODE".
Code:
        110-PARA.
       D    DISPLAY 'DEBUGGED'.
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
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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