I've one string with spaces ( I N D I A ). My question is I
want remove the spaces & combine in to single string without
space (INDIA).How we can write the cobol program & wich
options we need to use. Please let me know.
Answer Posted / sup
small modification to ans 9th,
If ws-india(ws-i:1) = spaces
continue
Else
move ws-india(ws-i:1)to ws-india-f(i:1)
i=i+1
End-if
Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Differentiate between structured cobol programming and object-oriented cobol programming.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Why would you use find and get rather than to obtain?
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.
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
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.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How to print 10 to 1 if the input have only 10 digit number?
explain sorting techniques in cobol program?
i want a program using by if, evaluate , string, unstring, perform, occurs?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are literals?
Name the divisions, which are available in a cobol program?
What are all the divisions of a COBOL program?
How you can read the file from bottom?