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 & 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