Skip to main content

I keep getting the following error:   error COBCH0008 : Unknown copybook library-data.cpy specified
C:\\Users\\John\\Desktop\\MFcourseware\\COBOLClass_Studio\\COBOLClass\\Projects\\18_02_Patron_Menu\\PatronEntry\\Form1.cbl (64,20-21) : error COBCH0014 : Invalid operand

I have put the copybook everywhere I can think of and pointed to it in Project, properties COPYBOOKS. what is the default path?   

I keep getting the following error:   error COBCH0008 : Unknown copybook library-data.cpy specified
C:\\Users\\John\\Desktop\\MFcourseware\\COBOLClass_Studio\\COBOLClass\\Projects\\18_02_Patron_Menu\\PatronEntry\\Form1.cbl (64,20-21) : error COBCH0014 : Invalid operand

I have put the copybook everywhere I can think of and pointed to it in Project, properties COPYBOOKS. what is the default path?   

As long as the copybook referred to in the copy statement exists within a particular folder then adding the folder name to the Project properties-->Copybooks tab should fix this for you.

The default location to pick up copybook files from would be the project folder itself so if you copy library-data.cpy to the following folder it should also pick it up:
C:\\Users\\John\\Desktop\\MFcourseware\\COBOLClass_Studio\\COBOLClass\\Projects\\18_02_Patron_Menu\\PatronEntry

I keep getting the following error:   error COBCH0008 : Unknown copybook library-data.cpy specified
C:\\Users\\John\\Desktop\\MFcourseware\\COBOLClass_Studio\\COBOLClass\\Projects\\18_02_Patron_Menu\\PatronEntry\\Form1.cbl (64,20-21) : error COBCH0014 : Invalid operand

I have put the copybook everywhere I can think of and pointed to it in Project, properties COPYBOOKS. what is the default path?   

Hi, Chris,
Thanks for the help. I had the solution, but a copy book changed and once I corrected that things cleared up. The only problem now is the compiler doesn't recognize colons or one end-if. if zip(7:1) = " "
move x to y.
end-if
????

I keep getting the following error:   error COBCH0008 : Unknown copybook library-data.cpy specified
C:\\Users\\John\\Desktop\\MFcourseware\\COBOLClass_Studio\\COBOLClass\\Projects\\18_02_Patron_Menu\\PatronEntry\\Form1.cbl (64,20-21) : error COBCH0014 : Invalid operand

I have put the copybook everywhere I can think of and pointed to it in Project, properties COPYBOOKS. what is the default path?   

Remove the period from the move statement just before the end-if.
(Assuming that is the logic that you want)

I keep getting the following error:   error COBCH0008 : Unknown copybook library-data.cpy specified
C:\\Users\\John\\Desktop\\MFcourseware\\COBOLClass_Studio\\COBOLClass\\Projects\\18_02_Patron_Menu\\PatronEntry\\Form1.cbl (64,20-21) : error COBCH0014 : Invalid operand

I have put the copybook everywhere I can think of and pointed to it in Project, properties COPYBOOKS. what is the default path?   

FYI, I fixed the Colon Problem. Came to find out there was an error (did not show in the error list) in the move statement that the colon was part of. Once I corrected the error in the line the colon error went away!