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 / vikas pujar

We can use Inspect to accomplish this.

1) Inspect ws-var tallying ws-count for all spaces.

Here number of spaces will come and sit in ws-count, by deducting it with length of variable will get number of characters.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write some characteristics of cobol as means of business language.

622


What is static and dynamic call in cobol?

601


How many sections are there in data division in COBOL?

680


When is inspect verb is used in cobol?

679


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5379






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

17054


What are the rules of the move verb?

709


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

698


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1933


What is the use of intialize verb?

752


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1774


Explain how you can characterize tables in cobol?

643


What are the various section in data division and briefly explain them.

700


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

719


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

721