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 / naveen

You have many options.

1. Use Reference modification if you want a COBOL program.
2. INSPECT will also do.
3. Use SORT, OUTREC option, it will also work.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why occurs cannot be used in 01 level in COBOL?

809


Define static linking and dynamic linking.

766


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

797


what happens if parmparameter passes zero bytes to the program

1753


Write the code to count the sum of n natural numbers.

789






What kind of error is trapped by on size error option?

832


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

875


What is the utilization of copybook in cobol?

764


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

734


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

897


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

773


What is amode(31)

807


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2763


i want a program using by if, evaluate , string, unstring, perform, occurs?

4190


What is the local-storage section?

763