I have a field with data type X(10). I want to perform
arithmetic operation on this field? I tried doing it by
moving the value into a numeric field. but it didn't work
out. I am getting a S0C7 abend. Pls let me know if there is
any way of getting this done?

Answer Posted / anonymous

You cant perform any arithmetic operationon alphabetic and
alphanumeric data items . If u try to perform u ll get SOC7.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the sections present in data division.

701


how do you reference the ksds vsam file formats from cobol programs

666


What is the difference between Call and a Link?

702


example for sub strings ? and refernce modifications whit output pls

1846


How can you get the ksds file records into your cobol program?

644






What are different data types in cobol?

694


Explain how to differentiate call by context by comparing it to other calls?

689


What is the difference between perform … with test after and perform … with test before?

885


i want a program using by if, evaluate , string, unstring, perform, occurs?

4065


How do you reference the fixed block file formats from cobol programs

709


What kind of error is trapped by on size error option?

743


In COBOL, what is the different between index and subscript?

763


Whats the difference between search & search ALL?

5270


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

678


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17054