whn do i get soc7 abend while moving alphanumeric to
numeric or while moving numeric to aplhanumeric please
reply ASAP?
Answers were Sorted based on User's Feedback
Answer / b.rajesh
SOC7 abend error will occur when we pass ALPHANUMERIC to
NUMERIC
ex:-
01 a pic x(6) value 'rajesh'.
01 b pic 9(6).
procedure division.
move a to b.
it shows SOC7 error.
SOC7 abend error will NOT occur when we pass NUMERIC to
ALPHANUMERIC
ex:-
01 a pic 9(6) value '901090'.
01 b pic x(6).
procedure division.
move a to b.
| Is This Answer Correct ? | 14 Yes | 4 No |
Answer / y.prasanthi
When we provide invalid data i.e, alphanumeric to numeric
bcz alphanumeric contains characters also but numeric
contains only numbers.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / adarsha
i agree a bit with Y.prasanthi's answer..
> when we move any value say date from numeric to alpha
numeric.. SOC7 will not occur.. but when you do any
logical/arithmetic calculations on it.. SOC7 will appear !
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / nishu
No soc7 error is not for moving numeric to alphanumeric and vice-versa, soc7 means 'bad data',it means if u are providing any arithmetic operator in place of numeric or alphanumeric data.
If you move numeric to alphanumeric value than it wont show any error,but it will give unpredictable results.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / lalitha
Alphanumeric to numeric - provided the alphanumeric field
has charachters also in it.
| Is This Answer Correct ? | 1 Yes | 5 No |
Answer / adithya
SOC 7 ABEND WIL GET WHN WE PASS NON-NUMERIC TO NUMERIC DATA TYPE
IT IS NOT POSSIBLE TO PASS NUMERIC TO ALPHANUMERIC
| Is This Answer Correct ? | 3 Yes | 7 No |
how to convert the recors form vsam file to db2 table tru file aid
hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.
What is Alternate Index ? How is it different from regular index ?
How to Write the RESTART Logic Using COBOL?
4 Answers GalaxE, L&T, Syntel, TCS,
What is the point of the REPLACING option of a copy statement?
Explain about different table spaces.
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the utilization of copybook in cobol?
What are ISOLATION LEVELS? Where do we need to specify them?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
what is the default print format? in cobol