Thanks Barbara. 

I do have another problem now.  I am trying to connect to my AS/400 and
call the PCML document using the ProgramCallDocument and getting an
error as below.  Should I be setting up my classpath.  I tried to do a
pcml.setPath() but it did not help.  I have my PCML document on the
root. i.e. QSYS.LIB. (for testing purposes.)

Thanks for all the help,
Sudha

        ProgramCallDocument pcml=null;
                
        MySystem = new AS400("SYSTEM","MYUSER","PASSWORD");     
        // First parameter is system to connect to
        // Second parameter is pcml resource name.

        pcml = new ProgramCallDocument(MySystem,"MYPCML");

Error:

java.lang.VerifyError: (class: com/ibm/as400/data/PcmlSAXParser, method:
<init> signature: (Ljava/lang/String;Ljava/lang/ClassLoader;)V)
Incompatible object argument for method call at
com.ibm.as400.data.ProgramCallDocument.loadSourcePcmlDocument(ProgramCal
lDocument.java:1058) 

Sudha Ramanujan
SunGard Futures Systems
sramanujan@xxxxxxxxxxxxxxxxxx
(312) 577 6179
(312) 577 6101 - Fax

-----Original Message-----
From: Barbara Morris [mailto:bmorris@xxxxxxxxxx] 
Sent: Monday, May 03, 2004 5:08 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: PCML

SRamanujan@xxxxxxxxxxxxxxxxxx wrote:
> 
> Hi all,
> I am back with my problems. Since I found it difficult passing array
> type of inputs to stored proc, I wanted to try PCML.  The document
says,
> I would need to enter the PCMINFO as PCML & INFOSTMF as the path where
> the pcd is created. My code is sqlrpgle and to create a module I do
> crtsqlrpgi with *module but don't find these parameters in the
command.
> I find example for retrieving data in Java but nothing on RPG end to
> code or compile. Would you know where I could find an example to work
on
> or some more document on SQLRPGLE as well?

Sudha, you will have to do a two-stage compile.  First do CRTSQLRPGI
with OPTION(*NOGEN), and then compile the resulting RPGLE source file
(TOSRCFILE parameter of CRTSQLRPGI) using CRTRPGMOD.

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.