|
Martin, Here is the pcml that I use for call QCDRCMDI. Maybe you can compare the two and see if anything jumps out at you. ****** PCML starts ****** <pcml version="1.0"> <!-- PCML source for calling QCDRCMDI (Retrieve Command Information) --> <!-- Known usage: AS400Facade --> <struct name = "CMDI0100_Format"> <data name="BytesReturned" type="int" length= "4" init="0000"/> <data name="BytesAvailable" type="int" length= "4" init="0000"/> <data name="CommandName" type="char" length="10" init=" "/> <data name="CommandLibrary" type="char" length="10" init=" "/> <data name="CommandCPP" type="char" length="10" init=" "/> <data name="CommandCPPLib" type="char" length="10" init=" "/> <data name="SourceFile" type="char" length="10" init=" "/> <data name="SrcFLibrary" type="char" length="10" init=" "/> <data name="SrcFMember" type="char" length="10" init=" "/> <data name="CommandVCP" type="char" length="10" init=" "/> <data name="CommandVCPLib" type="char" length="10" init=" "/> <data name="CommandMode" type="char" length="10" init=" "/> <data name="WhereAllowed" type="char" length="15" init=" "/> <data name="AllowLimitedUser" type="char" length= "1" init=" "/> <data name="MaxPositParm" type="int" length= "4" init="0"/> <data name="PromptMsgF" type="char" length="10" init=" "/> <data name="PromptMsgFLib" type="char" length="10" init=" "/> <data name="MsgF" type="char" length="10" init=" "/> <data name="MsgFLibrary" type="char" length="10" init=" "/> <data name="HelpPanelGrp" type="char" length="10" init=" "/> <data name="HelpPanelGrpLib" type="char" length="10" init=" "/> <data name="HelpID" type="char" length="10" init=" "/> <data name="SearchIdx" type="char" length="10" init=" "/> <data name="SearchIdxLib" type="char" length="10" init=" "/> <data name="CurrentLibrary" type="char" length="10" init=" "/> <data name="ProductLibrary" type="char" length="10" init=" "/> <data name="ParseItYourSelf" type="char" length="112" init=" "/> </struct> <program name="QCDRCMDI_Format_CMDI0100" path="/QSYS.LIB/QCDRCMDI.PGM"> <data name="Receiver" type="struct" usage="output" struct="CMDI0100_Format"/> <data name="Receiver_Length" type="int" length= "4" usage="input" init="0350"/> <data name="Format_Name" type="char" length= "8" usage="input" init="CMDI0100"/> <data name="Command_Name" type="char" length= "20" usage="input" init=" "/> <data name="Error_Code" type="int" length= "4" usage="input" init="0"/> </program> </pcml> ****** PCML ends ******** --- "McCallion, Martin" <martin.mccallion@misys.com> wrote: > I'm just trying for the first time to call a system > API (QTNADDCR) using > PCML and a ProgramCallDocument object. The PCML > parses OK, but I get: > > > com.ibm.as400.access.ExtendedIllegalArgumentException: > parameterList: Parameter value is not valid > > on the ProgramCallDocument.callProgram( programName > ) method. > > I've tried setting > com.ibm.as400.data.PcmlMessageLog.setTraceEnabled( > true ). This gives some parameter information, but > it seems to only > show the parameters that I initialise with the > "init" attribute in the > PCML. That said, when I tried initialising _all_ > the parameters that > way, instead of setting them in the Java code, it > _still_ only showed > the two parameters that I originally initialised. > This made me wonder > if it was showing the parameters that were in error, > but one is a > one-character flag which I've set to "N", and the > other is a (seemingly) > arbitrary ten characters. > > This stuff seems to be too obscure for any web > search that I can > construct to help, so I hope somebody here can give > me some pointers: > how can I find out what's wrong with my parameters? > > FYI, the API has an optional parameter, which I'm > not specifying. > Tomorrow I might try including that, though if it's > really optional... > > Cheers, > > Martin. > > -- > Martin McCallion > Senior Technical Consultant > Work: martin.mccallion@misys.com > Home: martin.mccallion@ukonline.co.uk > Misys International Banking Systems > 1 St George's Road, London, SW19 4DR, UK > T +44 (0)20 8486 1951 > F +44 (0) 20 8947 3373 > www.misys.com > This email message is intended for the named > recipient only. It may be > privileged and/or confidential. If you are not the > intended named > recipient of this email then you should not copy it > or use it for any > purpose, nor disclose its contents to any other > person. You should > contact Misys International Banking Systems as shown > below so that we > can take appropriate action at no cost to yourself. > Misys International Banking Systems Ltd,1 St > George's Road, London, SW19 4DR, UK. Email: > ibs.postmaster@misys.com. > Tel: +44 (0) 20 8879 1188 Fax: +44 (0) 20 8947 3373 > Misys International Banking Systems Ltd is > registered in England and Wales under company no. > 971479 > _______________________________________________ > This is the Java Programming on and around the > iSeries / AS400 (JAVA400-L) mailing list > To post a message email: JAVA400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/cgi-bin/listinfo/java400-l > or email: JAVA400-L-request@midrange.com > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/java400-l. > __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
As an Amazon Associate we earn from qualifying purchases.
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.