Always writing COBOL program in an efficient way improves performance. Writing better program means you need real experience.
Tips to save memory in COBOL
- One best option is always use redefines in your program and in copy books. This will be avoided space utilisation
- Unless you needed always use less working storage variables. That means try to use 88 level variables. These are actually logical in nature. So you can save memory.
- Adding ‘*’ at 7 th position in COBOL program, is bad programming. It generally takes memory even though compiler skips the line.So, if you are not coding simply leave as empty space. It is okay if you use this to write comments.