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



whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumer..

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 ?    13 Yes 4 No

whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumer..

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

whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumer..

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

whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumer..

Answer / himanshu mistry

ASAP == As Soon As Possible..

Is This Answer Correct ?    2 Yes 2 No

whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumer..

Answer / murthy

adarsha is 100% correct
tnq adarsha

Is This Answer Correct ?    0 Yes 0 No

whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumer..

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

whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumer..

Answer / raju

What is ASAP(what does it mean) ?

Is This Answer Correct ?    0 Yes 1 No

whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumer..

Answer / lalitha

Alphanumeric to numeric - provided the alphanumeric field
has charachters also in it.

Is This Answer Correct ?    1 Yes 5 No

whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumer..

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

Post New Answer

More COBOL Interview Questions

Write the code implementing the perform … varying.

0 Answers  


ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete

4 Answers   TCS,


if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?

3 Answers  


Define static linking and dynamic linking.

0 Answers  


what is search and searchall?what is the diffrence between them?give an best example?

3 Answers   BirlaSoft,






where will we code call by content and call by reference dude pls reply soon ?

2 Answers  


If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.

3 Answers   CTS,


What is the default value of DISP parameter?

3 Answers   IBM,


how can we find total no of records in a file ....is there any utility......?

3 Answers   IBM,


What is file status 39 ?

10 Answers   JPMorgan Chase,


In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.

1 Answers   CSC,


Can we call a CICS program from a batch program or viceversa?If so, how?

3 Answers  


Categories