Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to remove the spaces at end of each record in the
output file Via COBOL program?
note: The file has a VB length

Answers were Sorted based on User's Feedback



How to remove the spaces at end of each record in the output file Via COBOL program? note: The fi..

Answer / rajesh

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

Is This Answer Correct ?    2 Yes 2 No

How to remove the spaces at end of each record in the output file Via COBOL program? note: The fi..

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

More COBOL Interview Questions

How to read records which is in sequential file in reverse order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my doubt any one

10 Answers   IBM,


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

0 Answers  


What is R-mode and A-mode?

3 Answers   TCS,


What is the usage of comp fields in cobol?

0 Answers  


how do u link sub pgm to main pgm ?

2 Answers   TCS,


What is SET TO TRUE all about, anyway?

5 Answers  


Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?

3 Answers   Microsoft,


What will happen if we try to create GDG (+2) generaton instead of (+1) generation?

1 Answers  


What is the difference between a DYNAMIC and STATIC call in COBOL?

2 Answers  


Suppose i want to declare a binary comp fild of 7 byte .how to write?

6 Answers   IBM,


how we can edit records in vsam data set and non vsam data sets

2 Answers   ACS,


how to change picture class of copy book variable inside program?

2 Answers  


Categories