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

What is the difference between PIC 9.99 and PIC9v99?

904


) How do u handle errors in BMS macro

1589


What is cobol?

841


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

846


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2837






what is search and searchall?what is the diffrence between them?give an best example?

5875


how do you define single dimensional array and multidimensional array in your cobol?

767


) How do u handle errors in BMS macro?

1514


What is report-item in COBOL?

796


) what is the difference between AID and HANDLE AID?

1742


What is perform what is varying?

805


Which Search verb is equivalent to PERFORM…VARYING?

778


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1617


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

2022


Mention the guidelines to write a structured cobol program?

704