Le 12/04/2023 à 22:53, a4g atl a écrit :
I get this message and the compile fails. The CLLE program is simple:
PGM
ADDLIBLE LIB1
ADDLIBLE LIB2
GO MENU01
ENDPGM.
The error indicates that the program cannot be run in a batch
environment and that is agreed but how are we supposed to create these
programs?
That's strange. As Mark W. said, the gravity of this message is 0, so 
the program should compile.
Here is the compile output from a test on PUB400. Same output whether 
the CRTBNDCL command is interactive or batch. What is yours? Is there 
something strange in the joblog?
---------------------------------
Control Language Source
  SEQNBR  *...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 
...+... 7 ...+... 8 ...+... 9 ...+. DATE
     100- pgm 04/13/23
     200- addlible lib1 04/13/23
     300- addlible lib2 04/13/23
     400- go menu01 04/13/23
     500- endpgm 04/13/23
                                * * * * *   E N D   O F   S O U R C E   
* * * * *
                                                    -=* 
http://pub400.com *=-
  5770SS1 V7R5M0  220415                  Control Language         
DIMARCO1/ILE          PUB400 04/13/23 11:22:42         Page    2
                                           Cross Reference
 * CPD0792 10  No data areas, variables, or labels used in program.
                      * * * * *   E N D   O F   C R O S S   R E F E R E 
N C E   * * * * *
 * CPD0772 00  Program contains commands only valid when run 
interactively.
  5770SS1 V7R5M0  220415 Control Language         DIMARCO1/ILE          
PUB400 04/13/23 11:22:42         Page    3
                                           Message Summary
Severity
  Total         0-9  10-19  20-29  30-39  40-49  50-59  60-69 70-79  
80-89 90-99
       2          1      1      0      0      0      0 0      0      0 0
  Program ILE created in library DIMARCO1 on 04/13/23 at 11:22:42.
  Program ILE created in library DIMARCO1. Maximum error severity 10.
                                * * * * *   E N D   O F   M E S S A G 
E   S U M M A R Y   * * * * *
                                  * * * * *   E N D   O F   C O M P I L 
A T I O N   * * * * *
---------------------------------
As an Amazon Associate we earn from qualifying purchases.