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
how do you reference the variable unblock file formats from cobol programs
What is a scope terminator give example?
What is the use of intialize verb?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
What is comp-1 and comp-2?
What is the difference between comp and comp-3 usage?
How do you differentiate between cobol and cobol-ii?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How do we get current date from system with century in COBOL?
Can we change the password using ALTER? anyone tried and changed?
What are the various section in data division and briefly explain them.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
In which area will you utilize 88 level items in cobol?
What is report-item in COBOL?