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
 
How to debug part of Cobol Program without using Debugger

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

New User


Joined: 23 Dec 2008
Posts: 7
Location: Bangalore

PostPosted: Tue Jan 13, 2009 6:00 pm    Post subject: How to debug part of Cobol Program without using Debugger
Reply with quote

Hi I have faced in the interview,

Suppose a Cobol program contains 3000 lines of source code, I want to debug from 1201 to 1750 and 2300 to and 2700. How to debug without using any debugger tools.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Tue Jan 13, 2009 6:04 pm    Post subject:
Reply with quote

look for a job someplace else.
Back to top
View user's profile Send private message
ramanatcs

New User


Joined: 23 Dec 2008
Posts: 7
Location: Bangalore

PostPosted: Tue Jan 13, 2009 6:17 pm    Post subject:
Reply with quote

Hi Dick,
thanks for quick reply/.............
Can you briefly explain....
I am not getting what your saying...

Thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Jan 13, 2009 6:50 pm    Post subject:
Reply with quote

Quote:
Suppose a Cobol program contains 3000 lines of source code, I want to debug from 1201 to 1750 and 2300 to and 2700. How to debug without using any debugger
Your options are:
1) change the code to display what you want in the appropriate lines
2) don't debug the program
3) use a debugger to focus on the lines you're interested in
4) if none of these are possible, you've been given an impossible task and as Dick says it might be time to find a job at a site with a debugger.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Tue Jan 13, 2009 6:54 pm    Post subject:
Reply with quote

as it was an interview question...I'd go for option 1.

with such question...I really cannot imagine the rest of the inverview questions.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Jan 13, 2009 7:19 pm    Post subject:
Reply with quote

dbzTHEdinosauer wrote:
look for a job someplace else.
It was really quick.. icon_lol.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Tue Jan 13, 2009 8:32 pm    Post subject:
Reply with quote

I did not like the question.
either desk check
or change the program, add displays, as previous posters have said.

but adding displays is rookie shit. you then have to remove them, which means you must retest the module otherwise you have an untested module.

typical question posed by someone who knows nothing about computers.


computers are not random. they do the same thing everytime. that means anything and everything about a computer is definable, explainable and predictable.

why would someone want to work for a company that asks such bullshit questions about something so 'concrete' as a computer?
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 The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

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