At 12:28 PM 10/3/01, Michael Hone wrote:
>I want to use part of the footer of a file as a variable in a batch job.
>The record lengths are fixed but the file can have variable numbers of
>records. What I want is always in the same byte position of the last
>record. This file is on a remote machine and if possible, I would like to
>get that piece of data without ftp "get"ing the whole file. But if I have
>to, that's ok. All suggestions welcome.
If both machines are running MPE and have Network Services installed [Is NS
part of FOS now?] I believe you can use RFA [Remote File Access] and the
SUBSET option of FCOPY to retrieve just the last line of the file to the
local machine. Then you can use a variety of options to access the
contents of the file. One possibility from the CI is to use INPUT to get
the record into a variable and the STR() function of the CI to select the
field range you need.
-- Jeff Woods
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *