[comp.lang.rexx] I need and exec to do the following:

Jeff Boyd <BOYDJ@QUCDN.QueensU.CA> (01/21/91)

A possible algorithm:

   1) Pass through the file once; store each title found in an array, and
      include the line number where it was found.
   2) Call your favourite sort routine to sort the titles and re-order
      array from 1) accordingly.
   3) Write the file of sorted titles.
   4) Pass through the original file again, this time locating the files
      and writing them according to the new order from 2). EXECIO can use
      the line numbers to do direct reads.

Jeff Boyd <BOYDJ@QUCDN.QueensU.CA> (01/21/91)

Apologies for the many grammatical errors in my preceding posting. If
anyone finds it too hard to interpret, let me know and I'll clean it up.

IO80214@MAINE.BITNET (Jake Thompson) (01/21/91)

    I'm not experienced in Rexx, so I'm looking for someone to write
up a program for me.  The exec will have to be able to take a file
and sort it by the first line after each separation line.  To expand,
the essentials are:
    1.  Main file which consists of many appened single files.
        Each separate file is denoted by a line of equal signs (=)
        above the title line.
    2.  Sort the individual grouped files alphabetically by the text
        of the title line.
    3.  To a separate file; write a list of the alphabetized titles.
 
    I've been told Stem is the way to go for sorting the main file.
The system I'm on is an Ibm (os: vm/sp(cmsr 6)) rexx version unknown.
This exec is for personal use.  Money is tight so I can't offer monetary
compensation, but I'm willing to send a copy of my cookbook when it's
completed.  One stipulation is that the exec has to be able to accomidate
large files (4000 lines), if possible.  I can break up the files for
processing if neccessary though.  If anyone has some spare time I'd
really appreciate recieving this exec as soon as possible.  I'll send
a copy of a short main (unsorted) file and any pertinent information
to anyone who's interested in helping me out.
 
Jake Thompson     University of Maine     Bangor, Maine, Usa
                  Dept. of Engineering

becker@vela.acs.oakland.edu (Anthony M. Becker) (01/30/91)

I presume that you are referring to a NOTEBOOK file.  Though I do not
have an exec that does exactly what you asked for, what I do have is a
group of execs that create an index of the NOTEBOOK file (sorted
ascending by date), and provide a FILELIST- or MACLIST-like environment
for reading, replying to, logging, and deleting notes from the
NOTEBOOK. It is currently able to process to process notes in both CMS
NOTE formats and in PROFS formats.  If you are at all interested, feel
free to write, call, or e-mail to me.
--
************************************************************************
* Anthony M. Becker                  *  "Wenn man die Zeitungen liest, *
* 234 Dodge Hall of Engineering      *  gewinnt man den Eindruck, dass *
* Office of Computer Services        *  wir bis zu den Knien in Benzin *
* Oakland University                 *  stehen.  Nur noch ein Funke    *
* Rochester, MI  48309-4401          *  fehlt."                        *
* USA                                *     - Michail Gorbatschow       *
*         phone: 313/370-2117        *                                 *
************************************************************************

becker@vela.acs.oakland.edu (Anthony M. Becker) (02/07/91)

I have to admit that I wasn't quite prepared for the number of requests I got
for my execs.  I've finally gotten them together for distribution.  They
are available for anonymous ftp from vela.acs.oakland.edu, and can be
found in the directory /pub/ibmvm.  Be sure to look at the "rdm.README"
file.  Have fun.