How to remove the spaces at end of each record in the
output file Via COBOL program?
note: The file has a VB length
Answer Posted / mvramesh
I will explain this with an example. Lest assume the Maximum record length for VB file is 4000.
For every record you write, Move the actual record length value to RECORD-LENGTH, this would trim off the entire record beyond that length. If the data is populated only till 3000 bytes, move 3000 to RECORD-LENGTH which would trim off the last 1000 bytes.
I hope i answered your question.
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
A table has two indexes defined. Which one will be used by the SEARCH?
What is difference between static and dynamic call in cobol?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
example for sub strings ? and refernce modifications whit output pls
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How do you define a variable of comp-1 and comp-2?
What is the difference between comp and comp-3?
What are declaratives and what are their uses in cobol?
Can a Search can be done on a table with or without Index?
What rules are followed by the search verb.
What is amode(24)?
Write the code implementing the perform … varying.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the difference between next sentence and continue in cobol programing language?