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
what is the use of outrecord?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
HOw can I get the negative sign while deduct high value from low value
What is the Purpose of POINTER Phrase in STRING command in COBOL?
how to refer the data field?
how to convert the recors form vsam file to db2 table tru file aid
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
A table has two indexes defined. Which one will be used by the SEARCH?
Write a program to explain size error.
Difference between cobol and cobol-ii?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Explain what you understand by passing by value.
how do you reference the variable unblock file formats from cobol programs
Can we change the password using ALTER? anyone tried and changed?