How do u debug a S0C7 abend? (aswered till we get the field
which caused that)
After knowing the field which caused that how do u know the
record which caused that if it is in production env? (dumb)
Ok let us assume that we got to know that 100th record
caused that and I wanted to skip only 100th record from the
file and process from 101th.
How to do that in JCL using SORT? (tried with STOPAFT
but ended up dumb when he said smthing else is ther)

Answers were Sorted based on User's Feedback



How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the ..

Answer / sandeep negi

If you came to know which field is responsible for that.
you can run your testjcl with output file DISP parameter as
(NEW,CATLG,CATLG), by doing so, your output file will get
created irrespective of SOC7 abend becuase the last record
of your outuput file will be responsible for generating
abend.

Now you can strip off that record (because its bad data)
and run your jcl.

How to Skip any record through JCL -
You can use ICETOOL

//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=... input file
//OUT DD DSN=... output file
//TOOLIN DD *
SUBSET FROM(IN) TO(OUT) REMOVE INPUT RRN(100)

this will remove 100th record from your file and will copy
rest all records into ouptput file.

Is This Answer Correct ?    3 Yes 0 No

How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the ..

Answer / hks

Use OMIT option of Sort Utillity

Is This Answer Correct ?    2 Yes 0 No

How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the ..

Answer / varun

You need to you SKIPREC and not STOPAFT here.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

can any one help -s806

6 Answers  


I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."

1 Answers  


how to transfer the file from pc to mainframe??

2 Answers  


Can printer files (having 133 characters) be of variable length?

3 Answers  


How do you reference the following file formats from cobol programs?

0 Answers  






How do we get current date from system with century in COBOL?

0 Answers   Winsol Solutions,


How many bytes will be allocated for the following record description entries? 01 REC-A. 05 A PIC S9(4). 05 B PIC XXXBXXX. 05 C PIC ____9.99. 05 D PIC S9(5) COMP-3. 05 E PIC 9(3) COMP.

16 Answers   IBM, TCS,


Identify the invalid dataname from the following: (A) savings-account (B) annual-allocation-for-overhead (C) samount250 (D) 12demand

4 Answers   TCS,


What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.

2 Answers  


what is amode(24), amode(31), rmode(24) and rmode(any)?

0 Answers  


where do u use low-value and high value in cobol

3 Answers   CGI,


How to read records which is in sequential file in reverse order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my doubt any one

10 Answers   IBM,


Categories