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 some of the examples of COBOl 11?

2887


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2243


What is a SSRANGE and NOSSRANGE?

1125


what is the difference between COBOL2 AND COBOL390?

2733


What are the different types of condition in cobol and write their forms.

876


What do you understand by psb and acb?

850


In COBOL programming, what is PERFORM? What is VARYING?

874


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

2968


How are the next sentence and continue different from each other?

1024


How many sections are there in data division in COBOL?

893


Describe the cobol database components?

900


how can i see junk values in dclgen or in hostvariable of comp ?

2759


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

911


What is the LINKAGE SECTION used in COBOL?

1214


Why did you choose to work with ibm mainframe cobol programming?

852