I keep coming up with an error message 203 in my sub program. I am sure that I have called the sub program correctly but this message says that I have not initialised the item. I have initialised the item in the main program to zero and again in the subprogram.
This is the code that I have used:
from the main program in working storage:
01 w-invalid-records pic 9(02).
01 w-valid-records pic 9(02).
move zeros to w-invalid-records
move zeros to w-valid-records
call subprogram using w-invalid-records,w-valid-records
in the subprogram linkage section:
c-valid-records pic 9(02).
c-invalid-records pic 9(02).
procedure division using c-invalid-records,c-valid-records.
move zeros to c-valid-records
move zeros to c-invalid-records
I get the error at runtime when I am adding or moving data into c-valid-records etc
This is the code that I have used:
from the main program in working storage:
01 w-invalid-records pic 9(02).
01 w-valid-records pic 9(02).
move zeros to w-invalid-records
move zeros to w-valid-records
call subprogram using w-invalid-records,w-valid-records
in the subprogram linkage section:
c-valid-records pic 9(02).
c-invalid-records pic 9(02).
procedure division using c-invalid-records,c-valid-records.
move zeros to c-valid-records
move zeros to c-invalid-records
I get the error at runtime when I am adding or moving data into c-valid-records etc