Assignment 1 - BAC344

VALUE: 1%

ASSIGNMENT IS DUE: Please see your professor’s Home Page.

This is an Electronically Submitted assignment.

Purpose:To set up your Userid and libraries so that your professor can mark your assignments and to start coding a COBOL program.

OVERVIEW: Seneca Ice Cream is an ice cream manufacturing company. Seneca Ice Cream stores all of it’s inventory of ice creams in an Inventory file. Your task is to write the identification division and environment divisions for an Ice Cream Inventory Maintenance System.

Assignment Instructions

  1. Change your User Profile to include STRJOB in the Initial Program. STRJOB is in the library, QGPL.
    The program STRJOB will now run every time that you sign on. This program sets you interactive job to print your user id and name at the bottom of every page. Now you will only need your student card to pick up your printouts.
  2. Create a Source Physical File to hold COBOL programs in your course library. This Source Physical File must be called, QCBLLESRC.
  3. Create a source member called IC100C1.

4. Type the following COBOL code into your program:

-A+++B++++++++++++++++++++++++++++++++++

PROCESS APOST.

IDENTIFICATION DIVISION.

PROGRAM-ID. IC100C1.

***************************************************

* *

* BAC344 - ASSIGNMENT 1 *

* *

* SUMMER 2007 *

* *

* THIS PROGRAM display *

* records from the ice cream master file *

* *
* This assignment represents my own work *
* in accordance with Academic Policy *
* *
* Name: *
* Student ID: *

* *

***************************************************

ENVIRONMENT DIVISION.

INPUT-OUTPUT SECTION.

FILE-CONTROL.

SELECT DISPLAY-FILE

ASSIGNTO WORKSTATION-icdspf-SI

ORGANIZATIONISTRANSACTION.

SELECT ice-cream-file

ASSIGNTO DATABASE-icepf

access is sequential.

  1. Compile the program IC100C1 in your library.

You have now successfully compiled your first COBOL program. Congratulations.

Test Cases

  1. Test Changes to your User Profile
/ This does not work with RDp!
Using the ‘Green Screen’ Emulator, compile your program. Look at the compile listing – your name should appear at the bottom of each page.