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
) How do u handle errors in BMS macro?
What is static and dynamic call in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What are the different types of condition in cobol and write their forms.
What are the different rules for performing sort operation?
what is difference between cobol and cobol/400
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is perform what is varying?
What is the difference between external and global variables in COBOL?
For rewrite, why is it mandatory that file needs to be opened?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Why would you use find and get rather than to obtain?
What are declaratives and what are their uses in cobol?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps