D'oh! Arcticsystem is the network name of our iSeries. systemName is a class property that we use to pass in which iSeries we want to access: AS400 system = new AS400(systemName, myprofile, mypassword); I should have used the reference to the AS400 object (i.e., system) rather than the property holding the name of the system (i.e., systemName). Thanks. Kelly -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]On Behalf Of Thorbjørn Ravn Andersen Sent: Friday, February 17, 2006 4:07 AM To: Java Programming on and around the iSeries / AS400 Subject: Re: Need help with ProgramCall class in JTOpen Kelly Cookson wrote: >I'm trying to use the ProgramCall class to call a CL program with one >parameter 8 characters long. I have this code (based on the example in the >Toolbox for Java Redbook): > > ProgramParameter parameterList = new ProgramParameter; > AS400Text text = new AS400Text(8, systemName); > byte statusFormat = text.toBytes("SSTS0200"); > parameterList = new ProgramParameter( statusFormat ); > >It throws an exception when executing the line: > > byte statusFormat = text.toBytes("SSTS0200"); > >I get this error: > >com.ibm.as400.access.ExtendedIllegalArgumentException: encoding >(arcticsystem): Parameter value is not valid. > > It looks like the "arcticsystem" encoding is somehow specified, which apparently is unsupported by the toolbox. Is the string "articsystem" provided by you anywhere in the program?
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.