#30 %GTM-E-ACTLSTEXP with JOB command

open
nobody
None
5
2012-12-29
2002-05-01
John Murray
No

JOBbing a routine at a line-tag bearing a formal
parameter list results in a %GTM-E-ACTLSTEXP error in
the JOBBed process if an empty actual list is passed.

For example:

YJMpp ; Test param passing
q
a(p) ;
N i
S i=$G(^YJMpp)+1,^YJMpp=i
S ^YJMpp(i)=$G(p,"<undef>")
q

GTM>JOB a^YJMpp()
GTM>

Host file YJMpp.mje contains:
%GTM-E-ACTLSTEXP, Actuallist expected
At M source location a^YJMpp

Observed on V4.3-000 and V4.2-002 (Linux x86 of course)

Discussion

  • Steven Estes
    Steven Estes
    2002-05-02

    Logged In: YES
    user_id=97877

    Hi John. Thanks for the report and test case. You are
    correct -- it is broken. Some quick testing also showed
    that you can pass a bunch of parameters to an entry point
    with no formallist which is also not up to spec. We will
    address this in a future release. One quick question
    though - you have this bug rated as medium priority instead
    of something lower. If there is a reason why this is
    important to you I would like to understand it as others
    may feel the same and it could affect the way we will
    prioritize it as well. Thanks again..

    Steve

     
  • John Murray
    John Murray
    2002-05-02

    Logged In: YES
    user_id=8008

    Hi Steve,

    I guess it came through as Medium because that was the
    default. It's not a showstopper, but user code might have
    to be modified as a workaround. I personally don't mind its
    priority being downgraded.

    John