HP3000-L Archives

October 2001, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Woods <[log in to unmask]>
Reply To:
Jeff Woods <[log in to unmask]>
Date:
Wed, 3 Oct 2001 14:02:03 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
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 *

ATOM RSS1 RSS2