InterviewSolution
Saved Bookmarks
| 1. |
How do we remove the spaces at end of every record in an output file that is of variable length? |
|
Answer» Spaces that are PRESENT at the end of the record are called trailing spaces. COBOL does not provide the functionality to remove such trailing spaces. But it can be achieved by using the RECORD-LENGTH field as FOLLOWS:
|
|