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 ?    14 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

Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a

3 Answers   TCS,


wht do u mean by (*,intrdr) wht is * used for ?

2 Answers  


Can we access the a[0] in the array ?

6 Answers   DCL, IBM,


Syntax for JCLLIB & JOBLIB???

1 Answers  


how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

2 Answers  


where did you see the information regarding abend codes in jcl?

1 Answers   Hewitt,


consider the fallowing 77 stat pic 9. 88 male value 1,2,3. 88 female value 4 through7. what will be the value of stat a) set male to true. b) set female to true.

5 Answers  


Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?

2 Answers   TCS,


What are the divisions in a cobol program?

1 Answers  


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

0 Answers  


what happens when a copybook variables are declared using include statement ?

3 Answers   IBM,


i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..

4 Answers   CGI,


Categories