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
 

 

debug problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Wed Jul 27, 2005 7:28 pm    Post subject: debug problem
Reply with quote

hi guys and gals
can any one explain

how to debug a program with out using XPEDITER?

till now i hav worked with tool.so please clarify me.
Back to top
View user's profile Send private message

notonly4u

New User


Joined: 26 Apr 2005
Posts: 87
Location: Hyderabad

PostPosted: Wed Jul 27, 2005 7:45 pm    Post subject:
Reply with quote

Dear STLY,

The Program that yu are trying to debug is Batch Or Online?

If it is Batch.... Try to debug by using display statements. No other go as per my knowledge. Correct me If Iam wrong.

Regards
Tanden
Back to top
View user's profile Send private message
vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Wed Jul 27, 2005 8:12 pm    Post subject: Hi
Reply with quote

The other option is intertest.
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Fri Jul 29, 2005 11:55 am    Post subject: Re: debug problem
Reply with quote

hi vijay
u r so naughty man.thank u 4 uy smily reply.actually wat i mean is with out using tools how to debug.


hi notonly
u r right n thank u 4 ur reply. i too got that it cab b done using display.can i hav a simple code with example so that i will hav the clear picture.
Back to top
View user's profile Send private message
notonly4u

New User


Joined: 26 Apr 2005
Posts: 87
Location: Hyderabad

PostPosted: Fri Jul 29, 2005 3:23 pm    Post subject:
Reply with quote

Hi Stly,

If you are doing some batch testing yu can use display statements in order to know the values that yu got after execution of certain logics.

Suppose you are accessing a Table for some records, If the search is sucessfull, you need to moveout and go for someother paragraphs. Else if not sucessfull, you have to go for searching a series of other tables. So after each search, you can make a display statement and yu can verify from the spool that which table contains your set of records.

If you are still not clear, please let me know, I'll try to explain that to you with a better example.

Thanks and Regards
Tanden
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Sat Jul 30, 2005 7:17 pm    Post subject: Re: debug problem
Reply with quote

hi notonly
tq very much i got it but can i hav the example so that it will b more clear bcoz i havn,t worked on that till now.thanks once again 4 ur patience replies.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Jul 31, 2005 12:40 am    Post subject:
Reply with quote

Hi Stly,

The 1st thing you should do is compile your pgm w/the nooff,list options. You can do this by coding PROCESS LIST,NOOFF on a line before your IDENTIFICATION DIVISION stmt. What this does is print a listing of the assembler language stmts generated by the compiler for the cobol stmts you coded. This listing shows all the cobol verbs coded and the assembler isnstructions it generated and their offsets into the pgm.

When an abend occurs the sysmsg for the job will contain the offset into the cobol pgm where the abend occured. You use that offset in the cobol listing to find the assembler instr that caused the abend.

On a line above that instr will be the associated cobol verb. Depending on the nature of the abend you can use this info to solve the problem. For example if the abend ic an 0C7 you can find the fields in the arith stmt that have bad data in the dump.

If you don't know how to do that you can display the fields just before the offending cobol stmt is executed.
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Sun Jul 31, 2005 6:20 pm    Post subject: Re: debug problem
Reply with quote

hi notonly, mmwife n all thank u very much 4 ur answers.thans to one and all
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Sun Jul 31, 2005 6:20 pm    Post subject: Re: debug problem
Reply with quote

hi notonly, mmwife n all thank u very much 4 ur answers.thans to one and all
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Sun Jul 31, 2005 6:20 pm    Post subject: Re: debug problem
Reply with quote

hi notonly, mmwife n all thank u very much 4 ur answers.thans to one and all
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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