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

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?

1329


Define cobol?

1408


What are the rules of the move verb?

1270


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1153


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1540


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

1299


Are you comfortable in cobol or jcl?

1050


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1242


Explain what you understand by passing by value.

1157


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1084


What is the LINKAGE SECTION used in COBOL?

1530


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17881


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.

4173


How do u write test cases?

2069


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

3265