Calling CL(AS/400) program from UBE

ntnambi

Member
Hi
I want to Call an CL Program from an UBE .
the requirement is as follows : when an user submits the UBE , it should do processing and then FTP the results to another server .
The FTP part is already there in CL program in AS/400 . so
I need to call the CL program to solve this .

Do need help on this issue ....on how to call As/400 commands from JDE

thanks in Advance
N.Thirumalai Nambi
 
Best way to achieve this, writing a kernel program and define with in printer definition. ( as conversion string) rather than embedding CL code in UBE.
 
Hi,

I would suggest that you write a business function that uses a system API to make the call.

Since the business function is highly platform dependant, you would have to put something like in the header :

#if defined JDENV_AS400
/* Include the AS/400 system api headers here */
#include "somesysteminclude.h"

/* Tell the linker to add sstem library when linking */
#pragma comment(lib, any required system library to link with)

#else
/* Write support for other platforms like intel, using Client Access APIs */

#endif


And the function would look like:

JDEBFRTN(ID) JDEBFWINAPI CallCLPGM (LPBHVRCOM lpBhvrCom, LPVOID lpVoid,
LPDSD460001A lpDS)
{
#if defined JDENV_AS400
fncall = CLPgmCall
#else
/* Process for other platform */
#endif
return(fncall == OK)?ER_SUCCESS:ER_ERROR;
}

It would help to know which platform the UBE is running on, because it will tell you if you need to interface with Client Access or with the AS/400 system API.
 
I'm very interesting in this subject. Will you please elborate by an
example of how to achieve that.
Thanks
Emad Banoub
Sr. Systems Engineer
MWH
Pasadena, CA
626-568-652
======================================
Xe U6 SP20 - A7.3 CU12/X3 coexistence




Z_Cader
<Z_Cader@Hotmail. To: [email protected]
com> cc:
Sent by: Subject: Re: Calling CL(AS/400) program from UBE
owner-jdeowdev@jd
elist.com


04/30/03 10:31 AM
Please respond to
jdeowdev






Best way to achieve this, writing a kernel program and define with in
printer definition. ( as conversion string) rather than embedding CL code
in UBE.
--------------------------
To view this thread, go to:
http://www.jdelist.com/ubb/showthreaded.php?Cat=&Board=OWDEV&Number=53998
+ - - - - - - - - - - - - - - - - - - - - - - - -+
This is the JDEList One World® / XE Developers mailing list/forum.
Archives and information on how to SUBSCRIBE, and
UNSUBSCRIBE can be found on the JDEList Forum at
http://www.JDEList.com

JDEList is not affiliated with JDEdwards®

+ - - - - - - - - - - - - - - - - - - - - - - - -+
 
Hi,

Use B34A1030, “Execute External Program”. Command string should be: “CALL PGM(…) PARM(…)”. Must run on AS400.

Hope this helps,

Bojan.
 
I agree that this is the best solution, given that you have an updated version of Xe. As of Xe Update 1, this function is commented out and there is no AS/400 specific code.

There are other alternatives. See Knowledge Garden Articles ott-02-0009, ott-99-0063.
 
Hi All
Thanks for your responses . I will try your suggestions .
Thanks once again
N.Thirumalai Nambi
 
Back
Top