Alternative to COBOL Reference modification

An alternative solution is available for reference modification in COBOL. In reference modification, you can choose field length value up to your requirement. 

The disadvantage is other programmers does not know which field value you are moving. Since, from main string you are moving part of its value.


Alternative solution

You can use redefines in your Copy book with 88 Level fields with the fields you want in your program . This you can define in your COBOL copy book.

Then, directly you can use those fields in your program.

This question asked in COBOL screening test.


Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.