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



I would insert

Trace.setTraceAllOn(true);
Trace.setTraceOn(true);

at the beginning of your program and see what it shows.

Gary

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Dave Murvin
Sent: Tuesday, January 13, 2009 3:47 PM
To: java400-l@xxxxxxxxxxxx
Subject: PCML call always points to Test, not production pgm object

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
**









--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



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.