HP3000-L Archives

June 1999, Week 2

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:
Shane Devereaux <[log in to unmask]>
Reply To:
Shane Devereaux <[log in to unmask]>
Date:
Tue, 15 Jun 1999 13:32:27 +1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (95 lines)
Hi Mark,

Just a quick idea, I am sure the more experienced guys on the list may have
better methods but I would begin by using FCOPY.  It isn't something I have to
do lately, however as the List has pointed out the web based HP documentation is
a pretty good place to start looking these days.

1.Create a file with the correct characteristics you want.

2. Use Fcopy to copy your files one by one to the new file.

please note the following from the HP documentation.


> The description of each function includes its syntax, instructions for using it, with
> restrictions (if any) and examples for its use. In each case, unless otherwise
> specified, the fromfile must have read access and the tofile must have write or
> append access. If the tofile has append access, the new data is added following
> the old data.
>
> Appending Files
>
> Often you need to string several files together. Use FCOPY to append a file to
> another as follows:
>
>    1.Use the MPE FILE command to give the tofile append access
>      (ACC=APPEND), and set its limit large enough to hold the contents of all
>      the files you are appending to it.
>
>      For example,
>
>         >:FILE INFO3;REC=-80,10,F,ASCII;ACC=APPEND;DISC=500,2
>
>      Refer to the MPE File System Reference Manual (30000-90236) for
>      MPE V/E or the Accessing Files Programmers Guide (32650-90017)
>      for MPE XL for instructions on calculating the amount of file space you
>      would require.
>
>    2.Copy the first file you want to append to the tofile. Type an asterisk in
>      front of the tofile name to use the file characteristics described in the
>      preceding FILE command instead of the default file characteristics. If the
>      tofile is new, use the NEW function. For example,
>
>         >FROM=INFO1;TO=*INFO3;NEW
>
>      The system responds with the following message:
>
>         EOF FOUND IN FROMFILE AFTER RECORD 19
>
>
>
>         20 RECORDS PROCESSED * * * 0 ERRORS
>
>    3.Copy any subsequent files in the order you want to append them. Use an
>      asterisk alone to reuse the tofile in the previous command. For example,
>
>         >FROM=INFO2;TO=*
>
>
>
>         EOF FOUND IN FROMFILE AFTER RECORD 24
>
>
>
>         25 RECORDS PROCESSED * * * 0 ERRORS
>
Mark Halstead wrote:

> Hi All,
> I need some help joining two files together.  File A is 100 Bytes and 250
> records, file B is 25 bytes and 250 records.  I need to be able to create a
> 125 byte, 250 record file from these two files. The files need to be sort of
> "joined at the hip".  I've tried the Posix Paste command, but it deblanks so
> that if the last 10 bytes of file A are blank I end up with data stopping at
> 240 instead of 250 in my output file.  I've been told this is possible using
> Suprtool, but I don't want to tell my client they need to buy a piece of
> software to do something that *seems* so simple.
>
> My client has the the usual 5.5 FOS/Posix capabilities as well as QUAD and
> Editor.
>
> Thanks.
>
> Kind Regards,
> Mark

--
Shane Devereaux
Manager Information Systems
Mudgee Shire Council
--------------------------------------------
Phone 0263 725888
Fax 0263 725815
Email [log in to unmask]

ATOM RSS1 RSS2