Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to read the last record of a sequential file

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> Interview Questions
Author Message
Rahul_kumar
Warnings : 1

New User


Joined: 24 Jun 2006
Posts: 14

PostPosted: Wed Aug 06, 2008 7:48 am    Post subject: How to read the last record of a sequential file
Reply with quote

Hi,

I was asked how to read the last record of a sequential file.There are 2 possibilities:

1) The last record is an end of file thereby we can't read the last record.
2) If he means to say that the last record before EOF then is there any other way except to read all the records sequentially.

Regards,
Rahul
Back to top
View user's profile Send private message
References
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8596
Location: 221 B Baker St

PostPosted: Wed Aug 06, 2008 8:09 am    Post subject:
Reply with quote

Hello,

You read the records sequentially from the front.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 Hours
Page 1 of 1