View Full Version : Servlet /RPG problem.
01-01-1995, 02:00 AM
I'm trying to create a servlet that calls RPG program using 2 parameters. The RPG program stores these parameters in a DB file. The RPG works fine if called from the command line. Servlet/RPG works fine if I comment out all file references and just hardcode the parameter values. It just hangs there when I try to use RPG to update the file with values from the servlet. What should I do to provide this functionality. Thanks, Natan Weisburd P.S. The servlet text is slightly modified source from anje 99/01 article. RPG is very simple - just read file and write another record. The connection user profile has all possible authorities.
02-14-2000, 02:40 PM
How are you defining, and passing parameters? What data types are being used? Dave
02-14-2000, 09:14 PM
Hi Nathan, I think David is on the right track exactly. This sounds very obvious, but have you checked the job logs, debugger or put in some sort of debug output for the program? Usually on the 400, when a program "hangs," it's waiting for some sort of message response. Remember that java runs Unicode and binary values natively ( natively to java, that is, ) and this is not what an RPG program expects by default for parameters. Take a look here for further info: "Data conversion and description" http://publib.boulder.ibm.com/pubs/html/as400/v4r4/ic2924/info/java/rzaha/devkit .htm Best, Joe Sam Joe Sam Shirah Autumn Software Consulting/Development/Outsourcing Please Note New Email: email@example.com Visit our User Group at: http://www.jax400.com
02-15-2000, 02:41 PM
Thank you, guys. It was really stupid - I didn't have the file library in the JOBD library list for the connection user. Thanks, Natan
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.