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
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
Write a program that uses move corresponding.
What rules are followed by the search verb.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is the use of intialize verb?
What is the difference between Call and a Link?
Mention the guidelines to write a structured cobol program?
How can you get the ksds file records into your cobol program?
What are literals?
What guidelines should be followed to write a structured cobol prgm?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Write a program to enter and display the names of students in a class using the occurs clause.
how to convert the recors form vsam file to db2 table tru file aid
In which area will you utilize 88 level items in cobol?