how can count the number of character in feild ?? suppose
for instance i have a feild with value ' rajesh sarkar'
then how can v count the number of characters whitout
spaces...........

Answer Posted / dk

Declare an array with PIC X.
check for every subscript whether it is not SPACES.
Count the occurrences for non space values.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

) how do u code after getting data?

1799


How many bytes S(8) comp field occupy and its maximum value?

1853


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3945


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

876


How do you differentiate between cobol and cobol-ii?

859


how do you reference the variable unblock file formats from cobol programs

1006


How to know whether the module is dynamical or statistical?

868


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2286


) How do u handle errors in BMS macro

1704


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1885


Write down the divisions of cobol program?

842


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

621


What is redefines clause in COBOL?

1039


Describe the cobol database components?

888


how do you define single dimensional array and multidimensional array in your cobol?

864