Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
Kelly Cookson wrote:
It looks like the "arcticsystem" encoding is somehow specified, which apparently is unsupported by the toolbox.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[1];AS400Text text = new AS400Text(8, systemName); byte[] statusFormat = text.toBytes("SSTS0200"); parameterList[0] = 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.
Is the string "articsystem" provided by you anywhere in the program?
This mailing list archive is Copyright 1997-2026 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.