Menu

CALL subroutine name is not definied.

2021-07-25
2021-07-25
  • COBOL FOREVER!

    COBOL FOREVER! - 2021-07-25

    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
  • Simon Sobisch

    Simon Sobisch - 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.cbl

     
    • COBOL FOREVER!

      COBOL FOREVER! - 2021-07-25

      Oh! Alright! Got it! Thank you very much for your answer!

       

Anonymous
Anonymous

Add attachments
Cancel