CSCI 320 Business Programming in COBOL Spring 2008

Week

Material to be covered

Lab & Homework Assignments

#1

1/12

- Syllabus
- Chapter 1

MS 2003 Version
Old Notes    

Lab 1 - Turn in the source listing and output next class

Syntax Guide

#2

1/19

Chapter 2
 

Examples in class.#8 on Page 61.
#4,5,6 page 100

Tuesday - Chapter 3

- We'll do some examples for creating file sections & making the record structure

Homework Assignment: Review Questions I & II at the end of the chapter 1 - turn in Thursday


Lab 2 - Do number #7 p. 61.  (Interactive Program to determine total cost of item)


Assignment 1 Problem # 3 Page 133.  In this problem you read in from one file and create 2  new files.  The data can be found on your student disk, ch0403.dat.  Due January 27th,
Data Set

Please Read the Grading Criteria

#3

1/26

 

Tuesday - Chapter 4

Chapter 5 -> We're going to skip this chapter.  It's about program design which by now you should know well.
 


Thursday Chapter 6 -> Moving Data, Printing, Displaying Output.


- If time, go over another interactive program.

Class Notes

Homework : Review Questions I & II at the end of the chapter 2,  Page 58 & 59

#4

2/2

Chapter 6 -> Moving Data, Printing, Displaying Output.

Chapter 7

Thursday we will continue on the screen lab


 

Assignment 2 - Number 1 page 297, plus add an option to print a report similar to the one in Figure 7.4 (next page).  Your program will  ask if the user wants to print a report, create a file or quit.  Obviously the report won't be exactly like the one in 7.4 but do print out all the info that is in the out-salary file in a nice, neat and orderly fashion.

Data File

Due: February 12th


Lab3 ->  An FTP example, I believe most of you have FTP'd already, if not you can try this method.  Used the dos FTP.
Lab 4 -> Design Lab

Screen Experiment Lab

#5

2/9

Tuesday: Review and discuss Exam
Thursday Exam 1 -
Chapters 1 - 7 ->  Open book

Assignment 3: Number 3 page 432.
Data can be found at: http://dtucker.cs.edinboro.edu/csci320/data

copy PORTER.COB USR1:[dtucker.cobol.ASSIGN3]pORTER.cob

!SET PROTECTION

Link for Date Function

#6

2/16

 

 Lab:

Ok, we'll try this copy thing again so Copy CHAPTER9LABFIX from my directory:

copy USR1:[dtucker.cobol]CHAPTER9LABFIX.cob chapter9lab.cob

Read the notes in the source code and finish the program, this is problem #10 page 382 where you ask the user for a statement and number of times and it prints it x number of times to a file.  You can have it print to the screen also.

When done copy your result back to my LABCH9 directory:

COPY CHAPER9LABFirstInitialLastName USR1:[DTUCKER.COBOL.LABCH9]

then set protection on it so I can read it.

$SET PROTECTION=(W:REWD) USR1:[DTUCKER.LABCH9]NAME_OF_FILE.COB

#7

2/23

Cover Chapter 9
Other Ch-9 Notes

Continue on last week's lab

3/2/2009 is Spring Break

#8

3/9

Chapter 10
Other Ch 10 notes

Sample procedure division of single control break (Problem 2 in Ch 10)

 Assignment

Number 4, Page 554 & 555

TRANS-INVENTORY Data

WH-TABLE data

Due: 4/16/2009

Save to :    USR1:[DTUCKER.COBOL.ASSIGN4]

#9

3/16

Chapter 12

Chapter 11

Thursday 3/19:

Practice with Validation (mini lab/assignment)
Let's work on #1 page 468 with a few modifications.  Make a simple program that validates user entered data according to the chart and requirements listed in a - d.  Instead of an error listing let's have it immediately respond to the user that the data is invalid.  So it will ask the user one question at a time and immediately tell you if it's valid.  See if you can make it so if the user doesn't put in leading zeros to any of the numeric fields that it does so for you.

Copy it up to USR1:[DTUCKER.COBOL.LABCH11]

Can you make sure your assignments 2-4 have comments, brief description & Algorithm, go back and edit these if you didn't put those in it.

#10

3/23

Tuesday - continue on lab

Go over Chapter 13

#11

3/30

Tuesday  Chapter 14

 Write a program that sorts the following data

CH14Lab.txt

According to the EMPLOYEE-NO which is the 1st 5 characters of the data. 
1.  Have it print the unsorted list
2. Then have it print the sorted list
3. Use the built in COBOL sort feature
4. Format for the data is found on page 643 Figure 14.7

#12

4/6

Review for the exam

Continue with Lab

Thursday April 9th - Exam 2 - Chapters 8 - 14

Write a program:

  • IF & EVALUATE
  • Looping
  • Control Break
  • Validation (with error messages)
  • Array Processing
  • Reading from a File
  • Sort
  • Merge

 

#13

4/13

Edit Chapter 14's lab and add functionality to insert a record then re-print the list sorted.

Save the new list to your directory.

I'm not worried about how the output looks for this one.

 

One last assignment:

Assignmnet #5;   Page 736 #4 - Using a CALL statement to another file, also this one is user interactive instead of accessing files.

When you link it will look something like this:

$ LINK MAINPART, SUBPROGRAM

Then you will RUN MAINPART

Copy to USR1:[DTUCKER.COBOL.ASSIGN5]

#14

4/20

Start on Chapter 15

Advanced Topics:
Chapter 16

Examples of Calling another program Caller, Callee

Chapter 17

Continue with Chapter 17 & discuss the Final

#15

4/27

Final Exam Week

Final Exam - Thursday @ 2:00

Things I'd like to grade for this class:
  • Homework 1 & 2 <- Graded
  • Lab2 -  USR1:[DTUCKER.COBOL.LAB2] <- Graded
  • Screen Lab - USR1:[DTUCKER.COBOL.SCREENLAB] <- Graded (missing a lot of people here)
  • Ch-9 Lab - USR1:[DTUCKER.COBOL.LABCH9] <- Graded (missing few people here)
  • Validation Lab - USR1:[DTUCKER.COBOL.VALIDATIONLAB] OR LABCH11
  • Ch-14 Lab - USR1:[DTUCKER.COBOL.LABCH14]
  • Assignment 1 - #3 p. 133 - USR1:[DTUCKER.COBOL.ASSIGN1] <- Graded
  • Assignment 2 - #1 p. 297 - USR1:[DTUCKER.COBOL.ASSIGN2] <- Graded
  • Assignment 3 - #3 p. 432 - USR1:[DTUCKER.COBOL.ASSIGN3] <- Graded
  • Assignment 4 - #5 p. 554 - USR1:[DTUCKER.COBOL.ASSIGN4]
  • Assignment 5 - #4 p. 736  - USR1:[DTUCKER.COBOL.ASSIGN5]
  • Exam 1 - Graded, open what you posted to see grade
  • Exam 2 - Graded, open what you posted to see grade
  • Final Exam