How to delete leading spaces/blank in COBOL ?
Example:- 01 data-name-1 pic x(220) " English is a
language".
I would like to delete leading spaces.

Answer Posted / varun v

I agree with Ans # 1 also.

But I think "Inspect Tallying" is the effective one as
there is no manual calculation is required for finding the
exact length of the second variable field(CHR6 in Ans #1)
is required.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can characterize tables in cobol?

706


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8120


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1891


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

862


Define cobol?

851






explain sorting techniques in cobol program?

678


What is the compute verb? How is it used?

649


How do we get current date from system with century in COBOL?

789


What is the utilization of copybook in cobol?

646


What is the Purpose of Pointer in the string?

632


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

809


Write a cobol program making use of the redefine clause.

717


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

660


How to print 10 to 1 if the input have only 10 digit number?

799


What are the different rules of SORT operation?

689