There is a production file which has millions of records in
it.The program that uses it ends up with an SOC7 abend.It
is sure that the abend is due to some invalid data in the
file.Is there any way to debugg the SOC7 abend with out
giving displays? I need the record which is cause for the
abend.
Answer Posted / ramesh
Steps taken to resolve to resolve S0C7
1. Get the offet of the abend from sysout
e.g lets say the offset is 0005DA
2. Go the compile listing and locate the offset. This will
be present in the assembly listing of the program.
000067 MOVE
0005D6 4820 8018 LH 2 24(0 8) WS-COMP
0005DA 4E20 D100 CVD 2 256(0 13) TS2 0
0005DE F332 8020 D105 UNPK 32(4 8) 261(3 13) WS-DEST
0005E4 96F0 8023 OI 35(8) X'F0' WS-DEST+3
000068 DISPLAY
0005E8 5820 905C L 2 92(0 9) TGTFIXD+92
0005EC 58F0 202C L 15 44(0 2) V(IGZCDSP )
0005F0 4110 A1F6 LA 1 502(0 10) PGMLIT AT +490
0005F4 05EF BALR 14 15
000069 DISPLAY
0005F6 58F0 202C L 15 44(0 2) V(IGZCDSP )
0005FA 4110 A1E0 LA 1 480(0 10) PGMLIT AT +468
0005FE 05EF BALR 14 15
3. Get the statement number from the listing here the offet
0005DA is the expansion for the statrement number 000067.
4. Using the statement number obtain the statement.
which would be something like this:
000067 MOVE WS-COMP TO WS-DEST.
Now this is the problematic statement.
Look in to this to resolve the abend.
Hope this helps.
Regards
Rameshkumar.H.K,Belgaum Karnataka.
Infosys Technology Bangalore
| Is This Answer Correct ? | 12 Yes | 6 No |
Post New Answer View All Answers
How many sections are there in data division in COBOL?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What are the different rules of SORT operation?
What are the different rules for performing sort operation?
Write a program to enter and display the names of students in a class using the occurs clause.
How to remove 2 duplicate records and copy only one using job control language?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
In which area will you utilize 88 level items in cobol?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What are different data types in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Which is not true about evaluate statement
What is the difference between Call and a Link?