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
what is the difference between COBOL2 AND COBOL390?
how do you reference the rrds file formats from cobol programs
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the difference between comp and comp-3 usage?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Write a cobol program making use of the redefine clause.
How to print 10 to 1 if the input have only 10 digit number?
How to know whether the module is dynamical or statistical?
In which area will you utilize 88 level items in cobol?
What type of SDLC u followed? Why?
What are 77 levels used for?
What is the difference between structured cobol programming and object alternativelyiented cobol?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Which is not true about evaluate statement
State the various causes of s0c1, s0c5 and s0c7.