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

debug problem


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top