HP3000-L Archives

June 1998, Week 4

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:
Tony Peters <[log in to unmask]>
Reply To:
Date:
Thu, 25 Jun 1998 16:38:47 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Doug Werth <[log in to unmask]> wrote:
  >>
    While MPE programming is wonderful, and getting better all the time, there
    still are rare times when using other programs is the best way to go. For
    instance, do a :listgroup @.@ into a message file and then write a CI script
    to process the output. Let's say that the output contains over 50,000 lines.
    Simply reading and processing the file with the CI will mean 50,000
    expensive FOPENs and 50,000 expensive FCLOSEs. Qedit, Quad, grep, even
    EDITOR could pare that file down to size quickly and efficiently.
    
    You know, EDITOR has gotten a bad rap over the years that isn't entirely
    deserved. While not as full featured as others there are still some
    extremely powerful features.  And besides, it never hurts to know how to use
    the one utility that is on every HP 3000. You just never know when you will
    need it.
  <<
Couldn't agree more, and as a matter of fact, most of these type of things were 
done with EDITOR and it's While loops in the past. We still use some of these.

We did try a couple of file label parsing programs in MPE, but as you point out,
when the records go up over a few dozen lines, it isnt worthwhile.  Those type 
of reports we found were easy to do in Speedware, so we did.  It is the small 
stuff like getting hold of Job or Session numbers, or short lists of files, or 
as in the case that started all of this, the output from a single command where 
MPE programming and message files excel. 

If the info you need is the result of searching a small(certainly less than 
50000) set of data, this method should work fine. 


                                          Tony Peters                     
       _/_/_/_/_/           _/_/_/_/_/    Project Manager - New Technology
      _/            _/     _/      _/     S&C Electric Canada Ltd          
     _/            _/     _/              90 Belfield Rd                   
    _/_/_/_/_/  _/_/_/   _/               Toronto ON  M9W 1G4              
           _/    _/     _/                Ph  416 249-9171                 
          _/    _/     _/      _/         Fax 416 249-3193                 
 _/_/_/_/_/           _/_/_/_/_/          Email   [log in to unmask]        
                                                                           
My Thoughts, My Fault.  Don't blame anyone else, cause they have no idea 
what I am thinking.  Good thing too.

ATOM RSS1 RSS2