× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On 30/11/2006, at 2:10 AM, Holden Tommy wrote:

This is incomplete code but I wanted to test it up to this point before
proceeding.  The create product definition is working fine but the
create product load is failing due to "invalid object *N"  I have no
idea where the *N is coming from or how to fix it.  I'm hoping someone
can point me in the right direction, I'm sure its something stupid I'm
doing but can't see it.

Do you know how much more helpful it would be if you provided the message ID of the error instead of your interpretation of the message text?

Because all the values used on the API calls come from your command it would also be helpful to show the values you are specifying on the command (not the command definition but the invocation).

*N is simply a placeholder used to indicate "nothing to see here". It means the API doesn't have a suitable substitution value to use--probably because you passed in crap data. I could say more if I knew the correct message ID.

Your prototype for QSZCRTPL is correct but incomplete. Your call is passing the wrong values for two parameters, one of which is not directly contributing to this problem but will bite you as you move on.

I suspect this line:

                 CrtPrdLod( %Subst(QualProdDef:11:10)

is the cause of your current problem.

Also, your approach is flawed. Products can have multiple product load objects. Your command definition will preclude that ability or will result in a truly ugly command interface. You'd be better separating the product definition and product load functions into separate commands.


Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.