cobol interview question

other mainframe interview questions

Moderators: Anuj Dhawan, Moderator Group

Post Reply
tpkumar77
Member
Posts: 16
Joined: Mon Jul 13, 2009 1:01 am

cobol interview question

Post by tpkumar77 » Wed Aug 05, 2009 8:26 pm

Hi

Suppose there is a seq file with million records( i/p).When a job uses this file due to some data problem the job abends.How can you find out which particular record is the culprit?


Thanks & Regards,
Kumar
Regards,
Kumar

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

Post by Natarajan » Mon Aug 10, 2009 11:05 am

1. In program, we display the no. of record read, frequently.
This will give the nearest location of the culprit record.

2. Using xpediter , we can debug and find out the record.
Natarajan
Chennai

tpkumar77
Member
Posts: 16
Joined: Mon Jul 13, 2009 1:01 am

Post by tpkumar77 » Thu Aug 13, 2009 11:07 am

Thanks Natarajan
Regards,
Kumar

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

Post by Anuj Dhawan » Thu Aug 13, 2009 12:21 pm

There are many alternative ways in addition to what Natarajan has said. I'd encourage you to tell us your answer first...
Regards,
Anuj

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

Post by Anuj Dhawan » Thu Aug 13, 2009 12:29 pm

And as this is a "cobol interview question " as your subject title says. We have separate part of the Forum to put Cobol related questions known as:COBOL INTERVIEW QUESTIONS. Please going forward use respective part of the Forums that keeps the things clean :)

PS. Above was just a suggestion...
Regards,
Anuj

tpkumar77
Member
Posts: 16
Joined: Mon Jul 13, 2009 1:01 am

Post by tpkumar77 » Fri Aug 14, 2009 8:52 pm

Thanks Anuj for the suggestion,would stick to that from here after. :)

Well my answer was as below:

I would first look at the abend description and from the compile listing of the prgm ,i will search for the particular verb that that caused problem( get offset of the instr).
Based on the result of the above i would view the file with its copy book for the location of the particular field thru fail-aid (by specifying the position of the variable and the desired result)

For example the location of the field is 30
Field-Name 30 EQ ' '

Which would get the records that match the value.With an assumption that the field value should not be space.
Regards,
Kumar

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

Post by Anuj Dhawan » Sat Aug 15, 2009 1:05 pm

You are welcome... :)

You can have a look on this thread http://www.mainframegurukul.com/Mainfra ... t3586.html as well.
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