-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of K Zafirop
Sent: Friday, May 08, 2009 8:30 AM
To: [email protected]
Subject: Accessing a big sequential file

Hi listers!

Do you have any idea on how to get only the last record of a very big
file 
using either REXX or some other method? I will want to prevent reading
all file 
records in any any case.

<snip>

I would allocate the file with DISP=MOD and write one record and then do
a NOTE.

Then I would close the file, and reopen INPUT. Then I would issue POINT
and do a read backward.

Fastest way I know of to get there w/o having to read the whole file, or
do a catalog lookup, get the last volume (or only), read the VTOC, get
the EOD info...

Regards,
Steve Thompson

-- Opinions expressed by this poster do not necessarily reflect those of
poster's employer, wife, or those of IBM-Main's subscribers --

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to