HP3000-L Archives

January 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:
Dave Knispel <[log in to unmask]>
Reply To:
Dave Knispel <[log in to unmask]>
Date:
Wed, 19 Jan 2000 15:21:01 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
FCOPY is still a CM program.  I don't think PRINT is.

David Knispel
[log in to unmask]
Phone: 513-248-5029
Fax: 513-248-2672
----- Original Message -----
From: Leonard S. Berkowitz <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, January 19, 2000 2:34 PM
Subject: PRINT vs. FCOPY


> I need to extract the last record of a file into a second file.
>
> I can use
>
> PURGE file2
> FILE file2;SAVE
> PRINT file1;OUT=*file2;UNN;START=-1
>
> or
>
> PURGE file2
> SETVAR EOF_FILE1 FINFO ("file1","EOF) - 1
> FCOPY FROM=file1;TO=file2;SUBSET=!EOF_FILE1,1;NEW
>
> I assume that behind the scenes PRINT is doing stuff implicitly that I
have to
> do explicitly for FCOPY.
>
> Which method is faster or more efficient or better. Is there a better way?
Is
> there any limitation to PRINT that would hurt me while FCOPY would not?
There
> used to be some issue with PRINT that would take the first 6 or 8 digits
in a
> file as line numbers, but I believe that this has been remedied.
>
> Or is this a trivial matter?
>
> Thanks.
> ===================
> Leonard S. Berkowitz
> Harvard Pilgrim Health Care
> voice: 617-509-1212
> fax:   617-407-8444

ATOM RSS1 RSS2