Fourth COBOL Programming Assignment - Fall 2000

 

This project consists of two programs that must be written.

Part 1:

Write a screen program to create an output file written to disk. The layout of the file is your choice except for two factors:

  1. there must be at least four pieces of data inputted at the screen for each record to be written
  2. one of the four fields should be a single one digit code that you will use in part 2 to retrieve information from a table. Be careful that you put appropriate data in the code field so that when you are using it to get information out of the table in part 2 it will work correctly

You should pass in the program and the file that was created (either send it to me via email or print it out).

Part 2:

Write a screen program to read the file you wrote in Part 1 and display the information on the screen. In this program you must have a table set up in WORKING-STORAGE and you must retrieve information from the table using the one digit code. In this program you want to step through the file that you created in part 1, one record at a time. You should terminate processing when you have processed all of the records or when the user chooses to quit.

You should pass in the program and a several pictures of the screen showing the results of running your program.