Sponsored Links
Sponsored Link

sponsored links

Collapse

Announcement

Collapse
No announcement yet.

Sbmjob cmd(callprc prc(prcname))

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sbmjob cmd(callprc prc(prcname))

    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:

    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 includesbatch,         
      
    interactivebatch control language (CLprograminteractive CL program,
      
    batch REXX procedureinteractive REXX procedurebatch CL ILE program,  
      
    interactive CL ILE programCALL to QCMDEXC, and various types of source 
      statements
    The Display Command (DSPCMDcommand can be used to determine
      the setting in which the command is allowed
    .                             
    Recovery  . . . :   Omit the command
    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.

  • #2
    You can only submit programs. You need to bind your module C in a Program (as you did it before) and then run or submit this program

    Comment


    • #3
      Thank you very much for the time you dedicate in answering to me.
      So it was as i tought..
      Thank you again.
      Paolo.

      Comment

      sponsored links

      Collapse

      Working...
      X