how do we solve soc 7 and soc4 ?

Answers were Sorted based on User's Feedback



how do we solve soc 7 and soc4 ?..

Answer / pradeep

SOC7 is a data exceptional error, means we load any junk
data into one field of a record.
we can resolve by these steps,
1.compile and run the program,in the spool we can find the
offset value for the job. note that offset value and run the
same job again with compiler option as LIST.
2.see the spool for the offset value where it is
located,means exactly in which numerical operation that
abbend occured.EG: total = salary + commision.
3.after the example statement we found the SOC7 error.
so, we knew that we found SOC7 there.
4.finally place the DISPLAY statement in the respective
paragraph we can found exactly where the updation is
failed.Means on stopped record there may be a junk value in
the record.

Is This Answer Correct ?    5 Yes 0 No

how do we solve soc 7 and soc4 ?..

Answer / sujith

Hi,
There can be many methods to solve SOC7
1)by using XPEDITER
2)Going behind the reasons causing Soc7 in working -
storage. (we can offset the wrong data and compile and
later correct it)
3)the most preferable one is to get the value of offset in
compile list,getting this offset then find this offset's
corresponding value in your pgm.It will take you straight
to the line causing SOC7.


SOC 4 may be due to less space than what is needed by the
program. This is also called Storage violation error - can
be due to various
reasons. e.g.: READING a file that is not open, invalid
address referenced due to subscript error.

Using Display statements points or after lines you suspect
can show where the error occurs.

Is This Answer Correct ?    2 Yes 0 No

how do we solve soc 7 and soc4 ?..

Answer / praveen

soc 7
compile with list option.
soc 4
nossrange

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More DB2 Interview Questions

List down the data types in the db2 database.

0 Answers  


What is package in db2 mainframe?

0 Answers  


insert into tablename a column1, column2 select column1, column2 from tablename b i am getting abend -104..can any one help?

3 Answers   Syntel,


What is a synonym ?

2 Answers  


What is the syntax for seeing the columns and data types of a table in the db2 database?

0 Answers  






Which transaction use a command thread ?

1 Answers  


what will be the output of the below given query, if no matching records are found : (a.) 0 (b.) null (c.) error select Avg(salary) from TableA where Deptno = 'insurance'

10 Answers   Amdocs,


How does DB2 determine what lock-size to use?

2 Answers  


Plan is an executable form of sql statements,But what exactly resides inside a Plan. what are the details inside Plan.

2 Answers   IBM,


Consider that a package is bound into 2 different collections and the PKLIST option specifies both the collections. If the collection id is not specified in the program while executing the SQL query, then when the DB2 system will search the package list, which collection will it pick up or will it give an error/abend?

1 Answers  


run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...

0 Answers   IBM,


Where are plans stored?

2 Answers  


Categories