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

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

1247


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

2995


What is the Purpose of Pointer in the string?

1075


For rewrite, why is it mandatory that file needs to be opened?

1104


Why would you use find and get rather than to obtain?

1183


How do you reference the following file formats from cobol programs?

1158


What is redefines clause in COBOL?

1291


What are the different rules of SORT operation?

1138


What is report-item in COBOL?

1151


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1227


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

1329


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

1103


What is the difference between external and global variables in COBOL?

1457


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

1167


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2072