Telling "processing only" from a report
Kenneth Brody
kenbrody at bestweb.net
Wed May 17 10:56:51 PDT 2006
Quoting Mike Schwartz (Wed, 17 May 2006 12:29:58 -0500):
> Is there any easy way to tell whether an out.* file is a
> processing-only file, or whether it is a report or any other printed
> output, other than to actually open it? (SCO Unix 5.0.6, filePro
> 5.0.14)
>
> The only thing I can see is to use a file size cutoff of something
> like 250 bytes, so that I can skip reviewing any "processing only" out.*
> files. I'm not sure if that will be very accurate, but it seems to work.
[...]
Check out:
http://www.fptech.com/Products/Docs/FPFormat/screen40.shtml
At offset 26 is a 16-bit value:
128 Form or Label
129 Report
131 "Other"
132 Screen
178 Processing only format
Yes, something will have to open the file and examine it, but you
can write a small utility in just about any language to do it for
you, rather than having to run dmoedef on everything.
In fact, a few lines added to /etc/magic could do most of the work
for you (I did something like that way back in filePro 1.0), and
then a simple grep would weed out the prc-only items.
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list