soc-7 is a bad data,invalid data.
when ever we are moving the alphabets in the position of
numeric then we got this abend. so my question is if
o1 ws-data pic 9(1) value passing the alphabet some x. then
we got soc-7 or not? i want clarification ?

Answer Posted / manju

Hi,

Sruthi's answer is completely wrong.
Guys, If you are not clear with the answer then please dont
post it. This website is refered by many and you may lead
them to wrong direction. Even if you post when you are not
clear, then mention it clearly that you are not sure about
the answer and ask somebody else's suggestion to correct if
that is wrong. Dont post the wrong answer as such you are
sure.

The answer for the above question is:

Yes, S0C7 is data exception, However it is no where related
with move statement. Move statement (Alphanum or Alpha to
Num) and (Num to Alphanum or Alpha) never give you any
abend or error. The move happens either ways.

the simple answer for the above question is "No" you wont
get any abend for the above move statement.

S0C7 comes only when you use Alphabetic feild for
arithmatic operation OR a Numeric feild containing an
alphabet and used for arithmatic operation.

I dont think i am wrong here.. If anybody feels please
correct me.


Thanks,
Manju.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

823


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

684


Write a program that uses move corresponding.

673


What rules are followed by the search verb.

638


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

644






What is the use of intialize verb?

750


What is the difference between Call and a Link?

699


Mention the guidelines to write a structured cobol program?

620


How can you get the ksds file records into your cobol program?

644


What are literals?

632


What guidelines should be followed to write a structured cobol prgm?

673


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958


Write a program to enter and display the names of students in a class using the occurs clause.

652


how to convert the recors form vsam file to db2 table tru file aid

2763


In which area will you utilize 88 level items in cobol?

722