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

What is a SSRANGE and NOSSRANGE?

818


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

734


What are declaratives and what are their uses in cobol?

706


Name the sections present in data division.

697


What are the different rules to perform a Search?

613






What are 77 levels used for?

656


Name some of the examples of COBOl 11?

2676


What is the LINKAGE SECTION used in COBOL?

885


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

641


What is the difference between Global and External Variables?

660


How do get the result of your program directly on your pc?

1878


Which is not true about evaluate statement

1567


Differentiate between structured cobol programming and object-oriented cobol programming.

663


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2728


What is the difference between goback, stop run and exit program in cobol?

920