anybody knows how to reslove a SOC7 without offset?

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
surbhi.goyal.84@gmail.com
Member
Posts: 1
Joined: Wed Sep 02, 2009 11:22 pm

anybody knows how to reslove a SOC7 without offset?

Post by surbhi.goyal.84@gmail.com » Wed Sep 02, 2009 11:59 pm

I just want to know if there is any other way to reslove a SOC7 without searching offset.This is one of the question asked in my interview.

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Thu Sep 03, 2009 2:14 pm

You can use expediter to find the place where abend has occured.

or

you can use display statements to find where abend has occured.
Natarajan
Chennai

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu Sep 03, 2009 11:01 pm

Add 1 to a counter every time your program reads one record from the i/p-file, and DISPLAY the counter -- when program abends, it'll show which record caused the problem. Then search how many fields from that record are of type numeric. If some filed, from those numeric-fields is used in MOVE statements, that can give you a fair idea, after some iteration, about the field in error...
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others