Subject: | |
From: | |
Reply To: | |
Date: | Thu, 17 Feb 2011 08:09:39 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I'm unclear exactly what you're doing but the key to get what you want is to append to the output file(s). Something
along the lines of:
print foo;start=1;end=1 >> myfile
print foo:end=-1 >> myfile
You might need a feq (file myfile,old -or- file myfile,oldtemp) but you can figure that out. (of course if you do need
a feq, then you'll need to say ">>*myfile"...but you knew that ;-) - d
---
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
> -----Original Message-----
> From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of Jay Willis
> Sent: Thursday, February 17, 2011 7:35 AM
> To: [log in to unmask]
> Subject: [HP3000-L] Mpe: PRINT command to get first and last records of a fileset
>
> I have 2 command files, one to print to a file the first record in each file of a set of files (print
> !fileset; start=1;end=1), and the other to do the same for the last record in each file of a set of
> files (print !fileset; start=-1).
>
> What I want to do is to combine these two functions into one command file so that I can PRINT the
> first AND last records of each file in a fileset to a back-referenced file.
>
> Is this even possible with the PRINT command?
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|