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...

can we read in input the file with a variable length ?
please , how ..could you help me ?

Answer Posted / kotagiriramachandra

we can read an input rec of variable length.For that u need
to declare
01 main-rec
05 rec-data pic x(m) <== m should be max length of rec
specified in file declaration(avg length, max length).
05 rec-len pic s9(4) comp
precedure div...
.
.
.
read infile at end...
else move in-rec into main-rec.
I think in this way we can do.If i'm wrong plz let me know..

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9112


How do you get the data to code the BMS macro?

1982


How do define dynamic array in cobol.

1146


How are the next sentence and continue different from each other?

1304


How many sections are there in data division in COBOL?

1147


How do you define a variable of comp-1 and comp-2?

1210


How do you differentiate between cobol and cobol-ii?

1222


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

2405


What is length is cobol?

1111


What is the LINKAGE SECTION used in COBOL?

1536


What is cobol?

1247


How arrays can be defined in COBOL?

1230


What is amode(24)?

1251


What are the different open modes available in cobol?

1202


Whats the difference between search & search ALL?

6549