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

How to debug part of Cobol Program without using Debugger


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 6966
Location: porcelain throne

PostPosted: Tue Jan 13, 2009 6:04 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jan 13, 2009 6:50 pm
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
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

Superior Member


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

PostPosted: Tue Jan 13, 2009 7:19 pm
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: 6966
Location: porcelain throne

PostPosted: Tue Jan 13, 2009 8:32 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top