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 / rajesh

U can declare a copybook for the output file without spaces
and this will do.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

627


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1416


How to know whether the module is dynamical or statistical?

875


what are decleratives in cobol?

2004


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

840


Mention the guidelines to write a structured cobol program?

834


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

976


What are the different types of condition in cobol and write their forms.

876


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

929


Whats the difference between search & search ALL?

5891


Why did you choose to work with ibm mainframe cobol programming?

850


how do you reference the printer file formats from cobol programs

905


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

909


What are different data types in cobol?

916


Name some of the examples of COBOl 11?

2887