Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / akviswa

1. Count the length of the string
2. Move the value of WS-IND to 1
2. perform until the length of the string=0
a. If string(ws-ind:1) <> spaces
Increment the counter for count
end-if
b. Decrement the length of string and increment WS-IND
end-perform

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What rules are to be followed while using the corresponding options?

1016


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

1087


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.

6452


What is amode(31)

1109


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1054


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

1034


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

1108


how to convert the recors form vsam file to db2 table tru file aid

3209


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1155


Have you used comp and comp-3 in your project? And how?

2424


What are declaratives and what are their uses in cobol?

1132


What is the utilization of copybook in cobol?

1114


Write a program to explain size error.

1137


Describe the cobol database components?

1125


Which Search verb is equivalent to PERFORM…VARYING?

999