if you have big pgm. during compilation is abends with
(soc7)how do you know which line has soc 7 error.

Answers were Sorted based on User's Feedback



if you have big pgm. during compilation is abends with (soc7)how do you know which line has soc 7 ..

Answer / lu

When you COMPiLE your program !!!! How can u get soc7 ????.
Don't confuse the COMPILATION and EXECUTION your program...
I have compile a program more 100000 lines, i never get
SOC7.....but i execute my pgrm i chet it because sapce or
alpha in my numeric field....

correct me if i'm wrong..

Is This Answer Correct ?    11 Yes 2 No

if you have big pgm. during compilation is abends with (soc7)how do you know which line has soc 7 ..

Answer / bala

Check for the offset address. which will give you the extact
line which is responsible for S0C7.

Also use Abend-aid if have it....

Is This Answer Correct ?    6 Yes 0 No

if you have big pgm. during compilation is abends with (soc7)how do you know which line has soc 7 ..

Answer / harish

use the abend-aid to display sysdump....which is same as
sysout.........abend-aid has a diagonostic section , which
will give two things the the variable which caused the abend
adn the the nexat squential instruction ..........generally
soc7 will occur due to bad data....i.e an unintialised
working-storage section item.........to be more
precise....an arthimetic operation performed on non-numeric
junk......there lot of ways to check and correct this, i've
jus told one method..

Is This Answer Correct ?    2 Yes 0 No

if you have big pgm. during compilation is abends with (soc7)how do you know which line has soc 7 ..

Answer / anu

By using Parm.cobol=test also u can able to identified, on
which line abend is occur.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More JCL Interview Questions

can we have more than one job in a single job card that is we are specifying only one 'job' statement in the jcl.

7 Answers   Accenture,


What does the TIME parameter signify ? What does TIME=1440 mean ?

6 Answers   Accenture, TCS,


I have a dataset with record length 40 in production, due to some requirements it was changed to 80. Then how can we know the jobs which are effected by this change and how can we resolve it.

3 Answers   iGate,


When cursor is not closed what is the error?

3 Answers   IBM,


what is force complete

2 Answers   IBM,






is it possible to submitt more than one job in job card in jcl? and if yes than is it necessary to have the jobs same name?

4 Answers   Accenture,


what is use of dsn parameter in dd statement?

0 Answers   IBM,


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

1 Answers   Tesco,


What is the use of disp parameter?

0 Answers  


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

0 Answers   HP,


Is Default for MSGCLASS = (1,1) ?

2 Answers   IBM,


What is the purpose of the dd keylen parameter?

0 Answers  


Categories