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
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How do you get the data to code the BMS macro?
Can we change the password using ALTER? anyone tried and changed?
How can you get the ksds file records into your cobol program?
Differentiate between structured cobol programming and object-oriented cobol programming.
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are various search techniques in cobol? Explain.
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Which mode is used to operate the sequential file?
For rewrite, why is it mandatory that file needs to be opened?
What are the different open modes available in cobol?
How to know whether the module is dynamical or statistical?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
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.