The information at this site is in draft form and is the property of Priscilla Grocer. The information may not be duplicated or distributed without her permission. ©Copyright 2000
Category | Information |
---|---|
Information | Introduction to CIS51 - methods, expectations etc. Syllabus |
Resources | Notes and handouts for CIS51 Sample programs for CIS51 Presentations for CIS51 Reference books for CIS51 Bulletin Board for CIS51 |
Work | Assignments for CIS51 Programs for CIS51 Test information for CIS51 Weekly schedule for CIS51 |
COBOL Links |
www.microfocus.com/ap/cat/ps001.htm Information about
a student version of COBOL. Note: There are
other alternatives - this is compatible with the COBOL
installed at BCC. Wealth of current COBOL information Lots of information and links www.cobol.org - offers information and links www.infogoal.com/cbd/cbdhome.htm - another site offering information and links www.microfocus.com - MicroFocus COBOL home page offering links and information on compiler view on COBOL more views on COBOL another site for COBOL |
Notes and handouts | Link to retrieve |
---|---|
Tables |
Notes on one dimensional tables Notes on two and three dimensional tables |
Information on using screens | Notes on using screens |
Table search | Searching a table for a match More information on searching a table More detail on options discussed above Binary search notes |
Table fill | Filling an
empty table with data Listing of data for soup programs |
Search verb | Notes on using
the search verb |
Editing |
Notes on editing data Notes on the MOD11 check digit Notes on another check digit |
Sorting a file | Notes on the sort verb |
Sequential update | Notes on sequential updates |
Indexed files | Introductory notes on indexed files More notes on indexed files |
Concepts, features, functions | COBOL Concepts COBOL Features COBOL Functions |
The program with the .html extension can be saved as .cbl and then opened in the COBOL compiler. The PRE or the HTML PRE and the /PRE or the /HTML /PRE (note there are greater than and less than symbols around these commands) have to be deleted before compiling. The program with the cbl can be loaded into the compiler but you will see a symbol that looks like a music note which is the carriage control. These usually are not a problem unless you make changes and then you have to delete them. | |
Sample programs | Link to retrieve |
---|---|
Direct subscript - 1 & 2 dimension tables | TWODIM (html) TWODIM (cbl) Data for TWODIM - twodim.dat |
Using screens | SCR1FROM (html) SCR1FROM (cbl) Data for SCR1FROM - scr1.dat TABLESCR (html) TABLESCR (cbl) |
Indirect subscript - searching a table | TABLSOUP (html) TABLSOUP (cbl) Data for TABLSOUP - stutran.dat TABLNIND (html) No indicator TABLNIND (cbl) No indicator TABLEMBD (html) Embedded perform TABLEMBD (cbl) Embedded perform TABLEEX1 (html) Early exit #1 TABLEEX1 (cbl) Early exit #1 TABLEEX2 (html) Early exit #2 TABLEEX2 (cbl) Early exit #2 LINSRCHX (html) Linear search LINSRCHX (cbl) Linear search |
3 ways to fill an empty table and search it | TBLSOUP1 (html) TBLSOUP1 (cbl) Data for TBLSOUP1 - emptsoup.dat TBLSOUP2 (html) TBLSOUP2 (cbl) TBLSOUP3 (html) TBLSOUP3 (cbl) Another data file for TBLSOUP3 - souponly.dat |
Binary search | BINARY |
Using the search verb | SEARCHVB (html) - Linear use of search verb SEARCHVB (cbl) - Linear use of search verb SEARCHAL (html) - Binary use of search verb - Search All SEARCHAL (cbl) - Binary use of search verb - Search All |
General create program | GENCREAT.CBL - General program to use creating a data file -
needs to be modified to the file specifications |
Editing data |
MOD11CHK - Coding mod 11 check digits PAYEDIT - Sample edit program EDITCHK - Another sample edit program EDITINTR - And yet another with minor modifications EDITBTH1 - Batch editing EDITBTH2 - A second batch editing example |
Sorting files |
SORTVB1 - Basic sort verb SORTVB2 - Sort verb with input procedure SORTVB2A - Sort after processing SORTVB3 - Sort verb with output procedure |
Sequential updating | MYUPDATE - Sample sequential update program |
VSAM Programs |
CRMSVSAM - Create a VSAM file SEQREAD - Sequentially read an indexed file SEQSTART - Sequentially read from a START point START - Sequentially read from multiple START points RANKEYRD - Randomly read from a VSAM file RANKNIRD - Another random read from a VSAM file CALTVSAM - Create VSAM with alternate key SEQALTRD - Sequentially read on alternate key path RANALTRD - Random read using primary and alternate keys DYNSTART - Reading VSAM file when access is dynamic MYRANUPD - Random update using disk files FILESTA - File status with invalid key FILESTAT - File status only |
Some data files | MSTRVSAM.DAT
MSTRVSAM.IDX TRANSN.DAT |
COPY and CALL | COPYPRG - Program containin COPY statements CRSDESC - Data division code being copied ADDROUT - Procedure division code being copied COPYCALL - Program containing CALL statement CALLED - Code being called |
Assignments | Link to retrieve |
---|---|
Written assignments |
Table assignment based on soup table Rough code a solution to the alternative check digit notes. Your code will be checked off - not graded. We will go over the solution. Questions on the edit program that handles errors in a table. Edit questions Batch edit questions Vsam Quiz - this is a quiz that you may discuss with others True/False quiz on indexed VSAM files |
Programs to write | Link to retrieve |
---|---|
Search program to complete | YOURSRCH Data for YOURSRCH program - ins.dat |
Binary search | Binary Search Assignment |
Fill program to complete | Assignment on completing program to fill an empty table YOURFILL Data for YOURFILL program - stuuour.dat |
Search program using search verb | SRCHVBDO |
Extra credit Sort verb |
Extra credit: Write a program that uses the SORT verb to sort an existing file. Send
me the program, the before file and the after file. |
Sequential Update Program | Sequential Update assignment Old Master data file Transaction data file |
VSAM Programs | VSAM project (6 programs posted, 7th to be posted) Note clarification 12/2/00 VSAMCREA PROGRAM1 PROGRAM2 PROGRAM3 PROGRAM4 PROGRAM6 PROGRAM7 & PART OF THE FINAL SEQFILE.DAT Data to use with vsamcrea - this will create an indexed file to use in the other programs |
Test Information | Link to retrieve |
---|---|
FinalExam/Status Sheet | You must take the final exam - two parts, modifications to Program 7 in VSAM and the answers to these questions. The exam must be emailed to me by 10:15 on Tuesday, December 19th at both my home site and pgrocer@bristol.mass.edu You must also fill out the status sheet that will be posted next week and send that to me by 10:15 on Tuesday, December 19th. Remember! The status sheet is your insurance. If your records and my records are not in agreement, I will be in touch! Final Exam Required status sheet |
These are some of the books that I use for reference. There are many others, but look for advanced topics. |
Application Programming File Processing in COBOL Yuksel Uckan Heath Advanced Structured COBOL Gerard A Pacquette Wm C Brown Publishers Advanced Structured COBOL Gary Popkin Kent Publishing Co Advanced Structured COBOL Mike Murach and John Padgett SRA Advanced Structured COBOL Khan, Martin Boyd and Fraser |