Advanced COBOL Programming - CIS51

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 2002

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 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
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
RM/COBOL site
Article on need for COBOL
more views on COBOL
another site for COBOL
Back to the Top

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
Table fill Filling an empty table with data
Listing of data for soup programs
Searching Binary search notes
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 Notes on inspect
Notes on STRING and UNSTRING
COBOL Concepts
COBOL Features
Reference modification notes
COBOL Functions
Subroutines (external) 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
Report Generator Notes on report generator Note: There are some typos - will try to get fixed soon!
Sample code for report generator

Back to the Top

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
Fill an empty table and search it Inventory programs with data - examples below
INVFILL (html)
INVFILL (cbl)
INVFILLA (html)
INVFILLA (cbl)
INVFILLB (html)
INVFILLB (cbl)
Data for inventory programs above
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

Back to the Top

Powerpoint presentations of material. These presentations can be opened or downloaded for future viewing. Free viewer for PowerPoint
NOTE: Students are reporting more success using Netscape for these presentations.
The speaker notes are a problem with the downloaded viewer. I will make copies of the speaker notes and store them in word documents.
Presentations Link to retrieve
Presentations Presentation on tables
    Speaker notes to accompany Presentation on tables
Presentation on basic tables (from CIS12)
    Speaker notes to accompany Presentation on basic tables (from CIS12)
Presentation on 2 and 3 dimemsion tables (from CIS12)
    Presentation on 2 and 3 dimension tables (from CIS12)
Presentation on table search
    Speaker notes to accompany Presentation on table search
Presentations on filling an empty table
    Separate speaker notes to accompany Presentation on filling an empty table
Presentation on TBLSOUP1.CBL
    Separate speaker notes to accompany Presentation on TBLSOUP1.CBL
Presentation on Mod 11 Check Digit
    Speaker notes to accompany Presentation on Mod 11 Check Digit
Presentation on logic of sequential update
    Separate speaker notes to accompany Presentation on logic of sequential update
Presentation on example of sequential update
    Separate speaker notes to accompany Presentation on example of sequential update
Presentation on sequential update assignment
    Separate speaker notes to accompany Presentation on sequential update assignment
Presentation on VSAM file handling
    Separate speaker notes to accompany Presentation on VSAM file handling
VSAM programs with sequential read
    Separate speaker notes to accompany VSAM programs with sequential read
VSAM programs using random read and alternate key
    Separate speaker notes to accompany VSAM programs using random read and alternate key
VSAM and dynamic access
    Separate speaker notes to accompany VSAM and dynamic access
Presentation on Random Update
    Separate speaker notes to accompany Presentation on random update

Back to the Top

Back to the Top

Please note that the weekly schedule is the list of what needs to be done - if I forget to put a program over here it still needs to be done - the weekly schedule is the list that counts!

Please note that the weekly schedule is the list of what needs to be done - if I forget to put a program over here it still needs to be done - the weekly schedule is the list that counts!
Programs to write Link to retrieve
Table program to complete DIRSOUPT.CBL
DIRSOUPT.HTML
Data for DIRSOUPT program - soupdir.dat
Search program to complete YOURSRCH
Data for YOURSRCH program - ins.dat
Fill program to complete Complete fill table program: Fill assignment
YOURFILL Due in three weeks
Data for YOURFILL program - stuuour.dat
Search verb program Modify the search program (YOURSRCH) to use the search verb. SRCHVBDO
Sequential Update Program Sequential Update assignment
Old Master data file
Transaction data file
VSAM VSAM project
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

Back to the Top

Test Information Link to retrieve
Final Exam See weekly assignment list for the final, status sheet and instructions!

Back to the Top


Back to the Top

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


Send e-mail to Mrs. Grocer:

pgrocer@bristol.mass.edu

Back to the Top
Return to home page
Return to previous page