HP3000-L Archives

September 2000, Week 3

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:
"Thomas M. Root" <[log in to unmask]>
Reply To:
Thomas M. Root
Date:
Fri, 15 Sep 2000 22:04:30 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (66 lines)
I'm sorry I was so obtuse in my previous reply.  I ment to point out
that FCOPY has a very useful ability to split or combine files.  When
you run FCOPY without entering anything else on the command line, you
can issue a series of commands in a single program run.  In particular,
you can use an anterisk in place of a file reference to mean 'continue
with the previous file', and the example would be more useful if I had
written the correct syntax for the SUBSET portion of the command:
   >FROM=*;TO=NEW2;SUBSET=,100000;NEW
This means 'continue reading from the OLD file, write to a new NEW2
file and copy 100000 records from where the last command stopped.'
This form is particularly useful for copying from a tape (you don't
rewind the tape between commands) or from a variable record length
file.

The same syntax can be used for the TO file in order to combine several
files.  For example:
   :FILE LP;DEV=LP
   :FCOPY
   >FROM=FILE1;TO=*LP
   >FROM=FILE2;TO=*
   >FROM=FILE3;TO=*
would combine FILE1, FILE2 and FILE3 into a single spool file for LP.

HTH,
Tom

"Thomas M. Root" wrote:
>
> FCOPY
> >FROM=OLD;TO=NEW1;SUBSET=,100000;NEW
> >FROM=*;TO=NEW2;SUBSET=100000;NEW
> >FROM=*;TO=NEW3;SUBSET=100000;NEW
> etc
>
> Tony Summers wrote:
> >
> > Try FCOPY
> >
> > purge New1, new2, new3 etc.
> > fcopy from = old;to=new1;subset=0,100000;new
> > fcopy from = old;to=new2;subset=1000000,1000000;new
> > fcopy from = old;to=new3;subset=2000000,1000000;new
> > etc... until eof reached....
> >
> > You could also try zipping the file on the HP first !
> >
> > >>> "Girard, Frank" <[log in to unmask]> 13/09/00 14:37:43 >>>
> > I have a monthly extract file that gets created, approx. 200 megs worth of
> > data.  The service I am ftp'ing to, can only handle files of 50 Meg or
> > smaller.  Is there a utility on the HP, or available for the HP, that can
> > take the file and split it into smaller chunks for easier handling?
> >
> > Thanks in advance
> >
> > Frank Girard
> > J. Baker Inc.
> > [log in to unmask]
>
> --
> Illegitimi Non Carborundum
> Scottsdale, AZ

--
Illegitimi Non Carborundum
Scottsdale, AZ

ATOM RSS1 RSS2