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

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


Please Help Members By Posting Answers For Below Questions

what is the difference between COBOL2 AND COBOL390?

2986


how do you reference the rrds file formats from cobol programs

1494


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1317


What is the difference between comp and comp-3 usage?

1127


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1451


Write a cobol program making use of the redefine clause.

1121


How to print 10 to 1 if the input have only 10 digit number?

1216


How to know whether the module is dynamical or statistical?

1081


In which area will you utilize 88 level items in cobol?

1098


What type of SDLC u followed? Why?

1957


What are 77 levels used for?

1052


What is the difference between structured cobol programming and object alternativelyiented cobol?

1186


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5316


Which is not true about evaluate statement

2394


State the various causes of s0c1, s0c5 and s0c7.

1026