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

Can you please let me know the centre name of INS certification in Kolkata.

2284


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

1243


What is cobol?

1288


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

2133


what is the difference between COBOL2 AND COBOL390?

3112


What is amode(31)

1214


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2530


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

12533


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

1207


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

1205


What is the difference between perform … with test after and perform … with test before?

1494


What is perform what is varying?

1219


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

1304


What is the Purpose of Pointer in the string?

1122


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

1203