Can we move SPACES to numeric field and ZEROES to
alphabetic field? If yes what are the way doing this?

Answer Posted / chakri

Sriram we can move numeric data items to alphanumeric data
items and vice versa. But when we do arithmetic operations
then only it will throw error if we move alphanumeric data
items to numeric items.

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

652


What are the different rules to perform a Search?

613


How you can characterize tables in cobol?

709


State the various causes of s0c1, s0c5 and s0c7.

656


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

650






What is the use of intialize verb?

738


What is the difference between PIC 9.99 and 9v99 in COBOL?

728


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

886


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

698


What are the pertinent COBOL commands?

2619


What do you understand by psb and acb?

659


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1797


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5668


Write the code to count the sum of n natural numbers.

697


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

668