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 search and searchall?what is the diffrence between them?give an best example?

5583


How you can characterize tables in cobol?

727


what is the difference between COBOL2 AND COBOL390?

2462


) what is the difference between AID and HANDLE AID?

1641


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

835






Why did you choose to work with ibm mainframe cobol programming?

637


What is rmode(24)

686


Explain how to differentiate call by context by comparing it to other calls?

694


What are the different rules to perform a Search?

623


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3729


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5072


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1032


For rewrite, why is it mandatory that file needs to be opened?

627


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

893


Differentiate between structured cobol programming and object-oriented cobol programming.

673