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: 6968
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: 8117
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: 6968
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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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