ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Command not allowed in this setting.

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

  • Command not allowed in this setting.

    Hi All,

    A batch program calls a particular command in a CLP. However, on executing the command, the error ' Command not allowed in this setting' appears and the job fails.

    On checking the command (WRKCMD), I could find that the command has been defined with MODE (*PROD, *DEBUG, *SERVICE). But, the ALLOW setting is made with *IPGM only. Is this the reason, why the batch job is not able to use the command ? What should be the ideal value of ALLOW for this command, so that it can run in batch jobs ?

    Please advise.

  • #2
    Re: Command not allowed in this setting.

    If the creator of the CL program is allowed to execute this command, compile your CL program with Option User Profile (USRPRF) = *OWNER

    Birgitta

    Comment


    • #3
      Re: Command not allowed in this setting.

      Originally posted by ArpitaS
      Hi All,

      A batch program calls a particular command in a CLP. However, on executing the command, the error ' Command not allowed in this setting' appears and the job fails.

      On checking the command (WRKCMD), I could find that the command has been defined with MODE (*PROD, *DEBUG, *SERVICE). But, the ALLOW setting is made with *IPGM only. Is this the reason, why the batch job is not able to use the command ? What should be the ideal value of ALLOW for this command, so that it can run in batch jobs ?

      Please advise.
      the ALLOW answers your question *IPGM = interactive program. for it to run in a CL in batch mode the ALLOW has to also include *BPGM
      I'm not anti-social, I just don't like people -Tommy Holden

      Comment


      • #4
        Re: Command not allowed in this setting.

        what is the command please???
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment

        Working...
        X