Search code examples
ibm-midrange

CPF1922 variable not found even if the variable exists


I have a variable YEAR OF R1234H01-O, which is missing if I try to display while debugging even though it is clearly found in the program. It seems like any variable with OF wont work. Any idea why?

Note: I wrapped this variable in a single quote.


Solution

  • I guess you are debugging an OPM COBOL program using STRISDB.

    If your program was compiled with the NOUNREF option, unreferenced fields are not generated into the program.