× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Ali - this will run the program, but your procedure will need to wait. Of course, this solution assumes you can run FTP from a stored procedure. But if you want the iSeries program to start and then your procedure keeps going, the syntax would be more like

quote rcmd sbmjob cmd(call cobolpgm)

The FTP approach also assumes that remote command is allowed - it might not be, as it is a huge security hole.

Now it really does not matter that the program was written in COBOL vs. another language - almost never, probably. Just as it does not matter whether a PC executable was written using Delphi or VB or C or compiled BASIC.

On the other hand, Oracle has a gateway product for AS/400 or iSeries - extra cost, of course, right? That lets you communicate with any iSeries from Oracle. In an SQL CALL statement you can do whatever you want. E.g., there is a 400 program called QCMDEXC that can execute any 400 command, such as SBMJOB.

There is also probably ODBC or JDBC. Not sure how those interface with PL/SQL.

HTH

At 04:59 AM 5/4/2005, you wrote:


>I want to call an AS/400 batch program (written in cobol) from an Oracle
>PL/SQL procedure. Any ideas?

Ali
        presumably this is from another computer.
One possible solution is to use FTP.

connect to the AS/400 with user & password then
try something like:
quote rcmd call cobolpgm

HTH
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/

**********************************************************************
The information transmitted is intended only for use by the addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material. Thank you


**********************************************************************

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.