Memopad printer outer

      This  is  the  generic  program  that  will  take  a  report  already
      formatted by a *.FRM file output by ANDI, and insert the text from  a
      memopad. The results are sent to a third file.



                     +----------+
                     |  Report  |
                     |   File   |
                     |          |              +----------+
                     +----------+              | MEMOPAD  |
                     |memopad nn|--points to ->|  file    |
                     +----------+              |          |
                           |                   +----------+
                           |                         |
                           |                         |
                           |                         |
                           +-------------------------+
                                        |
                                        |
                                        |
                                        V
                                  +----------+
                                  |Results in|
                                  |   .LST   |
                                  |   file   |
                                  +----------+

      To use this program you must follow these conventions.



      The program will search through the report  file  for a line with the
      word MEMOPAD in it (case has no bearing on the search).  If  it  does
      not find  MEMOPAD it just sends the line to the results file without
      any changes.

      If it does fine the word memopad as the first word in a line, it then
      assumes that the next thing  it  finds  is  going to be a number. For
      example a valid line would look like:

           memopad 247
           MEMOPAD 0
           Memopad 31174
      The number points to the record in the MEMOPAD  file  that  holds the
      text  we  want  to  put  into  the results file. It then replaces the
      report file line with the text it finds in the MEMOPAD file.

      MEMO.BAS Documentation                                             2

      CAUTION:  memopad  MUST  appear  by  itself  on  one  line.  Use  the
      following line in the .FRM file to create this line:

      MEMOPAD #MEMOPAD

      or, if you're doing it a little fancier

      /field n,MEMOPAD
      .
      .
      .
      .

      MEMOPAD \n

      You  must  take  responsibility for page  breaks.  If  you  want  the
      MEMOPAD text to be  on  a  page  by  itself,  you  should precede and
      follow  the  MEMOPAD  line with a form feed. This program  will  just
      insert the text into the report. No other formatting will be done.

      I have had good luck estimating  how  many  lines  of  text  might be
      inserted  into the page, and then reducing the page size in the  .FRM
      file. A little experimenting should bring acceptable results.

      To operate MEMO.BAS

      Select  within  ANDI  as you normally do, and OUTPUT SELECTED RECORDS
      USING FORMAT xxx TO XYZ.DAT.   (XYZ  can  be any name you choose, the
      program defaults to the extension .DAT)

      After you have ouput the report (with the line memopad  nnn in it, of
      course) enter RUN MEMO. The program will  prompt you
      for the name  of  the  report file and the AMOS name of the ANDI file
      you are using. No extension is necessary for the ANDI file name.
      The results will go to a  file with the same name as the report file,
      and will have the extension .LST
      name and .LST for an extension.

                               July 20, 1983, ske