Hi all,
i'm new to ILE concepts so forgive me for the question...
I have a main ILE RPG "A" program that call a procedure "B" (a CLLE Module "B").
In the CLLE "B" i need to call a CLLE "C" in batch.
If i create an object from the CLLE "C" and inside the CLLE "B",i use the:
SBMJOB CMD (CALL PGM("C"))
it works.
Instead if i create a module from the CLLE "C" and bound togheter with all the other modules to the Main "A",
when i try to submit in Batch the procedure "C" from the CLLE "B" writing this:
SBMJOB CMD(CALLPRC PRC("C"))
i receive directly in the SEU the following info:
Command CALLPRC not allowed in this setting.
These are the additional info:
Is there any way to obtain this or simply it's not possible due to the nature of the module itself ?
(that is binded to the main module forming a unique object..)
thank you to everybody who try to help me to better understand this topic..
Paolo.
i'm new to ILE concepts so forgive me for the question...
I have a main ILE RPG "A" program that call a procedure "B" (a CLLE Module "B").
In the CLLE "B" i need to call a CLLE "C" in batch.
If i create an object from the CLLE "C" and inside the CLLE "B",i use the:
SBMJOB CMD (CALL PGM("C"))
it works.
Instead if i create a module from the CLLE "C" and bound togheter with all the other modules to the Main "A",
when i try to submit in Batch the procedure "C" from the CLLE "B" writing this:
SBMJOB CMD(CALLPRC PRC("C"))
i receive directly in the SEU the following info:
Command CALLPRC not allowed in this setting.
These are the additional info:
PHP Code:
Message ID . . . . . . : CPD0031 Severity . . . . . . . : 30
Message type . . . . . : Diagnostic
Date sent . . . . . . : 10/07/18 Time sent . . . . . . : 13:23:56
Message . . . . : Command CALLPRC not allowed in this setting.
Cause . . . . . : The complete list of settings includes: batch,
interactive, batch control language (CL) program, interactive CL program,
batch REXX procedure, interactive REXX procedure, batch CL ILE program,
interactive CL ILE program, CALL to QCMDEXC, and various types of source
statements. The Display Command (DSPCMD) command can be used to determine
the setting in which the command is allowed.
Recovery . . . : Omit the command.
(that is binded to the main module forming a unique object..)
thank you to everybody who try to help me to better understand this topic..
Paolo.
Comment