COBOL Tutorial - For Beginners & Professionals

COBOL Program to to produce a report showing the top three Video Suppliers

COBOL Program to to produce a report showing the top three Video Suppliers

Exam paper model answer. The manager of Metropolis Videos has asked you to write a program to produce a report showing the top three Video Suppliers (by total store video earnings) and for each of the top three the most popular video title (by average earnings) must be shown. Read the program specification first. The required data files may be downloaded from there.

Demo and Full Guide

Indexed Files Relative Files Print Files READ START Tables DIVIDE COBOL Example COBOL Program


COBOL Program  to the Pascal Memorial Library pays the author a small sum of money as royalty

COBOL Program to the Pascal Memorial Library pays the author a small sum of money as royalty

Exam paper model answer. Each time a book is borrowed, the Pascal Memorial Library pays the author a small sum of money as royalty.? Royalties are paid to authors through their agents. A report is required which processes the Authors file and the Books File to produce a report which shows the amount to be sent to each agent, shows the breakdown of the agent payment into author payments, and shows the breakdown of each author payment into royalty payments per book. Read the program specification first. The required data files may be downloaded from there.

Demo and Full Guide

Indexed Files Print Files READ..NEXT RECORD READ..KEY IS START REWRITE WRITE MULTIPLY SET


COBOL Program is required to produce a Purchase Requirements Report from the Publisher, Book and Purchase Requirements files

COBOL Program is required to produce a Purchase Requirements Report from the Publisher, Book and Purchase Requirements files

Exam paper model answer. A program is required to produce a Purchase Requirements Report from the Publisher, Book and Purchase Requirements files. The report should be sequenced on ascending Publisher Name and should only detail the purchase requirements for the semester under scrutiny. Read the program specification first. The required data files may be downloaded from there.

Demo and Full Guide

Indexed files Report Writer Report Section INITIATE GENERATE TERMINATE READ WRITE REWRITE START COBOL Program COBOL Example


COBOl Program to  required which will apply a file of sorted, validated transactions to the Oil-Stock-File

COBOl Program to required which will apply a file of sorted, validated transactions to the Oil-Stock-File

Exam paper model answer. A program is required which will apply a file of sorted, validated transactions to the Oil-Stock-File and then produce a report based on the contents of both the Oil-Details-File and the Oil-Stock-File. The report writer must be used to produce the report which must be printed sequenced on ascending Oil-Name. Read the program specification first. The required data files may be downloaded from there.

Demo and Full Guide

Indexed files Relative Files Sequential Files EVALUATE COMPUTE READ WRITE REWRITE START Report Writer Report Section INITIATE GENERATE TERMINATE COBOL Example COBOL Source Codes


COBOL Program to which applies a transaction file of student payments to a Student Master File

COBOL Program to which applies a transaction file of student payments to a Student Master File

Exam paper model answer. A program which applies a transaction file of student payments to a Student Master File and which then produces a report showing those students whose fees are partially or wholly outstanding. Read the program specification first. The required data files may be downloaded from there.

Demo and Full Guide

Indexed files Print files READ..NEXT RECORD START WRITE REWRITE IF PERFORM ADD SUBTRACT COBOL Program COBOL Example


COBOL Program to Reads the Indexed file sequentially on whichever key is chosen by the user

COBOL Program to Does a direct read on the Indexed file created by the previous example program

COBOL Program to Creates a direct access Indexed file from a Sequential file

COBOL Program to Reads the Relative file

COBOL Program to Reads the Relative file

Reads the Relative file - RELSUPP.DAT - created in the previous example program and displays the records. Allows the user to choose to read through and display all the records in the file sequentially, or to use a key to read just one record directly.

Demo and Full Guide

Relative files ACCESS MODE RELATIVE KEY FILE STATUS READ..NEXT RECORD READ..INVALID KEY Condition Names IF COBOL Program COBOL Example


COBOL Program to Creates a direct access Relative file from a Sequential File