APPENDIX E2

************************************************************
*               SCRIPTING THE PROGRAM EXECUTION            *
************************************************************

When you compile a program on Unix, an object file, called
a.out, is created (except for cobol, where the object file 
is called cbl.out).

A) PROGRAM EXECUTION

   type: a.out     to execute the program

   for cobol, type: runcbl

   The results of the execution will be displayed on the 
   screen.

B) SCRIPTING THE PROGRAM EXECUTION

   If you want to save the results of a program execution,
   in a file called output, you may:

   i)   redirect the output to a file called output:

        a.out > output

        for cobol:     cbl.out > output

   ii)  script the session in a file called output:

        type:   script output    to start the script session
             Script started, file is output
        type:   a.out            to execute your program
        (for cobol, type: runcbl)
        type:   control-d        (Hold the control key while
                                  pressing the d-key)
             Script done, file is output

   iii) strip the output file from control characters:

        File output contains special control characters you
        will be able to eliminate, if you type:

              cat output | wsstrip > output1
       
   iv)  edit the file output1 (include headers, 
        explanations) before making it part of your 
        assignments.
.bp