[Migrated content. Thread originally posted on 23 October 2011]
I am an experienced COBOL programmer looking to move to a project using OO cobol and doing a little self education.
I have a pretty good grasp of JAVA and C# so was expecting to pick it up reasonably easily. It will be syntax and basic program/class structure I need to get to grips with.
My first attempt at a COBOL JVM project using visual COBOL for eclipse.
I am getting error "COBCH0829S could not find method "storeData" with this signature".
Any guidance on where to look for and how to fix it would be appreciated.
Cheers,
Gary.
IDENTIFICATION DIVISION.
class-id Learning1.
class-object.
data division.
working-storage section.
01 classField pic x(1).
procedure division.
method-id storeData.
working-storage section.
linkage section.
01 methodField pic x(10).
procedure division using methodField.
move methodField to classField
goback.
end method.
method-id. returnData.
working-storage section.
linkage section.
01 methodField pic x(10).
procedure division returning methodField.
move classField to methodField
goback.
end method.
end class-object.
IDENTIFICATION DIVISION.
program-id Learning2.
ENVIRONMENT DIVISION.
OBJECT SECTION.
CLASS-CONTROL.
Learning1 IS CLASS "Learning1".
DATA DIVISION.
working-storage section.
01 myLearning usage object reference.
01 passField pic x(10) value low-values.
PROCEDURE DIVISION.
INVOKE Learning1 "NEW" returning myLearning
INVOKE myLearning "storeData" using passField
goback.
COBCH0829S could not find method "storeData" with this signature




