The Execute External Pgm works well only if its a simple call.In order to
call the RPG pgm you will have to pass the command as a string and if you
have worked with Open Query , you might as well guess how picky it gets when
converting the variables that you have to a string and concating it together
to get a full call statement (Eg: CALL LIBL/PGM PARM('PARM1' 'PARM2' 'PARM3'
'PARM4') etc....
I did try this out...works great if run locally and doesnt work at all when
run off the server.
What we ended up doing was creating a dummy file and adding a trigger to it
and then invoking the rpg from that Trigger pgm after adding the required
libraries......Works just fine.
You might as well try and verify whether your string that you are passing is
proper..it should look identical to as if you were calling that pgm from the
command line.
Hope this helps.
AS/400 V4R5 XE-SP13 Co-existence.
----- Original Message -----
From: "BillFClark" <
[email protected]>
To: <
[email protected]>
Sent: Wednesday, May 23, 2001 7:54 AM
Subject: Re: Local job or Server job?
to call my AS400 CL pgm. I even added my libraries to libl first in CL but
my problem is that the RPG program does not even get called. I can tell
that by dspobjd and see that it was not used. After deploying the UBE to
server I actually got the UBE to complete normally but my AS400 pgm does not
run. This is what I was working on a few weeks ago but dropped it due to
had to move on to other things but I would really like to figure this out.
event rule. I created a variable equal to my AS400 call and then added the
BSFN to call my variable. On the BSFN B34A1030 were three parameters and
the only parameter I filled in was the commandLn variable.
my PC by running the c:\winnt\rmtcmd.exe from my run line.
Ideally, we want to use the RUNUBE command but was told that the fix was a
few weeks off. We need to have backup option working in case RUNUBE does
not work completely for is not as efficient as the BSFN process.
Server, EDI TrustedLink E Version 5 (Premenos)
http://198.144.193.139/cgi-bin/wwwthreads/showflat.pl?Cat=&Board=OW&Number=1
1423