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




Hi Kristen,

What you're seeing - using the initial library list for the user
profile - is also the case for vanilla JDBC connections, and, I would guess,
anything that connects up to reused prestart jobs.


Joe Sam

Joe Sam Shirah - http://www.conceptgo.com
conceptGO - Consulting/Development/Outsourcing
Java Filter Forum: http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International? http://www.jguru.com/faq/I18N
Que Java400? http://www.jguru.com/faq/Java400


----- Original Message -----
From: "Kristen Henry" <klhnry@xxxxxxxxxxxx>
To: "'Java Programming on and around the iSeries / AS400'"
<java400-l@xxxxxxxxxxxx>
Sent: Friday, May 11, 2007 3:57 PM
Subject: RE: PCML Problem


Ok, problem figured out...

I updated my code with Barbara's suggested changes. From QSH I set the
classpath and called the Java class that uses PCML to call the RPG
program.

I was signed on as a user I want to use for this (AM2000). Even though I
had my library list set up it started the job with the initial library
list
of the user (sans the physical file in the program).

I will now be figuring out best practices for setting the LIBL of the job.

Thanks Barbara!

Kristen

Here is the RPG code with Barbara's changes in it:

FAMLUD IF E K DISK usropn
*
D QCMDEXC PR EXTPGM('QCMDEXC')
D cmd 3000a const
D cmd_len 15p 5 const
D theCommand S 3000a varying
D coname S 30a

/free

monitor;
open(e) amlud;
eval coname = 'test';
chain coname amlud;
on-error *all;
exsr *pssr;
endmon;
*inlr = '1';

begsr *pssr;
theCommand = 'DSPJOB OUTPUT(*PRINT)';
callp(e) qcmdexc (theCommand : %len(theCommand));
theCommand = 'DSPJOBLOG OUTPUT(*PRINT)';
callp(e) qcmdexc (theCommand : %len(theCommand));
dump(a);
*inlr = '1';
endsr;

/end-free



-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Barbara Morris
Sent: Thursday, May 10, 2007 9:08 AM
To: java400-l@xxxxxxxxxxxx
Subject: Re: PCML Problem


Kristen, to debug this, try changing your program temporarily so you can
output the joblog and job information. (Or maybe not temporarily; if
you don't have any exception handling in your RPG program, it would be
waiting for a reply to an inquiry message. So it's a good idea to avoid
the possibility of an inquiry message.)



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

Follow-Ups:
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.