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

What do you know about jcl?

0 Answers  


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

0 Answers  


How to print data of sequential file to Spool..?

2 Answers  


In My job I have 15 procs.and in each proc i have 3 steps. i want to execute 3 step in proc 10.is it possible? if possible how?

2 Answers   HP,


how to have variable length record in outrec..i have the requmt as follows.. i/p file variable lenght record output file : i need to alter the input and write into outrec(another file) sort fields: copy from(dd1) using ctl1 ctl1cntl dd * outfil fnames=xxx, outrec=(1,131) here i outrec is bombing with error..how to overcome this defect...???

1 Answers  






In one of intervie, my interviwer asked, I have a file which contains 4 records I would like to split the 4 different outputs for each record how to do?

14 Answers   Cap Gemini, Cognizant, JPMorgan Chase, TCS, Xansa,


How to execute step2,step1,step3 when step1,2&3 are in order

6 Answers   TCS,


how to resolve the soc4 error?

5 Answers   ITC Infotech,


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

0 Answers   IBM,


What are the valid DSORG values ?

3 Answers  


how to create gdg with out using idcams utility

8 Answers   DSRC,


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,


Categories