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

I have a input file. Data like: ABCDEFGH.... i want out put file like AB BC CD DE....How can do this??

7 Answers   UST,


If the COND parameter is specified in both the JOB and EXEC statements, which one will take precedence? If JOB takes priority and if all the conditions evaluate to false, then will the conditions on the EXEC step be evaluated next?

4 Answers   Wipro,


i need some shortcuts and tso commands can any on ehelp me in these ?

1 Answers  


in job stmt i coded time=(2,30) and in step 1 i coded time=(1,30) and in step i coded time=(1,30), whch one executes first and what happens if step1 and step2 time executes and wht about the remaining time if step and step2 executes

4 Answers  


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

0 Answers  






How to find the number of duplicates in a file using Sort?

4 Answers   Fidelity,


A file has dta in S9(09) COMP format. How do I move the data into a character field X(10)?

2 Answers  


What is the use of DSNDB07 ?

1 Answers  


How to execute only th 15th step of JCL consisting of 50 steps?

12 Answers   Bank Of America,


In JCL..for TIME Parameter was specified both JOB & STEP..which one is overrides

6 Answers   Satyam,


How I sort the records in a file and copy the first 10 records to another file

5 Answers  


How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

0 Answers  


Categories