Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
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
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us