cobol-check icon indicating copy to clipboard operation
cobol-check copied to clipboard

Testing a callable program - error: executable program requested but PROCEDURE/ENTRY has USING clause

Open rogervinas opened this issue 2 years ago • 0 comments

Hi! I created this simple example Tests Everywhere - COBOL

In this example I can easily test:

  1. HELLO-MESSAGE paragraph
  2. HELLO paragraph mocking paragraph HELLO-MESSAGE and call to program HELLO-CONSOLE

But I am just curious how I should test HELLO-CONSOLE program, If I just try I get this error:

CC##99.CBL:139: error: executable program requested but PROCEDURE/ENTRY has USING clause

Is there any way to test it? I created this PR to reproduce it https://github.com/rogervinas/tests-everywhere/pull/56

Thanks for this cool project!

rogervinas avatar Dec 11 '23 10:12 rogervinas