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


Please Help Members By Posting Answers For Below Questions

Differentiate between structured cobol programming and object-oriented cobol programming.

661


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1910


Why would you use find and get rather than to obtain?

677


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.

1999


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

672






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.

5668


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

635


How to print 10 to 1 if the input have only 10 digit number?

804


explain sorting techniques in cobol program?

685


i want a program using by if, evaluate , string, unstring, perform, occurs?

4039


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8616


What are literals?

622


Name the divisions, which are available in a cobol program?

677


What are all the divisions of a COBOL program?

660


How you can read the file from bottom?

654