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 / arpan
Probably you can write SPACES instead of ' ' in the
UNSTRING statement.
UNSTRING WS-NAME DELIMITED BY SPACES
INTO WS-CHAR1, WS-CHAR2, WS-CHAR3, WS-CHAR4, WS-CHAR5.
STRING WS-CHAR1, WS-CHAR2, WS-CHAR3, WS-CHAR4, WS-CHAR5
DELIMITED BY SIZE INTO WS-NAME1.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Write a program that uses move corresponding.
What is the difference between Global and External Variables?
Write the code implementing the perform … varying.
what are decleratives in cobol?
Write down the divisions of cobol program?
Write a program to enter and display the names of students in a class using the occurs clause.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Explain what you understand by passing by value.
What is the difference between perform … with test after and perform … with test before?
What are the access modes of START statement?
How to remove 2 duplicate records and copy only one using job control language?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
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.