I'm trying to call a RPG program.
Case 1:
The RPG program takes a STRING as an input parameter and returns an STRING
as an output parameter.
The program runs successfully, but able to get the output parameter back
from the program.
Case 2:
Another RPG program... Takes input parameters including PACKED DECIMAL.
The program fails with the following message
"RPG9001 Error RPG0233 caused program AAEXXFR to stop."
Definitely, it looks like there is some issue with passing Parameters back
and forth.
Any help, in figuring out, will be helpful.
John
JPonth...@Skandia.com
I was able to get the RPG program run successfully (with and without PACKED
DECIMAL).
The problem was with the Program Library.
You clue to look for environment, led me to look in that direction.
I word of comment here.
ToolBox for AS400 is a fantastic API. It will definitely open-up the legacy
AS400 code to the open world. By tackling the legacy integration issue, this
tool will be very critical and useful for existing AS400 users.
Thanks again.
John P. Ponthempilly
-----Original Message-----
From: pa...@ca.ibm.com [mailto:pa...@ca.ibm.com]
Sent: Monday, September 20, 1999 2:41 PM
To: JPonth...@skandia.com
Subject: VAJ20 & AS400 ToolBox: Passing parameter issues.
John,
The RPG message means the following. It is impossible for me to say why
your
RPG program halted without knowing any details. You may want to check with
your
RPG programmer and find out. Let me tell you one thing. The program call
does
not set the environment for the program to run. The environment means the
library list which contains all the database files, display files; the job
description, etc. These are vital for running the RPG programs. Also note
that
if your RPG program is interactive and waits for input from a display file
or
outputs to a display file than it won't work with the program call.
Message ID . . . . . . . . . : RPG0233
Message file . . . . . . . . : QRPGMSGE
Library . . . . . . . . . : QSYS
Message . . . . : &1 stopped with halt indicator H&5 on.
Cause . . . . . : The halt indicator H&5 in program &1 in library &3 was
set
on and a return was requested.
Recovery . . . : Check with the programmer to determine the cause.
Thanks and have a nice day.
Pramod Patel
VA Java Enterprise Toolkit/400 Development
Email: pa...@ca.ibm.com
John Ponthempilly wrote in message <7s5ij4$6cc$1...@news.software.ibm.com>...