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
 

 

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: 6966
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: 7935
Location: Bellevue, IA

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: 6966
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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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