Hello Team. Here is step to run:
- If you using vscode and execute with command line:
- install cobc
- cobc -x main.cbl sub_add.cbl sub_delete.cbl sub_get_all.cbl sub_search.cbl sub_update.cbl sub_index2sequential.cbl sub_calculate_avg.cbl sub_sequential2index.cbl sub_avg.cbl
- ./main
- If you using OpenCobol:
- Indexed file in folder /bin/
- Run sub_* with type Module to build subroutine file
- Run main file with type Execute
FUNCTION****
- GET ALL STUDENT
- ADD STUDENT
- UPDATE STUDENT BY ID
- DELETE STUDENT
- SEARCH RECORD BY ID
- AVG STUDENT SCORE IN CLASS
Using file Temp (SEQUENTIAL FILE) to save state of INDEXED FILE --> Data will never be lost in INDEXED FILE.