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

USe the Inspect Clause , get the number of the leading
spaces in the Count variable. Use the reference move then.

Is This Answer Correct ?    32 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1820


How do u write test cases?

1818


HOw can I get the negative sign while deduct high value from low value

2005


What is rmode(any) ?

897


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

834


What is the compute verb? How is it used?

850


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

1060


What is amode(24)?

882


how to move the records from file to array table. give with code example

2425


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

945


What type of SDLC u followed? Why?

1720


What are the different types of condition in cobol and write their forms.

870


What are different data types in cobol?

906


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

847


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2183