Draft the environment and data division code required


Problem

Draft the Environment and Data Division code required to handle the following. An indexed Sequential File (PART-FILE) is to be created and stored on the C drive under the name PARTFILE.IND. The record contains the Part Name (25 bytes), Part number (7 bytes) as the key field. The remaining part of the record is labeled as Other-Stuff and consumes 60 bytes. The procedure division requirements are as follows: The procedure division must accept a record at the keyboard and then, if correct, write it to the indexed sequential file. If a record entered at the keyboard is out of sequence, or has a duplicate key an "Key is out of Sequence" or "Duplicate key" message should be displayed on the monitor. Remember to include those statements that will confirm the proper order of the records to be written to the file, and that no record with duplicate key is written.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Draft the environment and data division code required
Reference No:- TGS03277140

Expected delivery within 24 Hours