Hi, i'm a beginner in programming and learning COBOL. I'm at the moment trying to compile on an M1 MAC. The problem is that the compiler tells me that the name of the subroutine to be called is not definied but the name of the file it's typed correctly and also it is the same in the PROGRAM-ID of the called program. So, please, why it do that?
Last edit: COBOL FOREVER! 2021-07-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You call a variable which is not defined. Change that to CALL "MANAGER-CIF" and it will work, as long as you have that compiled separately or, at your liking on the same command line along with MANAGER.cbl
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, i'm a beginner in programming and learning COBOL. I'm at the moment trying to compile on an M1 MAC. The problem is that the compiler tells me that the name of the subroutine to be called is not definied but the name of the file it's typed correctly and also it is the same in the PROGRAM-ID of the called program. So, please, why it do that?
Last edit: COBOL FOREVER! 2021-07-25
We'll need more information @user1918 A capture of the actual
cobcoutput, and if you can, a code listing of the COBOL in question.Cheers,
Blue
Here are the screenshots of the single parts.
Last edit: COBOL FOREVER! 2021-07-25
You call a variable which is not defined. Change that to
CALL "MANAGER-CIF"and it will work, as long as you have that compiled separately or, at your liking on the same command line along with MANAGER.cblOh! Alright! Got it! Thank you very much for your answer!