× 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.



Hello,

We have discovered a problem with our PCML call to an RPGLE program. No matter what environment we are running in , the program object that gets called is in the test library (BSITST), not the BSIPRD library when we are working in production.

Any hints on what we could be doing wrong? We specify a path in the PCML and we also set the path in the Java program depending on the environment. I checked with the programmer and he said that he debugged the program and the environment variable is set to PRD when in production.

pcml version="4.0">

<!-- RPG progra: PSHPINF -->

<!-- created: 2008-02-06-09.28.37 -->

<!-- source: DAVEM/DAVESRC/PSHPINF -->

<program name="PSHPINF" *path="/QSYS.LIB/BSIPRD.LIB/PSHPINF.PGM">*

<data name="DELIVERYNO" type="char" length="11" usage="inputoutput"/>

<data name="PACKAGENO" type="char" length="10" usage="inputoutput"/>

<data name="TOTALPKGS" type="char" length="11" usage="inputoutput"/>

<data name="USERID" type="char" length="15" usage="inputoutput"/>

<data name="TRACKINGNO" type="char" length="50" usage="inputoutput"/>

<data name="STATUSCODE" type="char" length="1" usage="inputoutput"/>

</program>

</pcml>

Java codd

pcml = *new* ProgramCallDocument(sys, "PSHPINF");


*// Path to correct library //A BR02027*

* if (EnvName.equals("PRD")) { //A BR02027*

* pcml.setPath("PSHPINF", "/QSYS.LIB/BSIPRD.LIB/PSHPINF.PGM"); //A BR02027*

* } else { //A BR02027*

* pcml.setPath("PSHPINF", "/QSYS.LIB/BSITST.LIB/PSHPINF.PGM"); //A BR02027 *

* } //A BR02027*

... some other pcml setValues here

*// Call PSHPINF API*

* pcml.callProgram("PSHPINF"); // program name
*

Thanks

Dave
**









As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.