HP3000-L Archives

April 1998, 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:
Gavin Scott <[log in to unmask]>
Reply To:
Gavin Scott <[log in to unmask]>
Date:
Thu, 9 Apr 1998 17:00:27 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (52 lines)
Michael continued the-thread-that-will-not-die (wait, that's the PCL one).
> Do *NOT* convert your existing script to parse LISTF,20 output.  That's
> what you did wrong the first time.  If you're going to modify your script
> anyway, do it right and switch to using the FINFO function instead!

I'm not sure Jeff is still paying attention to any of us, but I thought I
would make a couple more suggestions :-)

Since the choice of the new :LISTF[ILE] mode numbers is essentially
arbitrary at this point (all the single digit ones being used already),
I suggest a return to the idea of using "22" rather than "20".  It is
a lot easier to type "22", as it delays to the last possible instant
the requirement that you remember that "2" isn't what you want, and
then only requires that you make your finger press the last key a
second time.  "20" is a lot more work to type.  It's also mnemonically
rememberable as "mode 2 type 2", or the second (newer) mode 2.

In response to the above quote from Michael, I'll point out that the
problem with converting from :LISTF to FINFO, is that :LISTF[ILE] operates
on a set of files (by wildcard or ;SELEQ) whereas FINFO is a file-at-a-
time interface.

What if :LISTF[ILE] let you do:

   :LISTFILE @,MYCOMMAND

and then for each file matching the fileset(s)/SELEQ :LISTFILE would
internally execute:

   :MYCOMMAND filename

Where "filename" is the fully qualified filename of the file selected
by :LISTFILE.

This would let you build your own list modes by writing a command file
that used FINFO to interrogate and display whatever attributes of the
file you like.  It gives most of the flexibility of fully user-definable
:LISTF[ILE] modes without the complexity of enhancing :LISTF[ILE].

It would also let you build just about any other fileset-based command
script in MPE.

It has the advantage over the :LISTF,6 to a file followed by reading the
file of not having to wait until the :LISTF completes before the first
output line appears.

It's also simple enough that I think people would use it a lot, as opposed
to writing a program, using a lot of complicated JCL, or even a flexible
but complicated user-defined mode facility for :LISTF[ILE].

G.

ATOM RSS1 RSS2