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 read a 100 record from a file through cobol?

Answers were Sorted based on User's Feedback



How to read a 100 record from a file through cobol?..

Answer / rajesh k

using arrays we can read 100 records from a file.

Is This Answer Correct ?    5 Yes 2 No

How to read a 100 record from a file through cobol?..

Answer / y@$w@nth

I. I think ur asking how to read 100th record????
here is the syntax

a. MOVE 100 to rec-key

READ in-file KEY IS rec-key
END-READ.

In the above we followed random reading from a VSAM(KSDS) File

b.For sequential file if u need to read 100Th record then we
need to write a perform statement that will run 100 times
then read statement will execute 100 times then after
termination of perform statement we will have 100th record.

II.If ur asking about u need to read 100 records and store
them in a place go and read the all 100 records and store
each record in a table(array).

Let me know if any other...
Y@$W@nth...
Cheers....

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More COBOL Interview Questions

1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max value for N?

11 Answers   Wipro,


Whats the difference between search & search ALL?

3 Answers   IBM,


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

0 Answers   HSBC, Quest,


why do u need inspect verb?

3 Answers   Patni,


how to check whether the open command of a sequential file is successful? or not?

2 Answers   CSC, IBM,


Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.

5 Answers   EDS,


how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?

4 Answers   TCS,


Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a

3 Answers   TCS,


how to access vsam files in cobol and how to differentiate that this is ESDS file

1 Answers   EDS,


How is sign stored in Packed Decimal fields and Zoned Decimal fields?

6 Answers   ABC, HCL, TCS,


How many bytes S(8) comp field occupy and its maximum value?

0 Answers  


Describe the difference between subscripting and indexing ?

2 Answers  


Categories